Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344541 - Deprecate AdapterFactory
Summary: Deprecate AdapterFactory
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.5 M3   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-03 05:19 EDT by Rüdiger Herrmann CLA
Modified: 2012-09-22 11:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.