org.apache.geronimo.connector
Class ActivationSpecWrapper

java.lang.Object
  extended by org.apache.geronimo.connector.ActivationSpecWrapper

public class ActivationSpecWrapper
extends java.lang.Object

Wrapper for ActivationSpec instances. The framework assumes all RequiredConfigProperties are of type String, although it is unclear if this is required by the spec.

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

Field Summary
protected  javax.resource.spi.ActivationSpec activationSpec
           
 
Constructor Summary
ActivationSpecWrapper()
          Default constructor required when a class is used as a GBean Endpoint.
ActivationSpecWrapper(javax.resource.spi.ActivationSpec activationSpec, ResourceAdapterWrapper resourceAdapterWrapper, javax.validation.ValidatorFactory validatorFactory)
           
ActivationSpecWrapper(java.lang.String activationSpecClass, java.lang.String containerId, ResourceAdapterWrapper resourceAdapterWrapper, java.lang.ClassLoader cl, javax.validation.ValidatorFactory validatorFactory)
          Normal managed constructor.
 
Method Summary
 void activate(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory)
           
 void deactivate(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory)
           
 java.lang.String getContainerId()
          Returns class of wrapped ActivationSpec.
 ResourceAdapterWrapper getResourceAdapterWrapper()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activationSpec

protected final javax.resource.spi.ActivationSpec activationSpec
Constructor Detail

ActivationSpecWrapper

public ActivationSpecWrapper()
Default constructor required when a class is used as a GBean Endpoint.


ActivationSpecWrapper

public ActivationSpecWrapper(java.lang.String activationSpecClass,
                             java.lang.String containerId,
                             ResourceAdapterWrapper resourceAdapterWrapper,
                             java.lang.ClassLoader cl,
                             javax.validation.ValidatorFactory validatorFactory)
                      throws java.lang.IllegalAccessException,
                             java.lang.InstantiationException,
                             java.lang.ClassNotFoundException
Normal managed constructor.

Parameters:
activationSpecClass - Class of admin object to be wrapped.
Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.ClassNotFoundException

ActivationSpecWrapper

public ActivationSpecWrapper(javax.resource.spi.ActivationSpec activationSpec,
                             ResourceAdapterWrapper resourceAdapterWrapper,
                             javax.validation.ValidatorFactory validatorFactory)
Method Detail

getContainerId

public java.lang.String getContainerId()
Returns class of wrapped ActivationSpec.

Returns:
class of wrapped ActivationSpec

getResourceAdapterWrapper

public ResourceAdapterWrapper getResourceAdapterWrapper()

activate

public void activate(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory)
              throws javax.resource.ResourceException
Throws:
javax.resource.ResourceException

deactivate

public void deactivate(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory)


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