org.jboss.jca.deployers.fungal
Class AbstractFungalDeployment

java.lang.Object
  extended by org.jboss.jca.deployers.fungal.AbstractFungalDeployment
All Implemented Interfaces:
com.github.fungal.spi.deployers.Deployment
Direct Known Subclasses:
RAActivatorDeployment, RADeployment, RaXmlDeployment

public abstract class AbstractFungalDeployment
extends Object
implements com.github.fungal.spi.deployers.Deployment

A resource adapter deployment for JCA/SJC

Author:
Jesper Pedersen

Field Summary
protected  boolean activator
          Activator
protected  String[] aoJndis
          The JNDI names of the admin objects
protected  Object[] aos
          The admin objects
protected  String[] cfJndis
          The JNDI names of the connection factories
protected  Object[] cfs
          The connection factories
protected  ClassLoader cl
          The classloader
protected  URL deployment
          The deployment
protected  String deploymentName
          The deployment name
protected  org.jboss.jca.core.spi.naming.JndiStrategy jndiStrategy
          The JNDI strategy
protected  org.jboss.logging.Logger log
          The logger
protected  org.jboss.jca.core.spi.mdr.MetadataRepository mdr
          The MDR
protected  List<ObjectName> objectNames
          The ObjectName's
protected  javax.resource.spi.ResourceAdapter ra
          The resource adapter instance
protected  MBeanServer server
          The MBeanServer
 
Constructor Summary
AbstractFungalDeployment(URL deployment, String deploymentName, boolean activator, javax.resource.spi.ResourceAdapter ra, org.jboss.jca.core.spi.naming.JndiStrategy jndiStrategy, org.jboss.jca.core.spi.mdr.MetadataRepository metadataRepository, Object[] cfs, String[] cfJndis, Object[] aos, String[] aoJndis, MBeanServer server, List<ObjectName> objectNames, ClassLoader cl, org.jboss.logging.Logger log)
          Constructor
 
Method Summary
 void destroy()
          Destroy
 ClassLoader getClassLoader()
          Get the classloader
 URL getURL()
          Get the unique URL for the deployment
 void stop()
          Stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.jboss.logging.Logger log
The logger


deployment

protected URL deployment
The deployment


deploymentName

protected String deploymentName
The deployment name


activator

protected boolean activator
Activator


ra

protected javax.resource.spi.ResourceAdapter ra
The resource adapter instance


jndiStrategy

protected org.jboss.jca.core.spi.naming.JndiStrategy jndiStrategy
The JNDI strategy


mdr

protected org.jboss.jca.core.spi.mdr.MetadataRepository mdr
The MDR


cfs

protected Object[] cfs
The connection factories


cfJndis

protected String[] cfJndis
The JNDI names of the connection factories


aos

protected Object[] aos
The admin objects


aoJndis

protected String[] aoJndis
The JNDI names of the admin objects


server

protected MBeanServer server
The MBeanServer


objectNames

protected List<ObjectName> objectNames
The ObjectName's


cl

protected ClassLoader cl
The classloader

Constructor Detail

AbstractFungalDeployment

public AbstractFungalDeployment(URL deployment,
                                String deploymentName,
                                boolean activator,
                                javax.resource.spi.ResourceAdapter ra,
                                org.jboss.jca.core.spi.naming.JndiStrategy jndiStrategy,
                                org.jboss.jca.core.spi.mdr.MetadataRepository metadataRepository,
                                Object[] cfs,
                                String[] cfJndis,
                                Object[] aos,
                                String[] aoJndis,
                                MBeanServer server,
                                List<ObjectName> objectNames,
                                ClassLoader cl,
                                org.jboss.logging.Logger log)
Constructor

Parameters:
deployment - The deployment
deploymentName - The deployment name
activator - Is this the activator of the deployment
ra - The resource adapter instance if present
jndiStrategy - The JNDI strategy
metadataRepository - The metadata repository
cfs - The connection factories
cfJndis - The JNDI names of the connection factories
aos - The admin objects
aoJndis - The JNDI names of the admin objects
server - The MBeanServer
objectNames - The ObjectNames
cl - The classloader for the deployment
log - The logger
Method Detail

getURL

public URL getURL()
Get the unique URL for the deployment

Specified by:
getURL in interface com.github.fungal.spi.deployers.Deployment
Returns:
The URL

getClassLoader

public ClassLoader getClassLoader()
Get the classloader

Specified by:
getClassLoader in interface com.github.fungal.spi.deployers.Deployment
Returns:
The classloader

stop

public void stop()
Stop


destroy

public void destroy()
Destroy



Copyright © 2008 Red Hat Middleware LLC (http://www.jboss.com/)