public class ConnectorResource extends java.lang.Object implements EnvironmentListener
Modifier and Type | Class and Description |
---|---|
class |
ConnectorResource.ConnectionFactory |
class |
ConnectorResource.ConnectionListener |
class |
ConnectorResource.ConnectorBean |
class |
ConnectorResource.EndpointFactory |
class |
ConnectorResource.ResourceAdapterConfig |
Constructor and Description |
---|
ConnectorResource() |
Modifier and Type | Method and Description |
---|---|
void |
addConnectionFactory(ConnectorResource.ConnectionFactory factory)
Configures a connection-factory
|
void |
addInit(ContainerProgram init) |
void |
addMessageListener(ConnectorResource.ConnectionListener listener)
Adds the configured connection-listener
|
ConnectorResource.ConnectorBean |
createBean()
Configures a connection-resource
|
ConnectorResource.ConnectionFactory |
createConnectionFactory()
Configures a connection-factory
|
ConnectorResource.ConnectionListener |
createMessageListener()
Configures a connection-listener
|
ConnectorResource.ConnectorBean |
createResource()
Configures a connection-resource
|
ConnectorResource.ResourceAdapterConfig |
createResourceAdapter()
Configures the resource adapter.
|
void |
environmentBind(EnvironmentClassLoader loader)
Handles the case where the environment bind phase
|
void |
environmentConfigure(EnvironmentClassLoader loader)
Handles the case where the environment config phase
|
void |
environmentStart(EnvironmentClassLoader loader)
Handles the case where the environment is starting (after init).
|
void |
environmentStop(EnvironmentClassLoader loader)
Handles the case where the environment is stopping
|
java.lang.String |
getName()
Gets the name
|
java.lang.String |
getType()
Gets the type
|
void |
init()
Initialize the resource.
|
void |
initRA()
Initializes the ra.
|
void |
setClass(java.lang.String type)
Sets the type of the connector.
|
void |
setJndiName(java.lang.String name)
Sets the name
|
void |
setName(java.lang.String name)
Sets the name
|
void |
setResourceAdapter(ConnectorResource.ResourceAdapterConfig raConfig)
Sets the configured resource adapter.
|
void |
setType(java.lang.String type)
Sets the type of the connector.
|
void |
setURL(java.lang.String url)
Sets the type of the connector using known types.
|
void |
start()
Start the resource.
|
void |
stop()
Stops the connector.
|
java.lang.String |
toString() |
public void setName(java.lang.String name)
public void setJndiName(java.lang.String name)
public java.lang.String getName()
public void setType(java.lang.String type) throws java.lang.Exception
java.lang.Exception
public void setURL(java.lang.String url) throws java.lang.Exception
java.lang.Exception
public void setClass(java.lang.String type) throws java.lang.Exception
java.lang.Exception
public java.lang.String getType()
public void addInit(ContainerProgram init)
public ConnectorResource.ResourceAdapterConfig createResourceAdapter() throws ConfigException
ConfigException
public void setResourceAdapter(ConnectorResource.ResourceAdapterConfig raConfig) throws java.lang.Exception
java.lang.Exception
public ConnectorResource.ConnectionFactory createConnectionFactory() throws java.lang.Exception
java.lang.Exception
public void addConnectionFactory(ConnectorResource.ConnectionFactory factory) throws java.lang.Exception
java.lang.Exception
public ConnectorResource.ConnectionListener createMessageListener() throws java.lang.Exception
java.lang.Exception
public void addMessageListener(ConnectorResource.ConnectionListener listener) throws java.lang.Throwable
java.lang.Throwable
public ConnectorResource.ConnectorBean createBean()
public ConnectorResource.ConnectorBean createResource()
@PostConstruct public void init() throws java.lang.Exception
java.lang.Exception
public void start() throws java.lang.Exception
java.lang.Exception
public void initRA() throws java.lang.Exception
java.lang.Exception
public void stop()
public void environmentConfigure(EnvironmentClassLoader loader)
environmentConfigure
in interface EnvironmentListener
public void environmentBind(EnvironmentClassLoader loader)
environmentBind
in interface EnvironmentListener
public void environmentStart(EnvironmentClassLoader loader)
environmentStart
in interface EnvironmentListener
public void environmentStop(EnvironmentClassLoader loader)
environmentStop
in interface EnvironmentListener
public java.lang.String toString()
toString
in class java.lang.Object