
public abstract class AbstractFungalRADeployer
extends org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer
| Modifier and Type | Field and Description |
|---|---|
protected com.github.fungal.api.Kernel |
kernel
The kernel
|
| Constructor and Description |
|---|
AbstractFungalRADeployer(boolean validateClasses)
Create a new AbstractResourceAdapterDeployer.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
bindAdminObject(URL url,
String deployment,
Object ao)
Bind admin object into JNDI
|
String[] |
bindAdminObject(URL url,
String deployment,
Object ao,
String jndi)
Bind admin object into JNDI
|
String[] |
bindConnectionFactory(URL url,
String deployment,
Object cf)
Bind connection factory into JNDI
|
String[] |
bindConnectionFactory(URL url,
String deployment,
Object cf,
String jndi)
Bind connection factory into JNDI
|
protected boolean |
checkConfigurationIsValid()
check if the configuration for this deployer has been set to a valid value
|
protected org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager |
getCachedConnectionManager()
Get the cached connection manager
|
com.github.fungal.api.Kernel |
getKernel()
Get the kernel
|
protected PrintWriter |
getLogPrintWriter()
get a PrintWriter where logger will put its output
|
protected File |
getReportDirectory()
get The directory where write error reports
|
protected org.jboss.jca.core.spi.security.SubjectFactory |
getSubjectFactory(String securityDomain)
Get a subject factory
|
protected org.jboss.jca.core.spi.transaction.TransactionIntegration |
getTransactionIntegration()
Get the transaction integration.
|
protected TransactionManager |
getTransactionManager()
Get the transaction Manager.
|
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.spec.ConfigProperty> configs,
ClassLoader cl)
Initialize and inject configuration properties
|
protected List<ObjectName> |
registerManagementView(org.jboss.jca.core.api.management.Connector mgtConnector,
MBeanServer server,
String domain)
Register management view of a connector in JMX
|
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)
Register the ResourceAdapter to the MDR.
|
protected String |
registerResourceAdapterToResourceAdapterRepository(javax.resource.spi.ResourceAdapter instance)
Register the ResourceAdapter to the ResourceAdapterRepository.
|
void |
setKernel(com.github.fungal.api.Kernel kernel)
Set the kernel
|
protected void |
setRecoveryForResourceAdapterInResourceAdapterRepository(String key,
boolean isXA)
Set recovery mode for a resource adapter in the ResourceAdapterRepository
|
void |
start()
Start
|
applyCapacity, associateResourceAdapter, buildJndiName, checkActivation, createObjectsAndInjectValue, createPoolConfiguration, createSubject, findAdminObjects, findConnectionDefinitions, getBeanValidation, getConfiguration, getLogger, hasFailuresLevel, initActivationSpec, initAdminObject, printFailuresLog, requireExplicitJndiBindings, scanArchive, setConfiguration, startContext, validateArchivepublic AbstractFungalRADeployer(boolean validateClasses)
validateClasses - boolean to express if this instance will apply validation on classes structurepublic com.github.fungal.api.Kernel getKernel()
public void setKernel(com.github.fungal.api.Kernel kernel)
kernel - The kernelpublic void start()
start in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerpublic Object initAndInject(String className, List<? extends org.jboss.jca.common.api.metadata.spec.ConfigProperty> configs, ClassLoader cl) throws org.jboss.jca.deployers.common.DeployException
initAndInject in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerclassName - The fully qualified class nameconfigs - The configuration propertiescl - The class loaderorg.jboss.jca.deployers.common.DeployException - Thrown if the object cant be initializedprotected URL[] getUrls(File directory) throws MalformedURLException, IOException
directory - The directoryMalformedURLException - MalformedURLExceptionIOException - IOExceptionpublic String[] bindConnectionFactory(URL url, String deployment, Object cf) throws Throwable
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerbindConnectionFactory in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerurl - The deployment URLdeployment - The deployment namecf - The connection factoryThrowable - Thrown if an error occurspublic String[] bindConnectionFactory(URL url, String deployment, Object cf, String jndi) throws Throwable
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerbindConnectionFactory in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerurl - The deployment URLdeployment - The deployment namecf - The connection factoryjndi - The JNDI nameThrowable - Thrown if an error occurspublic String[] bindAdminObject(URL url, String deployment, Object ao) throws Throwable
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerbindAdminObject in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerurl - The deployment URLdeployment - The deployment nameao - The admin objectThrowable - Thrown if an error occurspublic String[] bindAdminObject(URL url, String deployment, Object ao, String jndi) throws Throwable
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerbindAdminObject in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerurl - The deployment URLdeployment - The deployment nameao - The admin objectjndi - The JNDI nameThrowable - Thrown if an error occursprotected File getReportDirectory()
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployergetReportDirectory in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerFileprotected boolean checkConfigurationIsValid()
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployercheckConfigurationIsValid in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerprotected PrintWriter getLogPrintWriter()
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployergetLogPrintWriter in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerprotected TransactionManager getTransactionManager()
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployergetTransactionManager in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerprotected org.jboss.jca.core.spi.transaction.TransactionIntegration getTransactionIntegration()
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployergetTransactionIntegration in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerprotected 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 org.jboss.jca.core.spi.mdr.AlreadyExistsException
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerregisterResourceAdapterToMDR in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerurl - urlroot - rootcmd - cmdactivation - activationorg.jboss.jca.core.spi.mdr.AlreadyExistsException - AlreadyExistsExceptionprotected String registerResourceAdapterToResourceAdapterRepository(javax.resource.spi.ResourceAdapter instance)
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerregisterResourceAdapterToResourceAdapterRepository in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerinstance - the instanceprotected void setRecoveryForResourceAdapterInResourceAdapterRepository(String key, boolean isXA)
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployersetRecoveryForResourceAdapterInResourceAdapterRepository in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerkey - The key for the resource adapterisXA - Is the resource adapter XA capableprotected List<ObjectName> registerManagementView(org.jboss.jca.core.api.management.Connector mgtConnector, MBeanServer server, String domain) throws JMException
mgtConnector - The management view of the connectorserver - The MBeanServer instancedomain - The management domainJMException - Thrown in case of an errorprotected org.jboss.jca.core.spi.security.SubjectFactory getSubjectFactory(String securityDomain) throws org.jboss.jca.deployers.common.DeployException
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployergetSubjectFactory in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployersecurityDomain - The security domainnull if security domain isn't definedorg.jboss.jca.deployers.common.DeployException - Thrown if the security domain can't be resolvedprotected org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager getCachedConnectionManager()
org.jboss.jca.deployers.common.AbstractResourceAdapterDeployergetCachedConnectionManager in class org.jboss.jca.deployers.common.AbstractResourceAdapterDeployerCopyright © 2014 IronJacamar (http://www.ironjacamar.org)