Package org.jboss.jca.deployers.fungal
Class AbstractFungalRADeployer
java.lang.Object
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
org.jboss.jca.deployers.fungal.AbstractFungalRADeployer
- Direct Known Subclasses:
RAActivator,RADeployer,RaXmlDeployer
An abstract resource adapter deployer which contains common functionality
for all resource adapter archive based deployers.
- Author:
- Jesper Pedersen
-
Field Summary
FieldsFields inherited from class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
log, validateClasses -
Constructor Summary
ConstructorsConstructorDescriptionAbstractFungalRADeployer(boolean validateClasses) Create a new AbstractResourceAdapterDeployer. -
Method Summary
Modifier and TypeMethodDescriptionString[]bindAdminObject(URL url, String deployment, Object ao) String[]bindAdminObject(URL url, String deployment, Object ao, String jndi) String[]bindConnectionFactory(URL url, String deployment, Object cf) String[]bindConnectionFactory(URL url, String deployment, Object cf, String jndi) protected booleanprotected CachedConnectionManagercom.github.fungal.api.KernelGet the kernelprotected PrintWriterprotected Fileprotected SubjectFactorygetSubjectFactory(org.jboss.jca.common.api.metadata.common.SecurityMetadata securityMetadata, String jndiName) protected TransactionIntegrationprotected jakarta.transaction.TransactionManagerprotected URL[]Get the URLs for the directory and all libraries located in the directoryinitAndInject(String className, List<? extends org.jboss.jca.common.api.metadata.spec.ConfigProperty> configs, ClassLoader cl) Initialize and inject configuration propertiesprotected List<ObjectName>registerManagementView(Connector mgtConnector, MBeanServer server, String domain) Register management view of a connector in JMXprotected voidregisterResourceAdapterToMDR(URL url, File root, org.jboss.jca.common.api.metadata.spec.Connector cmd, org.jboss.jca.common.api.metadata.resourceadapter.Activation activation) protected StringregisterResourceAdapterToResourceAdapterRepository(jakarta.resource.spi.ResourceAdapter instance) voidsetKernel(com.github.fungal.api.Kernel kernel) Set the kernelprotected voidsetRecoveryForResourceAdapterInResourceAdapterRepository(String key, boolean isXA) voidstart()StartMethods inherited from class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
applyCapacity, associateResourceAdapter, buildJndiName, checkActivation, createCallback, createObjectsAndInjectValue, createPoolConfiguration, createSubject, findAdminObjects, findConnectionDefinitions, getBeanValidation, getConfiguration, getLogger, hasFailuresLevel, initActivationSpec, initAdminObject, printFailuresLog, requireExplicitJndiBindings, scanArchive, setCallbackSecurity, setConfiguration, startContext, validateArchive
-
Field Details
-
kernel
protected com.github.fungal.api.Kernel kernelThe kernel
-
-
Constructor Details
-
AbstractFungalRADeployer
public AbstractFungalRADeployer(boolean validateClasses) Create a new AbstractResourceAdapterDeployer.- Parameters:
validateClasses- boolean to express if this instance will apply validation on classes structure
-
-
Method Details
-
getKernel
public com.github.fungal.api.Kernel getKernel()Get the kernel- Returns:
- The kernel
-
setKernel
public void setKernel(com.github.fungal.api.Kernel kernel) Set the kernel- Parameters:
kernel- The kernel
-
start
public void start()Start- Overrides:
startin classAbstractResourceAdapterDeployer
-
initAndInject
public Object initAndInject(String className, List<? extends org.jboss.jca.common.api.metadata.spec.ConfigProperty> configs, ClassLoader cl) throws DeployException Initialize and inject configuration properties- Specified by:
initAndInjectin classAbstractResourceAdapterDeployer- Parameters:
className- The fully qualified class nameconfigs- The configuration propertiescl- The class loader- Returns:
- The object
- Throws:
DeployException- Thrown if the object cant be initialized
-
getUrls
Get the URLs for the directory and all libraries located in the directory- Parameters:
directory- The directory- Returns:
- The URLs
- Throws:
MalformedURLException- MalformedURLExceptionIOException- IOException
-
bindConnectionFactory
- Specified by:
bindConnectionFactoryin classAbstractResourceAdapterDeployer- Throws:
Throwable
-
bindConnectionFactory
public String[] bindConnectionFactory(URL url, String deployment, Object cf, String jndi) throws Throwable - Specified by:
bindConnectionFactoryin classAbstractResourceAdapterDeployer- Throws:
Throwable
-
bindAdminObject
- Specified by:
bindAdminObjectin classAbstractResourceAdapterDeployer- Throws:
Throwable
-
bindAdminObject
public String[] bindAdminObject(URL url, String deployment, Object ao, String jndi) throws Throwable - Specified by:
bindAdminObjectin classAbstractResourceAdapterDeployer- Throws:
Throwable
-
getReportDirectory
- Specified by:
getReportDirectoryin classAbstractResourceAdapterDeployer
-
checkConfigurationIsValid
protected boolean checkConfigurationIsValid()- Specified by:
checkConfigurationIsValidin classAbstractResourceAdapterDeployer
-
getLogPrintWriter
- Specified by:
getLogPrintWriterin classAbstractResourceAdapterDeployer
-
getTransactionManager
protected jakarta.transaction.TransactionManager getTransactionManager()- Specified by:
getTransactionManagerin classAbstractResourceAdapterDeployer
-
getTransactionIntegration
- Specified by:
getTransactionIntegrationin classAbstractResourceAdapterDeployer
-
registerResourceAdapterToMDR
protected void registerResourceAdapterToMDR(URL url, File root, org.jboss.jca.common.api.metadata.spec.Connector cmd, org.jboss.jca.common.api.metadata.resourceadapter.Activation activation) throws AlreadyExistsException - Specified by:
registerResourceAdapterToMDRin classAbstractResourceAdapterDeployer- Throws:
AlreadyExistsException
-
registerResourceAdapterToResourceAdapterRepository
protected String registerResourceAdapterToResourceAdapterRepository(jakarta.resource.spi.ResourceAdapter instance) - Specified by:
registerResourceAdapterToResourceAdapterRepositoryin classAbstractResourceAdapterDeployer
-
setRecoveryForResourceAdapterInResourceAdapterRepository
- Specified by:
setRecoveryForResourceAdapterInResourceAdapterRepositoryin classAbstractResourceAdapterDeployer
-
registerManagementView
protected List<ObjectName> registerManagementView(Connector mgtConnector, MBeanServer server, String domain) throws JMException Register management view of a connector in JMX- Parameters:
mgtConnector- The management view of the connectorserver- The MBeanServer instancedomain- The management domain- Returns:
- The ObjectName's generated for this connector
- Throws:
JMException- Thrown in case of an error
-
getSubjectFactory
protected SubjectFactory getSubjectFactory(org.jboss.jca.common.api.metadata.common.SecurityMetadata securityMetadata, String jndiName) throws DeployException - Specified by:
getSubjectFactoryin classAbstractResourceAdapterDeployer- Throws:
DeployException
-
getCachedConnectionManager
- Specified by:
getCachedConnectionManagerin classAbstractResourceAdapterDeployer
-