org.apache.geronimo.connector
Class ResourceAdapterWrapper
java.lang.Object
org.apache.geronimo.connector.ResourceAdapterWrapper
- All Implemented Interfaces:
- ResourceAdapter
- Direct Known Subclasses:
- ResourceAdapterWrapperGBean
public class ResourceAdapterWrapper
- extends Object
- implements ResourceAdapter
Dynamic GBean wrapper around a ResourceAdapter object, exposing the config-properties as
GBean attributes.
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 resourceAdapterClass,
BootstrapContext bootstrapContext,
ClassLoader cl)
throws InstantiationException,
IllegalAccessException,
ClassNotFoundException
- Throws:
InstantiationException
IllegalAccessException
ClassNotFoundException
ResourceAdapterWrapper
public ResourceAdapterWrapper(ResourceAdapter resourceAdapter,
BootstrapContext bootstrapContext)
getResourceAdapterClass
public String getResourceAdapterClass()
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
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 © 2006 Apache Software Foundation. All Rights Reserved.