org.objectweb.jotm.jta.jeremie
Class TSHandlerFactory
java.lang.Object
org.objectweb.jonathan.libs.kernel.GenericFactory
org.objectweb.jotm.jta.jeremie.TSHandlerFactory
- All Implemented Interfaces:
- org.objectweb.jonathan.apis.kernel.Factory
- public class TSHandlerFactory
- extends org.objectweb.jonathan.libs.kernel.GenericFactory
TSHandler
Field Summary |
static String |
ts_context_name
Name used to designate the context containing the TSHandler components. |
Method Summary |
protected Object[] |
getUsedComponents(org.objectweb.jonathan.apis.kernel.Context c)
Returns the components required to create a new
TSHandler instance. |
protected Object |
newInstance(org.objectweb.jonathan.apis.kernel.Context c,
Object[] components)
Returns a new TSHandler instance created using the provided
components. |
Methods inherited from class org.objectweb.jonathan.libs.kernel.GenericFactory |
configure, newInstance, newObject, register |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ts_context_name
public static final String ts_context_name
- Name used to designate the context containing the TSHandler components.
- See Also:
- Constant Field Values
TSHandlerFactory
public TSHandlerFactory()
getUsedComponents
protected Object[] getUsedComponents(org.objectweb.jonathan.apis.kernel.Context c)
- Returns the components required to create a new
TSHandler
instance.
_c
must contain a (non null) component of name
"MarshallerFactory" of type MarshallerFactory
.
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.
- Parameters:
c
- a Context
instance;
- Returns:
- the components needed to create an TSHandler instance.
newInstance
protected Object newInstance(org.objectweb.jonathan.apis.kernel.Context c,
Object[] components)
throws org.objectweb.jonathan.apis.kernel.JonathanException
- Returns a new TSHandler instance created using the provided
components.
- Parameters:
c
- a context;components
- components to be used to create a new TSHandler instance;
- Returns:
- a new TSHandler instance;
- Throws:
org.objectweb.jonathan.apis.kernel.JonathanException
- if something goes wrong.