|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.jca.deployers.common.AbstractDsDeployer
public abstract class AbstractDsDeployer

An abstract deployer implementation for datasources
| Field Summary | |
|---|---|
protected org.jboss.jca.deployers.DeployersLogger |
log
log |
protected org.jboss.jca.core.spi.transaction.TransactionIntegration |
transactionIntegration
The transaction integration |
protected org.jboss.jca.core.spi.transaction.recovery.XAResourceRecoveryRegistry |
xaResourceRecoveryRegistry
xaResourceRecoveryRegistry |
| Constructor Summary | |
|---|---|
AbstractDsDeployer()
Create a new AbstractDsDeployer. |
|
| Method Summary | |
|---|---|
protected abstract String[] |
bindConnectionFactory(String deployment,
String jndi,
Object cf)
Bind connection factory into JNDI |
protected String |
buildJndiName(String jndiName,
Boolean javaContext)
Build the jndi name |
protected abstract javax.resource.spi.ManagedConnectionFactory |
createMcf(org.jboss.jca.common.api.metadata.ds.DataSource ds,
String uniqueId,
ClassLoader cl)
Create Mcf for ds |
protected abstract javax.resource.spi.ManagedConnectionFactory |
createMcf(org.jboss.jca.common.api.metadata.ds.XaDataSource ds,
String uniqueId,
ClassLoader cl)
Create Mcf for xads |
protected CommonDeployment |
createObjectsAndInjectValue(URL url,
String deploymentName,
String uniqueJdbcLocalId,
String uniqueJdbcXAId,
org.jboss.jca.common.api.metadata.ds.DataSources dataSources,
ClassLoader parentClassLoader)
create objects and inject value for this depployment. |
protected Subject |
createSubject(org.jboss.security.SubjectFactory subjectFactory,
String securityDomain,
javax.resource.spi.ManagedConnectionFactory mcf)
Create a subject |
org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager |
getCachedConnectionManager()
Get the ccm |
protected abstract 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 |
protected abstract org.jboss.jca.deployers.DeployersLogger |
getLogger()
Get the logger |
org.jboss.jca.core.api.management.ManagementRepository |
getManagementRepository()
Get the managementRepository. |
protected abstract org.jboss.security.SubjectFactory |
getSubjectFactory(String securityDomain)
Get a subject factory |
org.jboss.jca.core.spi.transaction.TransactionIntegration |
getTransactionIntegration()
Get the transaction integration |
org.jboss.jca.core.spi.transaction.recovery.XAResourceRecoveryRegistry |
getXAResourceRecoveryRegistry()
Get the xAResourceRecoveryRegistry. |
protected abstract Object |
initAndInject(String className,
List<? extends org.jboss.jca.common.api.metadata.ra.ConfigProperty> configs,
ClassLoader cl)
Initialize and inject configuration properties |
protected void |
initAndInjectClassLoaderPlugin(javax.resource.spi.ManagedConnectionFactory mcf,
org.jboss.jca.common.api.metadata.ds.CommonDataSource dsMetadata)
Initialize and inject class loader plugin |
void |
setCachedConnectionManager(org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager value)
Set the ccm |
void |
setManagementRepository(org.jboss.jca.core.api.management.ManagementRepository managementRepository)
Set the managementRepository. |
void |
setTransactionIntegration(org.jboss.jca.core.spi.transaction.TransactionIntegration value)
Set the transaction integration |
void |
setXAResourceRecoveryRegistry(org.jboss.jca.core.spi.transaction.recovery.XAResourceRecoveryRegistry xAResourceRecoveryRegistry)
Set the xAResourceRecoveryRegistry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.jboss.jca.deployers.DeployersLogger log
protected org.jboss.jca.core.spi.transaction.TransactionIntegration transactionIntegration
protected org.jboss.jca.core.spi.transaction.recovery.XAResourceRecoveryRegistry xaResourceRecoveryRegistry
| Constructor Detail |
|---|
public AbstractDsDeployer()
| Method Detail |
|---|
public void setTransactionIntegration(org.jboss.jca.core.spi.transaction.TransactionIntegration value)
value - The valuepublic org.jboss.jca.core.spi.transaction.TransactionIntegration getTransactionIntegration()
public org.jboss.jca.core.api.management.ManagementRepository getManagementRepository()
public void setManagementRepository(org.jboss.jca.core.api.management.ManagementRepository managementRepository)
managementRepository - The managementRepository to set.public void setCachedConnectionManager(org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager value)
value - The valuepublic org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager getCachedConnectionManager()
public org.jboss.jca.core.spi.transaction.recovery.XAResourceRecoveryRegistry getXAResourceRecoveryRegistry()
public void setXAResourceRecoveryRegistry(org.jboss.jca.core.spi.transaction.recovery.XAResourceRecoveryRegistry xAResourceRecoveryRegistry)
xAResourceRecoveryRegistry - The xAResourceRecoveryRegistry to set.
protected CommonDeployment createObjectsAndInjectValue(URL url,
String deploymentName,
String uniqueJdbcLocalId,
String uniqueJdbcXAId,
org.jboss.jca.common.api.metadata.ds.DataSources dataSources,
ClassLoader parentClassLoader)
throws DeployException
CommonDeployment
to be used to exchange objects needed to real injection in the container
url - urldeploymentName - deploymentNameuniqueJdbcLocalId - uniqueJdbcLocalIduniqueJdbcXAId - uniqueJdbcXAIdparentClassLoader - cldataSources - datasources metadata defined in xml
DeployException - DeployException
protected String buildJndiName(String jndiName,
Boolean javaContext)
jndiName - The jndi namejavaContext - The java context
protected String getDriver(String driverName,
String moduleId)
driverName - The name of the drivermoduleId - The id of the module
null if not found
protected abstract 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,
DeployException
ds - the xsdsuniqueId - the uniqueIdcl - the classloader
org.jboss.jca.core.spi.mdr.NotFoundException - in case it's not found in cl
Exception - in case of other errro
DeployException - in case of deoloy error
protected abstract 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,
DeployException
ds - the xsdsuniqueId - the uniqueIdcl - the classloader
org.jboss.jca.core.spi.mdr.NotFoundException - in case it's not found in cl
Exception - in case of other errro
DeployException - in case of deoloy errorprotected abstract ClassLoader getDeploymentClassLoader(String uniqueId)
uniqueId - The
protected abstract String[] bindConnectionFactory(String deployment,
String jndi,
Object cf)
throws Throwable
deployment - The deployment namecf - The connection factoryjndi - passed jndi name
Throwable - Thrown if an error occurs
protected abstract Object initAndInject(String className,
List<? extends org.jboss.jca.common.api.metadata.ra.ConfigProperty> configs,
ClassLoader cl)
throws DeployException
className - The fully qualified class nameconfigs - The configuration propertiescl - The class loader
DeployException - Thrown if the object cant be initialized
protected void initAndInjectClassLoaderPlugin(javax.resource.spi.ManagedConnectionFactory mcf,
org.jboss.jca.common.api.metadata.ds.CommonDataSource dsMetadata)
throws DeployException
mcf - The managed connection factorydsMetadata - The dataSource metadata
DeployException - Thrown if the object cant be initialized or injected
protected abstract org.jboss.security.SubjectFactory getSubjectFactory(String securityDomain)
throws DeployException
securityDomain - The security domain
null if security domain isn't defined
DeployException - Thrown if the security domain can't be resolvedprotected abstract org.jboss.jca.deployers.DeployersLogger getLogger()
protected Subject createSubject(org.jboss.security.SubjectFactory subjectFactory,
String securityDomain,
javax.resource.spi.ManagedConnectionFactory mcf)
subjectFactory - The subject factorysecurityDomain - The security domainmcf - The managed connection factory
null in case of an error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||