org.apache.geronimo.connector
Class ResourceAdapterWrapper

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

Field Summary
protected  ResourceAdapter resourceAdapter
           
 
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)
           
 
Method Summary
 void doFail()
           
 void doRecovery(ActivationSpec activationSpec, String containerId)
           
 void doStart()
           
 void doStop()
           
 void endpointActivation(MessageEndpointFactory messageEndpointFactory, ActivationSpec activationSpec)
           
 void endpointDeactivation(MessageEndpointFactory messageEndpointFactory, ActivationSpec activationSpec)
           
 Map<String,String> getMessageListenerToActivationSpecMap()
           
 String getName()
           
 ResourceAdapter getResourceAdapter()
           
 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 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)
Method Detail

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.