Package org.jboss.jca.deployers.fungal
Class RaXmlDeployer
- java.lang.Object
-
- org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
-
- org.jboss.jca.deployers.fungal.AbstractFungalRADeployer
-
- org.jboss.jca.deployers.fungal.RaXmlDeployer
-
- All Implemented Interfaces:
com.github.fungal.spi.deployers.Deployer,com.github.fungal.spi.deployers.DeployerPhases
public class RaXmlDeployer extends AbstractFungalRADeployer implements com.github.fungal.spi.deployers.Deployer, com.github.fungal.spi.deployers.DeployerPhases
The -ra.xml deployer for JCA/SJC- Author:
- Jesper Pedersen
-
-
Field Summary
-
Fields inherited from class org.jboss.jca.deployers.fungal.AbstractFungalRADeployer
kernel
-
Fields inherited from class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
validateClasses
-
-
Constructor Summary
Constructors Constructor Description RaXmlDeployer()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(URL url)protected booleancheckActivation(Connector cmd, Activation activation)protected voidcleanTemporaryFiles(URL url)Clean all potential temporary filescom.github.fungal.spi.deployers.Deploymentdeploy(URL url, com.github.fungal.spi.deployers.Context context, ClassLoader parent)protected FilegetFileFromUrl(URL url)Get File object of URL who locate xml resourceprotected StringgetIronJacamarHome()Get IronJacamar Home directoryprotected DeployersLoggergetLogger()intgetOrder()voidpostDeploy()Post deployvoidpostUndeploy()Post undeployvoidpreDeploy()Pre deployvoidpreUndeploy()Pre undeploy-
Methods inherited from class org.jboss.jca.deployers.fungal.AbstractFungalRADeployer
bindAdminObject, bindAdminObject, bindConnectionFactory, bindConnectionFactory, checkConfigurationIsValid, getCachedConnectionManager, getKernel, getLogPrintWriter, getReportDirectory, getSubjectFactory, getTransactionIntegration, getTransactionManager, getUrls, initAndInject, registerManagementView, registerResourceAdapterToMDR, registerResourceAdapterToResourceAdapterRepository, setKernel, setRecoveryForResourceAdapterInResourceAdapterRepository, start
-
Methods inherited from class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
applyCapacity, associateResourceAdapter, buildJndiName, createCallback, createObjectsAndInjectValue, createPoolConfiguration, createSubject, findAdminObjects, findConnectionDefinitions, getBeanValidation, getConfiguration, hasFailuresLevel, initActivationSpec, initAdminObject, printFailuresLog, requireExplicitJndiBindings, scanArchive, setCallbackSecurity, setConfiguration, startContext, validateArchive
-
-
-
-
Method Detail
-
getLogger
protected DeployersLogger getLogger()
- Specified by:
getLoggerin classAbstractResourceAdapterDeployer
-
accepts
public boolean accepts(URL url)
- Specified by:
acceptsin interfacecom.github.fungal.spi.deployers.Deployer
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfacecom.github.fungal.spi.deployers.Deployer
-
preDeploy
public void preDeploy() throws ThrowablePre deploy- Specified by:
preDeployin interfacecom.github.fungal.spi.deployers.DeployerPhases- Throws:
Throwable- Thrown if an error occurs
-
postDeploy
public void postDeploy() throws ThrowablePost deploy- Specified by:
postDeployin interfacecom.github.fungal.spi.deployers.DeployerPhases- Throws:
Throwable- Thrown if an error occurs
-
preUndeploy
public void preUndeploy() throws ThrowablePre undeploy- Specified by:
preUndeployin interfacecom.github.fungal.spi.deployers.DeployerPhases- Throws:
Throwable- Thrown if an error occurs
-
postUndeploy
public void postUndeploy() throws ThrowablePost undeploy- Specified by:
postUndeployin interfacecom.github.fungal.spi.deployers.DeployerPhases- Throws:
Throwable- Thrown if an error occurs
-
deploy
public com.github.fungal.spi.deployers.Deployment deploy(URL url, com.github.fungal.spi.deployers.Context context, ClassLoader parent) throws com.github.fungal.spi.deployers.DeployException
- Specified by:
deployin interfacecom.github.fungal.spi.deployers.Deployer- Throws:
com.github.fungal.spi.deployers.DeployException
-
getFileFromUrl
protected File getFileFromUrl(URL url) throws URISyntaxException, IOException
Get File object of URL who locate xml resource- Parameters:
url- url of the archive- Returns:
- a File object pointing of xml resource
- Throws:
URISyntaxException- Thrown if the resource adapter cant be foundIOException- Thrown if the resource adapter cant be accessible
-
getIronJacamarHome
protected String getIronJacamarHome()
Get IronJacamar Home directory- Returns:
- a String object
-
cleanTemporaryFiles
protected void cleanTemporaryFiles(URL url) throws com.github.fungal.spi.deployers.DeployException
Clean all potential temporary files- Parameters:
url- url of the archive- Throws:
com.github.fungal.spi.deployers.DeployException- Thrown if the resource cant be cleaned
-
checkActivation
protected boolean checkActivation(Connector cmd, Activation activation)
- Specified by:
checkActivationin classAbstractResourceAdapterDeployer
-
-