Skip to main content



      Home
Home » Eclipse Projects » Equinox » How to use factory components with DS
How to use factory components with DS [message #100353] Thu, 25 October 2007 16:40
Eclipse UserFriend
Originally posted by: beryilmaREMOVETHIS.mathworks.com

Is there an example of using factory components in DS implementing the
ComponentFactory interface.

Basically, my application can use multiple components of the same class.
Sort of equivalent to the following code:

MyComponent comp1 = new MyComponent();
MyComponent comp2 = new MyComponent();

MyApplication appl = new MyApplication();
appl.addComponent(comp1);
appl.addComponent(comp2);

However, MyComponent class provides a service and it would be instantiated
by a ComponentFactory. And MyApplication class needs to get its "bind"
method called anytime a new service is added.
Previous Topic:Query for Extension Contribution in plug-in dependency order
Next Topic:Registry conflict (running org.eclipse.equinox.jsp.jasper.registry)
Goto Forum:
  


Current Time: Thu Jul 17 12:54:02 EDT 2025

Powered by FUDForum. Page generated in 0.04051 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top