org.objectweb.david.libs.services.handler
Class DavidServicesHandlerFactory
java.lang.Object
|
+--org.objectweb.jonathan.libs.kernel.GenericFactory
|
+--org.objectweb.david.libs.services.handler.DavidServicesHandlerFactory
- All Implemented Interfaces:
- Factory
- public class DavidServicesHandlerFactory
- extends GenericFactory
DavidServicesHandler
Factory implementation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DavidServicesHandlerFactory
public DavidServicesHandlerFactory()
getUsedComponents
protected Object[] getUsedComponents(Context c)
- Returns the components required to create a new
DavidServicesHandler instance.
c should contain the services to be used
by the services handler.
- Overrides:
getUsedComponents in class GenericFactory
- Parameters:
c - a Context instance;- Returns:
- the components needed to create an DavidServicesHandler instance.
newInstance
protected final Object newInstance(Context c,
Object[] used_components)
throws JonathanException
- Returns a new DavidServicesHandler instance created using the provided
components.
- Overrides:
newInstance in class GenericFactory
- Parameters:
c - a context;used_components - components to be used to create a new
DavidServicesHandler instance;- Returns:
- a new DavidServicesHandler instance;
- Throws:
JonathanException - if something goes wrong.
newInstance
protected Object newInstance()
throws JonathanException
- Returns an existing initialized DavidServicesHandler if it
exists. Prevents crossed initializations.
- Overrides:
newInstance in class GenericFactory
- Returns:
- a DavidServicesHandler instance;
- Throws:
JonathanException - if something goes wrong.