org.apache.geronimo.connector
Class ResourceAdapterWrapper
java.lang.Object
org.apache.geronimo.connector.ResourceAdapterWrapper
- All Implemented Interfaces:
- ResourceAdapter
public class ResourceAdapterWrapper
- extends Object
- implements ResourceAdapter
Dynamic GBean wrapper around a ResourceAdapter object, exposing the config-properties as
GBean attributes.
- Version:
- $Rev: 550546 $ $Date: 2007-06-25 12:52:11 -0400 (Mon, 25 Jun 2007) $
Constructor Summary |
ResourceAdapterWrapper()
default constructor for enhancement proxy endpoint |
ResourceAdapterWrapper(String name,
ResourceAdapter resourceAdapter,
Map<String,String> messageListenerToActivationSpecMap,
BootstrapContext bootstrapContext,
RecoverableTransactionManager transactionManager)
|
ResourceAdapterWrapper(String name,
String resourceAdapterClass,
Map<String,String> messageListenerToActivationSpecMap,
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 ResourceAdapter resourceAdapter
ResourceAdapterWrapper
public ResourceAdapterWrapper()
- default constructor for enhancement proxy endpoint
ResourceAdapterWrapper
public ResourceAdapterWrapper(String name,
String resourceAdapterClass,
Map<String,String> messageListenerToActivationSpecMap,
BootstrapContext bootstrapContext,
RecoverableTransactionManager transactionManager,
ClassLoader cl)
throws InstantiationException,
IllegalAccessException,
ClassNotFoundException
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
ResourceAdapterWrapper
public ResourceAdapterWrapper(String name,
ResourceAdapter resourceAdapter,
Map<String,String> messageListenerToActivationSpecMap,
BootstrapContext bootstrapContext,
RecoverableTransactionManager transactionManager)
getName
public String getName()
getResourceAdapterClass
public String getResourceAdapterClass()
getMessageListenerToActivationSpecMap
public Map<String,String> getMessageListenerToActivationSpecMap()
getResourceAdapter
public ResourceAdapter getResourceAdapter()
registerResourceAdapterAssociation
public void registerResourceAdapterAssociation(ResourceAdapterAssociation resourceAdapterAssociation)
throws ResourceException
- Throws:
ResourceException
start
public void start(BootstrapContext ctx)
throws ResourceAdapterInternalException
- Specified by:
start
in interface ResourceAdapter
- Throws:
ResourceAdapterInternalException
stop
public void stop()
- Specified by:
stop
in interface ResourceAdapter
endpointActivation
public void endpointActivation(MessageEndpointFactory messageEndpointFactory,
ActivationSpec activationSpec)
throws ResourceException
- Specified by:
endpointActivation
in interface ResourceAdapter
- Throws:
ResourceException
doRecovery
public void doRecovery(ActivationSpec activationSpec,
String containerId)
endpointDeactivation
public void endpointDeactivation(MessageEndpointFactory messageEndpointFactory,
ActivationSpec activationSpec)
- Specified by:
endpointDeactivation
in interface ResourceAdapter
getXAResources
public XAResource[] getXAResources(ActivationSpec[] specs)
throws ResourceException
- Specified by:
getXAResources
in interface ResourceAdapter
- Throws:
ResourceException
doStart
public void doStart()
throws Exception
- Throws:
Exception
doStop
public void doStop()
doFail
public void doFail()
Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.