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.


Constructor Summary
DavidServicesHandlerFactory()
           
 
Method Summary
protected  Object[] getUsedComponents(Context c)
          Returns the components required to create a new DavidServicesHandler instance.
protected  Object newInstance()
          Returns an existing initialized DavidServicesHandler if it exists.
protected  Object newInstance(Context c, Object[] used_components)
          Returns a new DavidServicesHandler instance created using the provided components.
 
Methods inherited from class org.objectweb.jonathan.libs.kernel.GenericFactory
configure, newObject, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DavidServicesHandlerFactory

public DavidServicesHandlerFactory()
Method Detail

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.