org.apache.geronimo.connector
Class ResourceAdapterWrapper
java.lang.Object
org.apache.geronimo.connector.ResourceAdapterWrapper
- All Implemented Interfaces:
- javax.resource.spi.ResourceAdapter
public class ResourceAdapterWrapper
- extends Object
- implements javax.resource.spi.ResourceAdapter
Dynamic GBean wrapper around a ResourceAdapter object, exposing the config-properties as
GBean attributes.
Constructor Summary |
ResourceAdapterWrapper()
default constructor for enhancement proxy endpoint |
ResourceAdapterWrapper(String name,
javax.resource.spi.ResourceAdapter resourceAdapter,
Map<String,String> messageListenerToActivationSpecMap,
javax.resource.spi.BootstrapContext bootstrapContext,
RecoverableTransactionManager transactionManager)
|
ResourceAdapterWrapper(String name,
String resourceAdapterClass,
Map<String,String> messageListenerToActivationSpecMap,
javax.resource.spi.BootstrapContext bootstrapContext,
RecoverableTransactionManager transactionManager,
ClassLoader cl)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resourceAdapter
protected final javax.resource.spi.ResourceAdapter resourceAdapter
ResourceAdapterWrapper
public ResourceAdapterWrapper()
- default constructor for enhancement proxy endpoint
ResourceAdapterWrapper
public ResourceAdapterWrapper(String name,
String resourceAdapterClass,
Map<String,String> messageListenerToActivationSpecMap,
javax.resource.spi.BootstrapContext bootstrapContext,
RecoverableTransactionManager transactionManager,
ClassLoader cl)
throws InstantiationException,
IllegalAccessException,
ClassNotFoundException
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
ResourceAdapterWrapper
public ResourceAdapterWrapper(String name,
javax.resource.spi.ResourceAdapter resourceAdapter,
Map<String,String> messageListenerToActivationSpecMap,
javax.resource.spi.BootstrapContext bootstrapContext,
RecoverableTransactionManager transactionManager)
getName
public String getName()
getResourceAdapterClass
public String getResourceAdapterClass()
getMessageListenerToActivationSpecMap
public Map<String,String> getMessageListenerToActivationSpecMap()
getResourceAdapter
public javax.resource.spi.ResourceAdapter getResourceAdapter()
registerResourceAdapterAssociation
public void registerResourceAdapterAssociation(javax.resource.spi.ResourceAdapterAssociation resourceAdapterAssociation)
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
start
public void start(javax.resource.spi.BootstrapContext ctx)
throws javax.resource.spi.ResourceAdapterInternalException
- Specified by:
start
in interface javax.resource.spi.ResourceAdapter
- Throws:
javax.resource.spi.ResourceAdapterInternalException
stop
public void stop()
- Specified by:
stop
in interface javax.resource.spi.ResourceAdapter
endpointActivation
public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory,
javax.resource.spi.ActivationSpec activationSpec)
throws javax.resource.ResourceException
- Specified by:
endpointActivation
in interface javax.resource.spi.ResourceAdapter
- Throws:
javax.resource.ResourceException
doRecovery
public void doRecovery(javax.resource.spi.ActivationSpec activationSpec,
String containerId)
endpointDeactivation
public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory,
javax.resource.spi.ActivationSpec activationSpec)
- Specified by:
endpointDeactivation
in interface javax.resource.spi.ResourceAdapter
getXAResources
public XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
throws javax.resource.ResourceException
- Specified by:
getXAResources
in interface javax.resource.spi.ResourceAdapter
- Throws:
javax.resource.ResourceException
doStart
public void doStart()
throws Exception
- Throws:
Exception
doStop
public void doStop()
doFail
public void doFail()
Copyright © 2012 Apache Software Foundation. All Rights Reserved.