org.objectweb.jonas.rmifilters
Class TSHandlerFactory
org.objectweb.jonas.rmifilters.TSHandlerFactory
- public class TSHandlerFactory
TSHandler
Field Summary |
static java.lang.String |
ts_context_name
Name used to designate the context containing the TSHandler components. |
Method Summary |
protected java.lang.Object[] |
getUsedComponents(org.objectweb.jonathan.apis.kernel.Context c)
Returns the components required to create a new
TSHandler instance. |
protected java.lang.Object |
newInstance(org.objectweb.jonathan.apis.kernel.Context c,
java.lang.Object[] components)
Returns a new TSHandler instance created using the provided
components. |
ts_context_name
public static final java.lang.String ts_context_name
- Name used to designate the context containing the TSHandler components.
TSHandlerFactory
public TSHandlerFactory()
getUsedComponents
protected java.lang.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 java.lang.Object newInstance(org.objectweb.jonathan.apis.kernel.Context c,
java.lang.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:
JonathanException
- if something goes wrong.