org.apache.geronimo.connector
Class ActivationSpecWrapper

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

public class ActivationSpecWrapper
extends 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: 550546 $ $Date: 2007-06-25 12:52:11 -0400 (Mon, 25 Jun 2007) $

Field Summary
protected  ActivationSpec activationSpec
           
 
Constructor Summary
ActivationSpecWrapper()
          Default constructor required when a class is used as a GBean Endpoint.
ActivationSpecWrapper(ActivationSpec activationSpec, ResourceAdapterWrapper resourceAdapterWrapper)
           
ActivationSpecWrapper(String activationSpecClass, String containerId, ResourceAdapterWrapper resourceAdapterWrapper, ClassLoader cl)
          Normal managed constructor.
 
Method Summary
 void activate(MessageEndpointFactory messageEndpointFactory)
           
 void deactivate(MessageEndpointFactory messageEndpointFactory)
           
 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 ActivationSpec activationSpec
Constructor Detail

ActivationSpecWrapper

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


ActivationSpecWrapper

public ActivationSpecWrapper(String activationSpecClass,
                             String containerId,
                             ResourceAdapterWrapper resourceAdapterWrapper,
                             ClassLoader cl)
                      throws IllegalAccessException,
                             InstantiationException,
                             ClassNotFoundException
Normal managed constructor.

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

ActivationSpecWrapper

public ActivationSpecWrapper(ActivationSpec activationSpec,
                             ResourceAdapterWrapper resourceAdapterWrapper)
Method Detail

getContainerId

public String getContainerId()
Returns class of wrapped ActivationSpec.

Returns:
class of wrapped ActivationSpec

getResourceAdapterWrapper

public ResourceAdapterWrapper getResourceAdapterWrapper()

activate

public void activate(MessageEndpointFactory messageEndpointFactory)
              throws ResourceException
Throws:
ResourceException

deactivate

public void deactivate(MessageEndpointFactory messageEndpointFactory)


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