org.jboss.jca.core.api.management
Class ConnectionFactory

java.lang.Object
  extended by org.jboss.jca.core.api.management.ConnectionFactory

public class ConnectionFactory
extends Object

Represents a managed connection factory instance

Author:
Jeff Zhang

Constructor Summary
ConnectionFactory(Object cf, javax.resource.spi.ManagedConnectionFactory mcf)
          Constructor
 
Method Summary
 Object getConnectionFactory()
          Get the connection factory instance.
 String getJndiName()
          Get the jndiName.
 ManagedConnectionFactory getManagedConnectionFactory()
          Get the managed connection factory instance.
 Pool getPool()
          Get the pool instance.
 PoolConfiguration getPoolConfiguration()
          Get the pool configuration instance.
 void setJndiName(String jndiName)
          Set the jndiName.
 void setPool(Pool p)
          Set the pool
 void setPoolConfiguration(PoolConfiguration pc)
          Set the pool configuration
 String toString()
          String representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionFactory

public ConnectionFactory(Object cf,
                         javax.resource.spi.ManagedConnectionFactory mcf)
Constructor

Parameters:
cf - The connection factory
mcf - The managed connection factory instance
Method Detail

getConnectionFactory

public Object getConnectionFactory()
Get the connection factory instance. Note, that the value may be null if the connection factory was undeployed and this object wasn't cleared up correctly.

Returns:
The instance

getManagedConnectionFactory

public ManagedConnectionFactory getManagedConnectionFactory()
Get the managed connection factory instance. Note, that the value may be null if the managed connection factory was undeployed and this object wasn't cleared up correctly.

Returns:
The instance

getPool

public Pool getPool()
Get the pool instance. Note, that the value may be null if the pool was undeployed and this object wasn't cleared up correctly.

Returns:
The instance

setPool

public void setPool(Pool p)
Set the pool

Parameters:
p - The pool

getPoolConfiguration

public PoolConfiguration getPoolConfiguration()
Get the pool configuration instance. Note, that the value may be null if the pool configuration was undeployed and this object wasn't cleared up correctly.

Returns:
The instance

setPoolConfiguration

public void setPoolConfiguration(PoolConfiguration pc)
Set the pool configuration

Parameters:
pc - The pool configuration

getJndiName

public String getJndiName()
Get the jndiName.

Returns:
the jndiName.

setJndiName

public void setJndiName(String jndiName)
Set the jndiName.

Parameters:
jndiName - The jndiName to set.

toString

public String toString()
String representation

Overrides:
toString in class Object
Returns:
The string


Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)