org.objectweb.david.libs.services.CosTransactions.handler
Class DavidTSHandlerFactory
java.lang.Object
|
+--org.objectweb.jonathan.libs.kernel.GenericFactory
|
+--org.objectweb.david.libs.services.CosTransactions.handler.DavidTSHandlerFactory
- All Implemented Interfaces:
- Factory
- public class DavidTSHandlerFactory
- extends GenericFactory
DavidTSHandler
Factory implementation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DavidTSHandlerFactory
public DavidTSHandlerFactory()
getUsedComponents
protected Object[] getUsedComponents(Context _c)
- Returns the components required to create a new
DavidTSHandler instance.
_c must contain a (non null) component of name
"StreamFactory" of type DavidStreamFactory.
It may contain a component of name "id", of type Integer; this id
should then represent the service id to use for the created service.
It may contain a component of name "sender", of type Sender,
and a component of name "receiver", of type Receiver.
- Overrides:
getUsedComponents in class GenericFactory
- Parameters:
_c - a Context instance;- Returns:
- the components needed to create an DavidTSHandler instance.
newInstance
protected Object newInstance(Context _c,
Object[] _used_components)
throws JonathanException
- Returns a new DavidTSHandler 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
DavidTSHandler instance;- Returns:
- a new DavidTSHandler instance;
- Throws:
JonathanException - if something goes wrong.