org.apache.geronimo.connector
Class ActivationSpecWrapper
java.lang.Object
org.apache.geronimo.connector.ActivationSpecWrapper
- All Implemented Interfaces:
- org.apache.geronimo.transaction.manager.ResourceManager
- Direct Known Subclasses:
- ActivationSpecWrapperGBean
- public class ActivationSpecWrapper
- extends Object
- implements org.apache.geronimo.transaction.manager.ResourceManager
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: 356022 $ $Date: 2005-12-11 21:58:34 +0100 (Sun, 11 Dec 2005) $
Field Summary |
protected javax.resource.spi.ActivationSpec |
activationSpec
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
activationSpec
protected final javax.resource.spi.ActivationSpec activationSpec
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(javax.resource.spi.ActivationSpec activationSpec,
ResourceAdapterWrapper resourceAdapterWrapper)
getContainerId
public 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)
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
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.