public final class DsXmlDeployer extends AbstractDsDeployer
transactionIntegration, xaResourceRecoveryRegistry| Constructor and Description |
|---|
DsXmlDeployer()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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,
java.lang.ClassLoader parent)
Deploy
|
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
|
Kernel |
getKernel()
Get the kernel
|
protected DeployersLogger |
getLogger()
Get the logger
|
org.jboss.jca.core.spi.mdr.MetadataRepository |
getMetadataRepository()
Get the metadata repository
|
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 |
setKernel(Kernel value)
Set the kernel
|
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, setXAResourceRecoveryRegistrypublic 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()
public void setKernel(Kernel value)
value - The valuepublic Kernel getKernel()
protected DeployersLogger getLogger()
getLogger in class AbstractDsDeployerpublic void setDriverRegistry(DriverRegistry value)
value - The valuepublic Deployment deploy(java.net.URL url,
java.lang.ClassLoader parent)
throws DeployException
url - The urlparent - The parent classloaderDeployException - Thrown if an error occurs during deploymentpublic 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 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.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.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()
Copyright ? 2008-2009 Red Hat Middleware LLC (http://www.jboss.com/)