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
|
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() |
protected org.jboss.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.ra.ConfigProperty> configs,
java.lang.ClassLoader cl)
Initialize and inject configuration properties
|
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 |
start()
Start
|
buildJndiName, createObjectsAndInjectValue, createSubject, getCachedConnectionManager, getManagementRepository, getTransactionIntegration, getXAResourceRecoveryRegistry, initAndInjectClassLoaderPlugin, setCachedConnectionManager, setManagementRepository, setTransactionIntegration, setXAResourceRecoveryRegistry
public 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 AbstractDsDeployer
public 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
DeployException
public java.lang.Object initAndInject(java.lang.String className, java.util.List<? extends org.jboss.jca.common.api.metadata.ra.ConfigProperty> configs, java.lang.ClassLoader cl) throws DeployException
initAndInject
in class AbstractDsDeployer
className
- 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 AbstractDsDeployer
deployment
- 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 AbstractDsDeployer
driverName
- The name of the drivermoduleId
- The id of the modulenull
if not foundpublic void start()
protected java.lang.ClassLoader getDeploymentClassLoader(java.lang.String uniqueId)
AbstractDsDeployer
getDeploymentClassLoader
in class AbstractDsDeployer
uniqueId
- Theprotected org.jboss.security.SubjectFactory getSubjectFactory(java.lang.String securityDomain) throws DeployException
AbstractDsDeployer
getSubjectFactory
in class AbstractDsDeployer
securityDomain
- The security domainnull
if security domain isn't definedDeployException
- Thrown if the security domain can't be resolvedprotected 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
AbstractDsDeployer
createMcf
in class AbstractDsDeployer
ds
- 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 errorDeployException
protected 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
AbstractDsDeployer
createMcf
in class AbstractDsDeployer
ds
- 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 errorDeployException
public void setMetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository value)
value
- The valuepublic org.jboss.jca.core.spi.mdr.MetadataRepository getMetadataRepository()
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)