com.caucho.jca.cfg
Class ResourceAdapterConfig

java.lang.Object
  extended by com.caucho.jca.ra.ObjectConfig
      extended by com.caucho.jca.cfg.ResourceAdapterConfig

public class ResourceAdapterConfig
extends ObjectConfig

Configuration for a connector.


Nested Class Summary
static class ResourceAdapterConfig.AuthenticationMechanism
           
static class ResourceAdapterConfig.SecurityPermission
           
 
Constructor Summary
ResourceAdapterConfig()
           
 
Method Summary
 void addAdminobject(AdminObjectConfig adminObject)
          Adds an admin object.
 ResourceAdapterConfig.AuthenticationMechanism createAuthenticationMechanism()
          Creates an authentication mechanism
 InboundResourceAdapterConfig createInboundResourceadapter()
          Adds an inbound resource adapter.
 OutboundResourceAdapterConfig createOutboundResourceadapter()
          Adds an outbound resource adapter.
 ResourceAdapterConfig.SecurityPermission createSecurityPermission()
          Creates a security permission
 AdminObjectConfig getAdminObject(java.lang.String type)
          Gets the resource adapter class
 ConnectionDefinition getConnectionDefinition(java.lang.String type)
          Gets the connection definition for the named class.
 MessageListenerConfig getMessageListener(java.lang.String type)
          Gets the resource adapter class
 java.lang.Class<?> getResourceadapterClass()
          Gets the resource adapter class
 java.lang.String getTransactionSupport()
          Gets the transaction support.
 void setConnectionfactoryImplClass(java.lang.String cl)
          Sets the ConnectionFactory impl class
 void setConnectionfactoryInterface(java.lang.String cl)
          Sets the ConnectionFactory interface
 void setConnectionImplClass(java.lang.String cl)
          Sets the Connection impl class
 void setConnectionInterface(java.lang.String cl)
          Sets the Connection interface
 void setManagedconnectionfactoryClass(java.lang.Class<?> cl)
          Sets the ManagedConnectionFactory class.
 void setReauthenticationSupport(boolean support)
          Sets the reauthentication support.
 void setResourceadapterClass(java.lang.Class<?> cl)
          Sets the resource adapter class
 void setTransactionSupport(java.lang.String xa)
          Sets the transaction support.
 
Methods inherited from class com.caucho.jca.ra.ObjectConfig
addConfigProperty, getType, instantiate, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceAdapterConfig

public ResourceAdapterConfig()
Method Detail

setResourceadapterClass

public void setResourceadapterClass(java.lang.Class<?> cl)
                             throws ConfigException
Sets the resource adapter class

Throws:
ConfigException

getResourceadapterClass

public java.lang.Class<?> getResourceadapterClass()
Gets the resource adapter class


addAdminobject

public void addAdminobject(AdminObjectConfig adminObject)
Adds an admin object.


setManagedconnectionfactoryClass

public void setManagedconnectionfactoryClass(java.lang.Class<?> cl)
                                      throws ConfigException
Sets the ManagedConnectionFactory class.

Throws:
ConfigException

setConnectionfactoryInterface

public void setConnectionfactoryInterface(java.lang.String cl)
Sets the ConnectionFactory interface


setConnectionfactoryImplClass

public void setConnectionfactoryImplClass(java.lang.String cl)
Sets the ConnectionFactory impl class


setConnectionInterface

public void setConnectionInterface(java.lang.String cl)
Sets the Connection interface


setConnectionImplClass

public void setConnectionImplClass(java.lang.String cl)
Sets the Connection impl class


getConnectionDefinition

public ConnectionDefinition getConnectionDefinition(java.lang.String type)
Gets the connection definition for the named class.


getMessageListener

public MessageListenerConfig getMessageListener(java.lang.String type)
Gets the resource adapter class


getAdminObject

public AdminObjectConfig getAdminObject(java.lang.String type)
Gets the resource adapter class


setTransactionSupport

public void setTransactionSupport(java.lang.String xa)
Sets the transaction support.


getTransactionSupport

public java.lang.String getTransactionSupport()
Gets the transaction support.


setReauthenticationSupport

public void setReauthenticationSupport(boolean support)
Sets the reauthentication support.


createAuthenticationMechanism

public ResourceAdapterConfig.AuthenticationMechanism createAuthenticationMechanism()
Creates an authentication mechanism


createSecurityPermission

public ResourceAdapterConfig.SecurityPermission createSecurityPermission()
Creates a security permission


createOutboundResourceadapter

public OutboundResourceAdapterConfig createOutboundResourceadapter()
                                                            throws ConfigException
Adds an outbound resource adapter.

Throws:
ConfigException

createInboundResourceadapter

public InboundResourceAdapterConfig createInboundResourceadapter()
                                                          throws ConfigException
Adds an inbound resource adapter.

Throws:
ConfigException