org.apache.geronimo.connector
Class ResourceAdapterWrapper

java.lang.Object
  extended by 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.


Field Summary
protected  ResourceAdapter resourceAdapter
           
 
Constructor Summary
ResourceAdapterWrapper()
          default constructor for enhancement proxy endpoint
ResourceAdapterWrapper(ResourceAdapter resourceAdapter, BootstrapContext bootstrapContext)
           
ResourceAdapterWrapper(String resourceAdapterClass, BootstrapContext bootstrapContext, ClassLoader cl)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 void endpointActivation(MessageEndpointFactory messageEndpointFactory, ActivationSpec activationSpec)
           
 void endpointDeactivation(MessageEndpointFactory messageEndpointFactory, ActivationSpec activationSpec)
           
 String getResourceAdapterClass()
           
 XAResource[] getXAResources(ActivationSpec[] specs)
           
 void registerResourceAdapterAssociation(ResourceAdapterAssociation resourceAdapterAssociation)
           
 void start(BootstrapContext ctx)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceAdapter

protected final ResourceAdapter resourceAdapter
Constructor Detail

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)
Method Detail

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.