org.apache.geronimo.connector
Class ResourceAdapterWrapper

java.lang.Object
  extended byorg.apache.geronimo.connector.ResourceAdapterWrapper
All Implemented Interfaces:
javax.resource.spi.ResourceAdapter
Direct Known Subclasses:
ResourceAdapterWrapperGBean

public class ResourceAdapterWrapper
extends Object
implements javax.resource.spi.ResourceAdapter

Dynamic GBean wrapper around a ResourceAdapter object, exposing the config-properties as GBean attributes.

Version:
$Rev: 355877 $ $Date: 2005-12-11 03:48:27 +0100 (Sun, 11 Dec 2005) $

Field Summary
protected  javax.resource.spi.ResourceAdapter resourceAdapter
           
 
Constructor Summary
ResourceAdapterWrapper()
          default constructor for enhancement proxy endpoint
ResourceAdapterWrapper(javax.resource.spi.ResourceAdapter resourceAdapter, GeronimoWorkManager workManager)
           
ResourceAdapterWrapper(String resourceAdapterClass, GeronimoWorkManager workManager, ClassLoader cl)
           
 
Method Summary
 void doFail()
           
 void doStart()
           
 void doStop()
           
 void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory, javax.resource.spi.ActivationSpec activationSpec)
           
 void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory, javax.resource.spi.ActivationSpec activationSpec)
           
 String getResourceAdapterClass()
           
 XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
           
 void registerResourceAdapterAssociation(javax.resource.spi.ResourceAdapterAssociation resourceAdapterAssociation)
           
 void start(javax.resource.spi.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 javax.resource.spi.ResourceAdapter resourceAdapter
Constructor Detail

ResourceAdapterWrapper

public ResourceAdapterWrapper()
default constructor for enhancement proxy endpoint


ResourceAdapterWrapper

public ResourceAdapterWrapper(String resourceAdapterClass,
                              GeronimoWorkManager workManager,
                              ClassLoader cl)
                       throws InstantiationException,
                              IllegalAccessException,
                              ClassNotFoundException

ResourceAdapterWrapper

public ResourceAdapterWrapper(javax.resource.spi.ResourceAdapter resourceAdapter,
                              GeronimoWorkManager workManager)
Method Detail

getResourceAdapterClass

public String getResourceAdapterClass()

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

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 © 2003-2007 Apache Software Foundation. All Rights Reserved.