org.apache.geronimo.connector.outbound
Class ManagedConnectionFactoryWrapper

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

public class ManagedConnectionFactoryWrapper
extends Object
implements GBeanLifecycle, DynamicGBean, JCAManagedConnectionFactory, ResourceSource<ResourceException>


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()
           
 void doStart()
           
 void doStop()
           
 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()
           
 org.apache.geronimo.connector.ResourceAdapterWrapper getResourceAdapterWrapper()
           
 Object invoke(String name, Object[] arguments, String[] types)
           
 boolean isEventProvider()
           
 boolean isStateManageable()
           
 boolean isStatisticsProvider()
           
 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
Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
Specified by:
doStop in interface GBeanLifecycle

doFail

public void doFail()
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 ResourceSource<ResourceException>
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()
Specified by:
getObjectName in interface J2EEManagedObject

isStateManageable

public boolean isStateManageable()
Specified by:
isStateManageable in interface J2EEManagedObject

isStatisticsProvider

public boolean isStatisticsProvider()
Specified by:
isStatisticsProvider in interface J2EEManagedObject

isEventProvider

public boolean isEventProvider()
Specified by:
isEventProvider in interface J2EEManagedObject


Copyright © 2003-2010 The Apache Geronimo development community. All Rights Reserved.