
public final class DsXmlDeployer extends AbstractDsDeployer
transactionIntegration, xaResourceRecoveryRegistry| Constructor and Description |
|---|
DsXmlDeployer()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(java.net.URL url) |
protected java.lang.String[] |
bindConnectionFactory(java.lang.String deployment,
java.lang.String jndi,
java.lang.Object cf)
Bind connection factory into JNDI
|
protected javax.resource.spi.ManagedConnectionFactory |
createMcf(org.jboss.jca.common.api.metadata.ds.DataSource ds,
java.lang.String uniqueId,
java.lang.ClassLoader cl)
Create Mcf for ds
|
protected javax.resource.spi.ManagedConnectionFactory |
createMcf(org.jboss.jca.common.api.metadata.ds.XaDataSource ds,
java.lang.String uniqueId,
java.lang.ClassLoader cl)
Create Mcf for xads
|
protected javax.resource.spi.ResourceAdapter |
createRa(java.lang.String uniqueId,
java.lang.ClassLoader cl)
Create Ra
|
Deployment |
deploy(java.net.URL url,
Context context,
java.lang.ClassLoader parent) |
protected java.lang.ClassLoader |
getDeploymentClassLoader(java.lang.String uniqueId)
Provide the classloader of the deployment identified by the unique id
|
protected java.lang.String |
getDriver(java.lang.String driverName,
java.lang.String moduleId)
Get the driver
|
java.lang.String |
getJDBCLocal()
Get the name for the JDBC Local resource adapter
|
java.lang.String |
getJDBCXA()
Get the name for the JDBC Xa resource adapter
|
protected 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(java.lang.String securityDomain)
Get a subject factory
|
java.lang.Object |
initAndInject(java.lang.String className,
java.util.List<? extends org.jboss.jca.common.api.metadata.spec.ConfigProperty> configs,
java.lang.ClassLoader cl)
Initialize and inject configuration properties
|
protected java.lang.String |
registerResourceAdapterToResourceAdapterRepository(javax.resource.spi.ResourceAdapter instance)
Register the ResourceAdapter to the ResourceAdapterRepository.
|
void |
setDriverRegistry(DriverRegistry value)
Set the driver registry
|
void |
setJDBCLocal(java.lang.String value)
Set the name for the JDBC Local resource adapter
|
void |
setJDBCXA(java.lang.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, needsBootstrapContext, numberOfDataSources, setCachedConnectionManager, setManagementRepository, setTransactionIntegration, setXAResourceRecoveryRegistry, startContext, verifyTypespublic void setJDBCLocal(java.lang.String value)
value - The valuepublic java.lang.String getJDBCLocal()
public void setJDBCXA(java.lang.String value)
value - The valuepublic java.lang.String getJDBCXA()
protected DeployersLogger getLogger()
getLogger in class AbstractDsDeployerpublic void setDriverRegistry(DriverRegistry value)
value - The valuepublic boolean accepts(java.net.URL url)
public int getOrder()
public Deployment deploy(java.net.URL url,
Context context,
java.lang.ClassLoader parent)
throws DeployException
DeployExceptionpublic java.lang.Object initAndInject(java.lang.String className,
java.util.List<? extends org.jboss.jca.common.api.metadata.spec.ConfigProperty> configs,
java.lang.ClassLoader cl)
throws DeployException
initAndInject in class AbstractDsDeployerclassName - The fully qualified class nameconfigs - The configuration propertiescl - The class loaderDeployException - Thrown if the object cant be initializedprotected java.lang.String[] bindConnectionFactory(java.lang.String deployment,
java.lang.String jndi,
java.lang.Object cf)
throws java.lang.Throwable
bindConnectionFactory in class AbstractDsDeployerdeployment - The deployment namejndi - The JNDI namecf - The connection factoryjava.lang.Throwable - thrown if an error occursprotected java.lang.String getDriver(java.lang.String driverName,
java.lang.String moduleId)
getDriver in class AbstractDsDeployerdriverName - The name of the drivermoduleId - The id of the modulenull if not foundpublic void start()
protected java.lang.ClassLoader getDeploymentClassLoader(java.lang.String uniqueId)
AbstractDsDeployergetDeploymentClassLoader in class AbstractDsDeployeruniqueId - Theprotected org.jboss.jca.core.spi.security.SubjectFactory getSubjectFactory(java.lang.String securityDomain)
throws DeployException
AbstractDsDeployergetSubjectFactory in class AbstractDsDeployersecurityDomain - The security domainnull if security domain isn't definedDeployException - Thrown if the security domain can't be resolvedprotected javax.resource.spi.ResourceAdapter createRa(java.lang.String uniqueId,
java.lang.ClassLoader cl)
throws org.jboss.jca.core.spi.mdr.NotFoundException,
java.lang.Exception,
DeployException
AbstractDsDeployercreateRa in class AbstractDsDeployeruniqueId - the uniqueIdcl - the classloaderorg.jboss.jca.core.spi.mdr.NotFoundException - in case it's not found in cljava.lang.Exception - in case of other errorDeployException - in case of deploy errorDeployExceptionprotected java.lang.String registerResourceAdapterToResourceAdapterRepository(javax.resource.spi.ResourceAdapter instance)
AbstractDsDeployerregisterResourceAdapterToResourceAdapterRepository in class AbstractDsDeployerinstance - the instanceprotected javax.resource.spi.ManagedConnectionFactory createMcf(org.jboss.jca.common.api.metadata.ds.XaDataSource ds,
java.lang.String uniqueId,
java.lang.ClassLoader cl)
throws org.jboss.jca.core.spi.mdr.NotFoundException,
java.lang.Exception,
DeployException
AbstractDsDeployercreateMcf in class AbstractDsDeployerds - the xsdsuniqueId - the uniqueIdcl - the classloaderorg.jboss.jca.core.spi.mdr.NotFoundException - in case it's not found in cljava.lang.Exception - in case of other errroDeployException - in case of deoloy errorDeployExceptionprotected javax.resource.spi.ManagedConnectionFactory createMcf(org.jboss.jca.common.api.metadata.ds.DataSource ds,
java.lang.String uniqueId,
java.lang.ClassLoader cl)
throws org.jboss.jca.core.spi.mdr.NotFoundException,
java.lang.Exception,
DeployException
AbstractDsDeployercreateMcf in class AbstractDsDeployerds - the xsdsuniqueId - the uniqueIdcl - the classloaderorg.jboss.jca.core.spi.mdr.NotFoundException - in case it's not found in cljava.lang.Exception - in case of other errroDeployException - in case of deoloy errorDeployExceptionpublic 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)