org.apache.geronimo.connector
Class ResourceAdapterWrapper

java.lang.Object
  extended by org.apache.geronimo.connector.ResourceAdapterWrapper
All Implemented Interfaces:
javax.resource.spi.ResourceAdapter

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

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

Version:
$Rev: 1005848 $ $Date: 2010-10-08 22:44:55 +0800 (Fri, 08 Oct 2010) $

Field Summary
protected  javax.resource.spi.ResourceAdapter resourceAdapter
           
 
Constructor Summary
ResourceAdapterWrapper()
          default constructor for enhancement proxy endpoint
ResourceAdapterWrapper(java.lang.String name, javax.resource.spi.ResourceAdapter resourceAdapter, java.util.Map<java.lang.String,java.lang.String> messageListenerToActivationSpecMap, javax.resource.spi.BootstrapContext bootstrapContext, RecoverableTransactionManager transactionManager, javax.validation.ValidatorFactory validatorFactory)
           
ResourceAdapterWrapper(java.lang.String name, java.lang.String resourceAdapterClass, java.util.Map<java.lang.String,java.lang.String> messageListenerToActivationSpecMap, javax.resource.spi.BootstrapContext bootstrapContext, RecoverableTransactionManager transactionManager, java.lang.ClassLoader cl, javax.validation.ValidatorFactory validatorFactory)
           
 
Method Summary
 void deregisterRecovery(java.lang.String containerId)
           
 void doFail()
           
 void doRecovery(javax.resource.spi.ActivationSpec activationSpec, java.lang.String containerId)
           
 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)
           
 java.util.Map<java.lang.String,java.lang.String> getMessageListenerToActivationSpecMap()
           
 java.lang.String getName()
           
 javax.resource.spi.ResourceAdapter getResourceAdapter()
           
 java.lang.String getResourceAdapterClass()
           
 javax.transaction.xa.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(java.lang.String name,
                              java.lang.String resourceAdapterClass,
                              java.util.Map<java.lang.String,java.lang.String> messageListenerToActivationSpecMap,
                              javax.resource.spi.BootstrapContext bootstrapContext,
                              RecoverableTransactionManager transactionManager,
                              java.lang.ClassLoader cl,
                              javax.validation.ValidatorFactory validatorFactory)
                       throws java.lang.InstantiationException,
                              java.lang.IllegalAccessException,
                              java.lang.ClassNotFoundException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException

ResourceAdapterWrapper

public ResourceAdapterWrapper(java.lang.String name,
                              javax.resource.spi.ResourceAdapter resourceAdapter,
                              java.util.Map<java.lang.String,java.lang.String> messageListenerToActivationSpecMap,
                              javax.resource.spi.BootstrapContext bootstrapContext,
                              RecoverableTransactionManager transactionManager,
                              javax.validation.ValidatorFactory validatorFactory)
Method Detail

getName

public java.lang.String getName()

getResourceAdapterClass

public java.lang.String getResourceAdapterClass()

getMessageListenerToActivationSpecMap

public java.util.Map<java.lang.String,java.lang.String> getMessageListenerToActivationSpecMap()

getResourceAdapter

public javax.resource.spi.ResourceAdapter getResourceAdapter()

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

doRecovery

public void doRecovery(javax.resource.spi.ActivationSpec activationSpec,
                       java.lang.String containerId)

deregisterRecovery

public void deregisterRecovery(java.lang.String containerId)

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 javax.transaction.xa.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 java.lang.Exception
Throws:
java.lang.Exception

doStop

public void doStop()

doFail

public void doFail()


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.