
public final class DsXmlDeployer
extends org.jboss.jca.deployers.common.AbstractDsDeployer
implements com.github.fungal.spi.deployers.Deployer
| Constructor and Description |
|---|
DsXmlDeployer()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(URL url) |
protected String[] |
bindConnectionFactory(String deployment,
String jndi,
Object cf)
Bind connection factory into JNDI
|
protected javax.resource.spi.ManagedConnectionFactory |
createMcf(org.jboss.jca.common.api.metadata.ds.DataSource ds,
String uniqueId,
ClassLoader cl)
Create Mcf for ds
|
protected javax.resource.spi.ManagedConnectionFactory |
createMcf(org.jboss.jca.common.api.metadata.ds.XaDataSource ds,
String uniqueId,
ClassLoader cl)
Create Mcf for xads
|
protected javax.resource.spi.ResourceAdapter |
createRa(String uniqueId,
ClassLoader cl)
Create Ra
|
com.github.fungal.spi.deployers.Deployment |
deploy(URL url,
com.github.fungal.spi.deployers.Context context,
ClassLoader parent) |
protected ClassLoader |
getDeploymentClassLoader(String uniqueId)
Provide the classloader of the deployment identified by the unique id
|
protected String |
getDriver(String driverName,
String moduleId)
Get the driver
|
String |
getJDBCLocal()
Get the name for the JDBC Local resource adapter
|
String |
getJDBCXA()
Get the name for the JDBC Xa resource adapter
|
protected org.jboss.jca.deployers.DeployersLogger |
getLogger()
Get the logger
|
org.jboss.jca.core.spi.mdr.MetadataRepository |
getMetadataRepository()
Get the metadata repository
|
int |
getOrder() |
org.jboss.jca.core.spi.rar.ResourceAdapterRepository |
getResourceAdapterRepository()
Get the resource adapter repository
|
protected org.jboss.jca.core.spi.security.SubjectFactory |
getSubjectFactory(String securityDomain)
Get a subject factory
|
Object |
initAndInject(String className,
List<? extends org.jboss.jca.common.api.metadata.spec.ConfigProperty> configs,
ClassLoader cl)
Initialize and inject configuration properties
|
protected String |
registerResourceAdapterToResourceAdapterRepository(javax.resource.spi.ResourceAdapter instance)
Register the ResourceAdapter to the ResourceAdapterRepository.
|
void |
setDriverRegistry(DriverRegistry value)
Set the driver registry
|
void |
setJDBCLocal(String value)
Set the name for the JDBC Local resource adapter
|
void |
setJDBCXA(String value)
Set the name for the JDBC XA resource adapter
|
void |
setMetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository value)
Set the metadata repository
|
void |
setResourceAdapterRepository(org.jboss.jca.core.spi.rar.ResourceAdapterRepository value)
Set the resource adapter repository
|
void |
start()
Start
|
associateResourceAdapter, buildJndiName, createObjectsAndInjectValue, createSubject, getCachedConnectionManager, getManagementRepository, getTransactionIntegration, getXAResourceRecoveryRegistry, initAndInjectClassLoaderPlugin, setCachedConnectionManager, setManagementRepository, setTransactionIntegration, setXAResourceRecoveryRegistry, startContextpublic void setJDBCLocal(String value)
value - The valuepublic String getJDBCLocal()
public void setJDBCXA(String value)
value - The valuepublic String getJDBCXA()
protected org.jboss.jca.deployers.DeployersLogger getLogger()
getLogger in class org.jboss.jca.deployers.common.AbstractDsDeployerpublic void setDriverRegistry(DriverRegistry value)
value - The valuepublic boolean accepts(URL url)
accepts in interface com.github.fungal.spi.deployers.Deployerpublic int getOrder()
getOrder in interface com.github.fungal.spi.deployers.Deployerpublic 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
deploy in interface com.github.fungal.spi.deployers.Deployercom.github.fungal.spi.deployers.DeployExceptionpublic 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.AbstractDsDeployerclassName - The fully qualified class nameconfigs - The configuration propertiescl - The class loaderorg.jboss.jca.deployers.common.DeployException - Thrown if the object cant be initializedprotected String[] bindConnectionFactory(String deployment, String jndi, Object cf) throws Throwable
bindConnectionFactory in class org.jboss.jca.deployers.common.AbstractDsDeployerdeployment - The deployment namejndi - The JNDI namecf - The connection factoryThrowable - thrown if an error occursprotected String getDriver(String driverName, String moduleId)
getDriver in class org.jboss.jca.deployers.common.AbstractDsDeployerdriverName - The name of the drivermoduleId - The id of the modulenull if not foundpublic void start()
protected ClassLoader getDeploymentClassLoader(String uniqueId)
org.jboss.jca.deployers.common.AbstractDsDeployergetDeploymentClassLoader in class org.jboss.jca.deployers.common.AbstractDsDeployeruniqueId - Theprotected org.jboss.jca.core.spi.security.SubjectFactory getSubjectFactory(String securityDomain) throws org.jboss.jca.deployers.common.DeployException
org.jboss.jca.deployers.common.AbstractDsDeployergetSubjectFactory in class org.jboss.jca.deployers.common.AbstractDsDeployersecurityDomain - The security domainnull if security domain isn't definedorg.jboss.jca.deployers.common.DeployException - Thrown if the security domain can't be resolvedprotected javax.resource.spi.ResourceAdapter createRa(String uniqueId, ClassLoader cl) throws org.jboss.jca.core.spi.mdr.NotFoundException, Exception, com.github.fungal.spi.deployers.DeployException
org.jboss.jca.deployers.common.AbstractDsDeployercreateRa in class org.jboss.jca.deployers.common.AbstractDsDeployeruniqueId - the uniqueIdcl - the classloaderorg.jboss.jca.core.spi.mdr.NotFoundException - in case it's not found in clException - in case of other errororg.jboss.jca.deployers.common.DeployException - in case of deploy errorcom.github.fungal.spi.deployers.DeployExceptionprotected String registerResourceAdapterToResourceAdapterRepository(javax.resource.spi.ResourceAdapter instance)
org.jboss.jca.deployers.common.AbstractDsDeployerregisterResourceAdapterToResourceAdapterRepository in class org.jboss.jca.deployers.common.AbstractDsDeployerinstance - the instanceprotected javax.resource.spi.ManagedConnectionFactory createMcf(org.jboss.jca.common.api.metadata.ds.XaDataSource ds,
String uniqueId,
ClassLoader cl)
throws org.jboss.jca.core.spi.mdr.NotFoundException,
Exception,
com.github.fungal.spi.deployers.DeployException
org.jboss.jca.deployers.common.AbstractDsDeployercreateMcf in class org.jboss.jca.deployers.common.AbstractDsDeployerds - the xsdsuniqueId - the uniqueIdcl - the classloaderorg.jboss.jca.core.spi.mdr.NotFoundException - in case it's not found in clException - in case of other errroorg.jboss.jca.deployers.common.DeployException - in case of deoloy errorcom.github.fungal.spi.deployers.DeployExceptionprotected javax.resource.spi.ManagedConnectionFactory createMcf(org.jboss.jca.common.api.metadata.ds.DataSource ds,
String uniqueId,
ClassLoader cl)
throws org.jboss.jca.core.spi.mdr.NotFoundException,
Exception,
com.github.fungal.spi.deployers.DeployException
org.jboss.jca.deployers.common.AbstractDsDeployercreateMcf in class org.jboss.jca.deployers.common.AbstractDsDeployerds - the xsdsuniqueId - the uniqueIdcl - the classloaderorg.jboss.jca.core.spi.mdr.NotFoundException - in case it's not found in clException - in case of other errroorg.jboss.jca.deployers.common.DeployException - in case of deoloy errorcom.github.fungal.spi.deployers.DeployExceptionpublic void setMetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository value)
value - The valuepublic org.jboss.jca.core.spi.mdr.MetadataRepository getMetadataRepository()
public void setResourceAdapterRepository(org.jboss.jca.core.spi.rar.ResourceAdapterRepository value)
value - The valuepublic org.jboss.jca.core.spi.rar.ResourceAdapterRepository getResourceAdapterRepository()
Copyright © 2014 IronJacamar (http://www.ironjacamar.org)