org.objectweb.jotm.jta.jeremie

Class TSHandlerFactory


public class TSHandlerFactory
extends GenericFactory

TSHandler

Field Summary

static String
ts_context_name
Name used to designate the context containing the TSHandler components.

Method Summary

protected Object[]
getUsedComponents(Context c)
Returns the components required to create a new TSHandler instance.
protected Object
newInstance(Context c, Object[] components)
Returns a new TSHandler instance created using the provided components.

Field Details

ts_context_name

public static final String ts_context_name
Name used to designate the context containing the TSHandler components.

Method Details

getUsedComponents

protected Object[] getUsedComponents(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(Context c,
                             Object[] components)
            throws 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;