Package org.jboss.jca.deployers.fungal
Class RADeployer
java.lang.Object
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
org.jboss.jca.deployers.fungal.AbstractFungalRADeployer
org.jboss.jca.deployers.fungal.RADeployer
- All Implemented Interfaces:
com.github.fungal.spi.deployers.Deployer
public class RADeployer
extends AbstractFungalRADeployer
implements com.github.fungal.spi.deployers.Deployer
The RA deployer for JCA/SJC
- Author:
- Jesper Pedersen, Jeff Zhang, Stefano Maestri
-
Field Summary
Fields inherited from class org.jboss.jca.deployers.fungal.AbstractFungalRADeployer
kernelFields inherited from class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
validateClasses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected booleancheckActivation(org.jboss.jca.common.api.metadata.spec.Connector cmd, org.jboss.jca.common.api.metadata.resourceadapter.Activation activation) Check if the resource adapter should be activated based on the ironjacamar.xml inputprotected 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 a rar resourceprotected StringGet IronJacamar Home directoryprotected DeployersLoggerintgetOrder()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, startMethods 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
-
Constructor Details
-
RADeployer
public RADeployer()Constructor
-
-
Method Details
-
getLogger
- Specified by:
getLoggerin classAbstractResourceAdapterDeployer
-
accepts
- Specified by:
acceptsin interfacecom.github.fungal.spi.deployers.Deployer
-
getOrder
public int getOrder()- Specified by:
getOrderin interfacecom.github.fungal.spi.deployers.Deployer
-
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
Get File object of URL who locate a rar resource- Parameters:
url- url of the archive- Returns:
- a File object pointing of rar resources
- Throws:
URISyntaxException- Thrown if the resource adapter cant be foundIOException- Thrown if the resource adapter cant be accessible
-
getIronJacamarHome
Get IronJacamar Home directory- Returns:
- a String object
-
cleanTemporaryFiles
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(org.jboss.jca.common.api.metadata.spec.Connector cmd, org.jboss.jca.common.api.metadata.resourceadapter.Activation activation) Check if the resource adapter should be activated based on the ironjacamar.xml input- Specified by:
checkActivationin classAbstractResourceAdapterDeployer- Parameters:
cmd- The connector metadataactivation- The activation metadata- Returns:
- True if the deployment should be activated; otherwise false
-