org.apache.geronimo.connector.outbound
Class ManagedConnectionFactoryWrapper

java.lang.Object
  extended by org.apache.geronimo.connector.outbound.ManagedConnectionFactoryWrapper
All Implemented Interfaces:
org.apache.geronimo.connector.outbound.ConnectionFactorySource, DynamicGBean, GBeanLifecycle, J2EEManagedObject, JCAManagedConnectionFactory

public class ManagedConnectionFactoryWrapper
extends Object
implements GBeanLifecycle, DynamicGBean, JCAManagedConnectionFactory, org.apache.geronimo.connector.outbound.ConnectionFactorySource


Constructor Summary
ManagedConnectionFactoryWrapper()
           
ManagedConnectionFactoryWrapper(String managedConnectionFactoryClass, String connectionFactoryInterface, String[] implementedInterfaces, String connectionFactoryImplClass, String connectionInterface, String connectionImplClass, org.apache.geronimo.connector.ResourceAdapterWrapper resourceAdapterWrapper, org.apache.geronimo.connector.outbound.ConnectionManagerContainer connectionManagerContainer, Kernel kernel, AbstractName abstractName, String objectName, ClassLoader cl)
           
 
Method Summary
 Object $getConnectionFactory()
           
 ManagedConnectionFactory $getManagedConnectionFactory()
           
 Object $getResource()
           
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
 Object getAttribute(String name)
           
 Map<String,Class> getConfigProperties()
          Gets the config properties in the form of a map where the key is the property name and the value is property type (as a Class).
 Object getConfigProperty(String property)
           
 Object getConnectionFactory()
           
 String getConnectionFactoryImplClass()
           
 String getConnectionFactoryInterface()
           
 String getConnectionImplClass()
           
 String getConnectionInterface()
           
 Object getConnectionManagerContainer()
           
 String[] getImplementedInterfaces()
           
 String getManagedConnectionFactoryClass()
           
 String getObjectName()
          Gets the unique name of this object.
 org.apache.geronimo.connector.ResourceAdapterWrapper getResourceAdapterWrapper()
           
 Object invoke(String name, Object[] arguments, String[] types)
           
 boolean isEventProvider()
          Determines if this object implemnts the event provider type defined in the J2EE Management specification.
 boolean isStateManageable()
          Determines if this object implements the state manageable type defined in the J2EE Management specification.
 boolean isStatisticsProvider()
          Determines if this object implemnts the statistics provider type defined in the J2EE Management specification.
 void setAttribute(String name, Object value)
           
 void setConfigProperty(String property, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedConnectionFactoryWrapper

public ManagedConnectionFactoryWrapper()

ManagedConnectionFactoryWrapper

public ManagedConnectionFactoryWrapper(String managedConnectionFactoryClass,
                                       String connectionFactoryInterface,
                                       String[] implementedInterfaces,
                                       String connectionFactoryImplClass,
                                       String connectionInterface,
                                       String connectionImplClass,
                                       org.apache.geronimo.connector.ResourceAdapterWrapper resourceAdapterWrapper,
                                       org.apache.geronimo.connector.outbound.ConnectionManagerContainer connectionManagerContainer,
                                       Kernel kernel,
                                       AbstractName abstractName,
                                       String objectName,
                                       ClassLoader cl)
                                throws InstantiationException,
                                       IllegalAccessException,
                                       ClassNotFoundException
Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
Method Detail

getManagedConnectionFactoryClass

public String getManagedConnectionFactoryClass()

getConnectionFactoryInterface

public String getConnectionFactoryInterface()

getImplementedInterfaces

public String[] getImplementedInterfaces()

getConnectionFactoryImplClass

public String getConnectionFactoryImplClass()

getConnectionInterface

public String getConnectionInterface()

getConnectionImplClass

public String getConnectionImplClass()

getResourceAdapterWrapper

public org.apache.geronimo.connector.ResourceAdapterWrapper getResourceAdapterWrapper()

getConnectionManagerContainer

public Object getConnectionManagerContainer()

doStart

public void doStart()
             throws Exception
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

doStop

public void doStop()
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle

doFail

public void doFail()
Description copied from interface: GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface GBeanLifecycle

getAttribute

public Object getAttribute(String name)
                    throws Exception
Specified by:
getAttribute in interface DynamicGBean
Throws:
Exception

setAttribute

public void setAttribute(String name,
                         Object value)
                  throws Exception
Specified by:
setAttribute in interface DynamicGBean
Throws:
Exception

invoke

public Object invoke(String name,
                     Object[] arguments,
                     String[] types)
              throws Exception
Specified by:
invoke in interface DynamicGBean
Throws:
Exception

getConnectionFactory

public Object getConnectionFactory()
                            throws ResourceException
Throws:
ResourceException

$getResource

public Object $getResource()
                    throws ResourceException
Specified by:
$getResource in interface org.apache.geronimo.connector.outbound.ConnectionFactorySource
Throws:
ResourceException

$getConnectionFactory

public Object $getConnectionFactory()
                             throws ResourceException
Throws:
ResourceException

$getManagedConnectionFactory

public ManagedConnectionFactory $getManagedConnectionFactory()

getConfigProperties

public Map<String,Class> getConfigProperties()
Gets the config properties in the form of a map where the key is the property name and the value is property type (as a Class).


setConfigProperty

public void setConfigProperty(String property,
                              Object value)
                       throws Exception
Throws:
Exception

getConfigProperty

public Object getConfigProperty(String property)
                         throws Exception
Throws:
Exception

getObjectName

public String getObjectName()
Description copied from interface: J2EEManagedObject
Gets the unique name of this object. The object name must comply with the ObjectName specification in the JMX specification and the restrictions in the J2EEManagementInterface.

Specified by:
getObjectName in interface J2EEManagedObject
Returns:
the unique name of this object within the server

isStateManageable

public boolean isStateManageable()
Description copied from interface: J2EEManagedObject
Determines if this object implements the state manageable type defined in the J2EE Management specification.

Specified by:
isStateManageable in interface J2EEManagedObject
Returns:
true if this class also implements the state manageable type; false otherwise

isStatisticsProvider

public boolean isStatisticsProvider()
Description copied from interface: J2EEManagedObject
Determines if this object implemnts the statistics provider type defined in the J2EE Management specification.

Specified by:
isStatisticsProvider in interface J2EEManagedObject
Returns:
true if this class also implements the statistics provider type; false otherwise

isEventProvider

public boolean isEventProvider()
Description copied from interface: J2EEManagedObject
Determines if this object implemnts the event provider type defined in the J2EE Management specification.

Specified by:
isEventProvider in interface J2EEManagedObject
Returns:
true if this class also implements the event manageable type; false otherwise


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.