org.objectweb.jeremie.libs.services.CosTransactions.handler
Class JRMITSHandlerFactory
java.lang.Object
|
+--org.objectweb.jonathan.libs.kernel.GenericFactory
|
+--org.objectweb.jeremie.libs.services.CosTransactions.handler.JRMITSHandlerFactory
- All Implemented Interfaces:
- Factory
- public class JRMITSHandlerFactory
- extends GenericFactory
JRMITSHandler
Factory implementation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jrmits_context_name
public static final String jrmits_context_name
- Name used to designate the context containing the JRMITSHandler
components.
JRMITSHandlerFactory
public JRMITSHandlerFactory()
getUsedComponents
protected Object[] getUsedComponents(Context _c)
- Returns the components required to create a new
JRMITSHandler 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.
- Overrides:
getUsedComponents in class GenericFactory
- Parameters:
_c - a Context instance;- Returns:
- the components needed to create an JRMITSHandler instance.
newInstance
protected Object newInstance(Context _c,
Object[] _used_components)
throws JonathanException
- Returns a new JRMITSHandler 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
JRMITSHandler instance;- Returns:
- a new JRMITSHandler instance;
- Throws:
JonathanException - if something goes wrong.