com.sun.enterprise.connectors.inbound
Class ActiveInboundResourceAdapterImpl

java.lang.Object
  extended by com.sun.enterprise.connectors.ActiveResourceAdapterImpl
      extended by com.sun.enterprise.connectors.ActiveOutboundResourceAdapter
          extended by com.sun.enterprise.connectors.inbound.ActiveInboundResourceAdapterImpl
All Implemented Interfaces:
ActiveResourceAdapter, ActiveInboundResourceAdapter

@Service(name="ActiveInboundResourceAdapter")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class ActiveInboundResourceAdapterImpl
extends ActiveOutboundResourceAdapter
implements ActiveInboundResourceAdapter

Represents the active (runtime) inbound resource-adapter


Field Summary
 
Fields inherited from class com.sun.enterprise.connectors.ActiveOutboundResourceAdapter
_logger, bootStrapContextImpl, resourceadapter_
 
Fields inherited from class com.sun.enterprise.connectors.ActiveResourceAdapterImpl
connectionDefs_, connectorRuntime_, desc_, jcl_, moduleName_
 
Constructor Summary
ActiveInboundResourceAdapterImpl()
           
 
Method Summary
 void addEndpointFactoryInfo(java.lang.String id, MessageEndpointFactoryInfo info)
          Adds endpoint factory information.
 void destroy()
          Destroys default pools and resources.
 java.util.Collection<MessageEndpointFactoryInfo> getAllEndpointFactories()
          Retrieves the information about all endpoint factories.
 java.util.Set getAllEndpointFactoryInfo()
           
 MessageEndpointFactoryInfo getEndpointFactoryInfo(java.lang.String id)
          Returns information about endpoint factory.
 boolean handles(ConnectorDescriptor cd, java.lang.String moduleName)
          
 void init(ResourceAdapter ra, ConnectorDescriptor desc, java.lang.String moduleName, java.lang.ClassLoader jcl)
          Creates an active inbound resource adapter.
 void removeEndpointFactoryInfo(java.lang.String id)
          Removes information about an endpoint factory
 void updateMDBRuntimeInfo(EjbMessageBeanDescriptor descriptor_, BeanPoolDescriptor poolDescriptor)
          update MDB container runtime properties
 void validateActivationSpec(ActivationSpec spec)
          validate the activation-spec
 
Methods inherited from class com.sun.enterprise.connectors.ActiveOutboundResourceAdapter
addAdminObject, createManagedConnectionFactory, getBootStrapContext, getResourceAdapter, loadRAConfiguration, mergeRAConfiguration, setup, startResourceAdapter
 
Methods inherited from class com.sun.enterprise.connectors.ActiveResourceAdapterImpl
createAllConnectorResources, createDefaultConnectorConnectionPools, createDefaultConnectorResources, createManagedConnectionFactories, deleteDefaultConnectorConnectionPools, deleteDefaultConnectorResources, destroyAllConnectorResources, getClassLoader, getDescriptor, getModuleName, instantiateMCF, isServer, isSystemRar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.enterprise.connectors.ActiveResourceAdapter
createManagedConnectionFactories, createManagedConnectionFactory, getClassLoader, getDescriptor, getModuleName, getResourceAdapter, setup
 

Constructor Detail

ActiveInboundResourceAdapterImpl

public ActiveInboundResourceAdapterImpl()
Method Detail

init

public void init(ResourceAdapter ra,
                 ConnectorDescriptor desc,
                 java.lang.String moduleName,
                 java.lang.ClassLoader jcl)
          throws ConnectorRuntimeException
Creates an active inbound resource adapter. Sets all RA java bean properties and issues a start.

Specified by:
init in interface ActiveResourceAdapter
Overrides:
init in class ActiveOutboundResourceAdapter
Parameters:
ra - ResourceAdapter java bean.
desc - ConnectorDescriptor object.
moduleName - Resource adapter module name.
jcl - ClassLoader instance.
Throws:
ConnectorRuntimeException - If there is a failure in loading or starting the resource adapter.

destroy

public void destroy()
Destroys default pools and resources. Stops the Resource adapter java bean.

Specified by:
destroy in interface ActiveResourceAdapter
Overrides:
destroy in class ActiveOutboundResourceAdapter

getAllEndpointFactories

public java.util.Collection<MessageEndpointFactoryInfo> getAllEndpointFactories()
Retrieves the information about all endpoint factories.

Returns:
a Collection of MessageEndpointFactory objects.

getEndpointFactoryInfo

public MessageEndpointFactoryInfo getEndpointFactoryInfo(java.lang.String id)
Returns information about endpoint factory.

Specified by:
getEndpointFactoryInfo in interface ActiveInboundResourceAdapter
Parameters:
id - Id of the endpoint factory.
Returns:
MessageEndpointFactoryIndo object.

updateMDBRuntimeInfo

public void updateMDBRuntimeInfo(EjbMessageBeanDescriptor descriptor_,
                                 BeanPoolDescriptor poolDescriptor)
                          throws ConnectorRuntimeException
Description copied from interface: ActiveInboundResourceAdapter
update MDB container runtime properties

Specified by:
updateMDBRuntimeInfo in interface ActiveInboundResourceAdapter
Parameters:
descriptor_ - MessageBean Descriptor
poolDescriptor - Bean pool descriptor
Throws:
ConnectorRuntimeException

validateActivationSpec

public void validateActivationSpec(ActivationSpec spec)
Description copied from interface: ActiveInboundResourceAdapter
validate the activation-spec

Specified by:
validateActivationSpec in interface ActiveInboundResourceAdapter
Parameters:
spec - activation-spec

getAllEndpointFactoryInfo

public java.util.Set getAllEndpointFactoryInfo()

handles

public boolean handles(ConnectorDescriptor cd,
                       java.lang.String moduleName)

Specified by:
handles in interface ActiveResourceAdapter
Overrides:
handles in class ActiveOutboundResourceAdapter

addEndpointFactoryInfo

public void addEndpointFactoryInfo(java.lang.String id,
                                   MessageEndpointFactoryInfo info)
Adds endpoint factory information.

Specified by:
addEndpointFactoryInfo in interface ActiveInboundResourceAdapter
Parameters:
id - Unique identifier of the endpoint factory.
info - MessageEndpointFactoryInfo object.

removeEndpointFactoryInfo

public void removeEndpointFactoryInfo(java.lang.String id)
Removes information about an endpoint factory

Specified by:
removeEndpointFactoryInfo in interface ActiveInboundResourceAdapter
Parameters:
id - Unique identifier of the endpoint factory to be removed.


Copyright © 2012 GlassFish Community. All Rights Reserved.