|
|||||||||
| 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.logging.Logger |
log
log |
protected org.jboss.jca.core.spi.mdr.MetadataRepository |
mdr
Metadata repository |
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(org.jboss.logging.Logger log)
Create a new AbstractDsDeployer. |
|
| Method Summary | |
|---|---|
protected abstract String[] |
bindConnectionFactory(String deployment,
String jndi,
Object cf)
Bind connection factory into JNDI |
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 abstract ClassLoader |
getDeploymentClassLoader(String uniqueId)
Provide the classloader of the deployment identified by the unique id |
org.jboss.jca.core.api.management.ManagementRepository |
getManagementRepository()
Get the managementRepository. |
org.jboss.jca.core.spi.mdr.MetadataRepository |
getMetadataRepository()
Get the metadata repository |
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 |
setManagementRepository(org.jboss.jca.core.api.management.ManagementRepository managementRepository)
Set the managementRepository. |
void |
setMetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository value)
Set the metadata repository |
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.logging.Logger log
protected org.jboss.jca.core.spi.transaction.TransactionIntegration transactionIntegration
protected org.jboss.jca.core.spi.mdr.MetadataRepository mdr
protected org.jboss.jca.core.spi.transaction.recovery.XAResourceRecoveryRegistry xaResourceRecoveryRegistry
| Constructor Detail |
|---|
public AbstractDsDeployer(org.jboss.logging.Logger log)
log - The logger| 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 void setMetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository value)
value - The valuepublic org.jboss.jca.core.spi.mdr.MetadataRepository getMetadataRepository()
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.
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 - DeployExceptionprotected 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 resolvedpublic final org.jboss.jca.core.spi.transaction.recovery.XAResourceRecoveryRegistry getXAResourceRecoveryRegistry()
public final void setXAResourceRecoveryRegistry(org.jboss.jca.core.spi.transaction.recovery.XAResourceRecoveryRegistry xAResourceRecoveryRegistry)
xAResourceRecoveryRegistry - The xAResourceRecoveryRegistry to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||