org.apache.geronimo.connector
Class ActivationSpecWrapper

java.lang.Object
  extended byorg.apache.geronimo.connector.ActivationSpecWrapper
All Implemented Interfaces:
org.apache.geronimo.gbean.DynamicGBean, org.apache.geronimo.transaction.manager.ResourceManager

public class ActivationSpecWrapper
extends Object
implements org.apache.geronimo.transaction.manager.ResourceManager, org.apache.geronimo.gbean.DynamicGBean

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:
$Revision: 1.2 $ $Date: 2004/07/15 03:25:36 $

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
ActivationSpecWrapper()
          Default constructor required when a class is used as a GBean Endpoint.
ActivationSpecWrapper(Class activationSpecClass, String containerId, ResourceAdapterWrapper resourceAdapterWrapper)
          Normal managed constructor.
 
Method Summary
 void activate(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory)
           
 void deactivate(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory)
           
 Class getActivationSpecClass()
          Returns class of wrapped ActivationSpec.
 Object getAttribute(String name)
          Delegating DynamicGBean getAttribute method.
 String getContainerId()
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 org.apache.geronimo.transaction.manager.NamedXAResource getRecoveryXAResources()
           
 ResourceAdapterWrapper getResourceAdapterWrapper()
           
 Object invoke(String name, Object[] arguments, String[] types)
          no-op DynamicGBean method
 void returnResource(org.apache.geronimo.transaction.manager.NamedXAResource xaResource)
           
 void setAttribute(String name, Object value)
          Delegating DynamicGBean setAttribute method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

ActivationSpecWrapper

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


ActivationSpecWrapper

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

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

getActivationSpecClass

public Class getActivationSpecClass()
Returns class of wrapped ActivationSpec.

Returns:
class of wrapped ActivationSpec

getContainerId

public String getContainerId()

getResourceAdapterWrapper

public ResourceAdapterWrapper getResourceAdapterWrapper()

getAttribute

public Object getAttribute(String name)
                    throws Exception
Delegating DynamicGBean getAttribute method.

Specified by:
getAttribute in interface org.apache.geronimo.gbean.DynamicGBean
Parameters:
name - of attribute.
Returns:
attribute value.
Throws:
Exception

setAttribute

public void setAttribute(String name,
                         Object value)
                  throws Exception
Delegating DynamicGBean setAttribute method.

Specified by:
setAttribute in interface org.apache.geronimo.gbean.DynamicGBean
Parameters:
name - of attribute.
value - of attribute to be set.
Throws:
Exception

invoke

public Object invoke(String name,
                     Object[] arguments,
                     String[] types)
              throws Exception
no-op DynamicGBean method

Specified by:
invoke in interface org.apache.geronimo.gbean.DynamicGBean
Parameters:
name -
arguments -
types -
Returns:
nothing, there are no operations.
Throws:
Exception

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)

getRecoveryXAResources

public org.apache.geronimo.transaction.manager.NamedXAResource getRecoveryXAResources()
                                                                               throws SystemException
Specified by:
getRecoveryXAResources in interface org.apache.geronimo.transaction.manager.ResourceManager
Throws:
SystemException

returnResource

public void returnResource(org.apache.geronimo.transaction.manager.NamedXAResource xaResource)
Specified by:
returnResource in interface org.apache.geronimo.transaction.manager.ResourceManager

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.