Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344541

Summary: Deprecate AdapterFactory
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: 1.5 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Rüdiger Herrmann CLA 2011-05-03 05:19:11 EDT
I suggest to deprecate (and later remove) the public AdapterFactory interface from RWT and the adapterfactory extension point and use it internally only.
RWT should focus on widgets and the like but rather not offer implementations of design patterns for its clients.
The current implementation fits exactly the needs of RWT but fails for sophisticated use cases (just to name one: registering different AdapterFactories for adaptables that inherit from other adaptables).

Those in need of an adapter implementation may resort to
* the "adapter pattern in org.eclipse.core.runtime":http://www.eclipse.org/articles/article.php?file=Article-Adapters/index.html or
* "PerfectJPattern":http://perfectjpattern.sourceforge.net/dp-adapter.html
* ...
Comment 1 Rüdiger Herrmann CLA 2011-10-14 09:02:24 EDT
Marked the AdapterFactory and the adapterfactory extension point as deprecated.
Changes are in CVS HEAD.
Comment 2 Ralf Sternberg CLA 2012-09-22 11:20:19 EDT
Removed in commit 8452ac1, RAP 2.0M2.