org.jboss.jca.deployers.fungal
Class AbstractFungalRADeployer

java.lang.Object
  extended by org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
      extended by org.jboss.jca.deployers.fungal.AbstractFungalRADeployer
Direct Known Subclasses:
RAActivator, RADeployer, RaXmlDeployer

public abstract class AbstractFungalRADeployer
extends org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer

An abstract resource adapter deployer which contains common functionality for all resource adapter archive based deployers.

Author:
Jesper Pedersen

Field Summary
 
Fields inherited from class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
log, trace, validateClasses
 
Constructor Summary
AbstractFungalRADeployer(boolean validateClasses, org.jboss.logging.Logger log)
          Create a new AbstractResourceAdapterDeployer.
 
Method Summary
 String[] bindConnectionFactory(URL url, String deployment, Object cf)
           
 String[] bindConnectionFactory(URL url, String deployment, Object cf, String jndi)
           
protected  boolean checkConfigurationIsValid()
           
protected  PrintWriter getLogPrintWriter()
           
protected  File getReportDirectory()
           
protected  TransactionManager getTransactionManager()
           
protected  URL[] getUrls(File directory)
          Get the URLs for the directory and all libraries located in the directory
 Object initAndInject(String className, List<? extends org.jboss.jca.common.api.metadata.ra.ConfigProperty> configs, ClassLoader cl)
          Initialize and inject configuration properties
protected  void registerResourceAdapterToMDR(URL url, File root, org.jboss.jca.common.api.metadata.ra.Connector cmd, org.jboss.jca.common.api.metadata.ironjacamar.IronJacamar ijmd)
           
 
Methods inherited from class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
associateResourceAdapter, checkActivation, createObjectsAndInjectValue, createPoolConfiguration, findConnectionDefinition, getConfiguration, hasFailuresLevel, initActivationSpec, initAdminObject, printFailuresLog, setConfiguration, start, startContext, validateArchive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFungalRADeployer

public AbstractFungalRADeployer(boolean validateClasses,
                                org.jboss.logging.Logger log)
Create a new AbstractResourceAdapterDeployer.

Parameters:
validateClasses - boolean to express if this instance will apply validation on classes structure
log - the right log where put messages
Method Detail

initAndInject

public Object initAndInject(String className,
                            List<? extends org.jboss.jca.common.api.metadata.ra.ConfigProperty> configs,
                            ClassLoader cl)
                     throws org.jboss.jca.deployers.common.DeployException
Initialize and inject configuration properties

Specified by:
initAndInject in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
Parameters:
className - The fully qualified class name
configs - The configuration properties
cl - The class loader
Returns:
The object
Throws:
org.jboss.jca.deployers.common.DeployException - Thrown if the object cant be initialized

getUrls

protected URL[] getUrls(File directory)
                 throws MalformedURLException,
                        IOException
Get the URLs for the directory and all libraries located in the directory

Parameters:
directory - The directory
Returns:
The URLs
Throws:
MalformedURLException - MalformedURLException
IOException - IOException

bindConnectionFactory

public String[] bindConnectionFactory(URL url,
                                      String deployment,
                                      Object cf)
                               throws Throwable
Specified by:
bindConnectionFactory in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
Throws:
Throwable

bindConnectionFactory

public String[] bindConnectionFactory(URL url,
                                      String deployment,
                                      Object cf,
                                      String jndi)
                               throws Throwable
Specified by:
bindConnectionFactory in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
Throws:
Throwable

getReportDirectory

protected File getReportDirectory()
Specified by:
getReportDirectory in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer

checkConfigurationIsValid

protected boolean checkConfigurationIsValid()
Specified by:
checkConfigurationIsValid in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer

getLogPrintWriter

protected PrintWriter getLogPrintWriter()
Specified by:
getLogPrintWriter in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer

getTransactionManager

protected TransactionManager getTransactionManager()
Specified by:
getTransactionManager in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer

registerResourceAdapterToMDR

protected void registerResourceAdapterToMDR(URL url,
                                            File root,
                                            org.jboss.jca.common.api.metadata.ra.Connector cmd,
                                            org.jboss.jca.common.api.metadata.ironjacamar.IronJacamar ijmd)
                                     throws org.jboss.jca.core.spi.mdr.AlreadyExistsException
Specified by:
registerResourceAdapterToMDR in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
Throws:
org.jboss.jca.core.spi.mdr.AlreadyExistsException


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