|
|||||||||
| 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 TransactionManager |
transactionManager
The transaction manager |
| 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.spi.mdr.MetadataRepository |
getMetadataRepository()
Get the metadata repository |
TransactionManager |
getTransactionManager()
Get the transaction manager |
protected abstract Object |
initAndInject(String className,
List<? extends org.jboss.jca.common.api.metadata.ra.ConfigProperty> configs,
ClassLoader cl)
Initialize and inject configuration properties |
void |
setMetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository value)
Set the metadata repository |
void |
setTransactionManager(TransactionManager value)
Set the transaction manager |
| 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 TransactionManager transactionManager
protected org.jboss.jca.core.spi.mdr.MetadataRepository mdr
| Constructor Detail |
|---|
public AbstractDsDeployer(org.jboss.logging.Logger log)
log - The logger| Method Detail |
|---|
public void setTransactionManager(TransactionManager value)
value - The valuepublic TransactionManager getTransactionManager()
public void setMetadataRepository(org.jboss.jca.core.spi.mdr.MetadataRepository value)
value - The valuepublic org.jboss.jca.core.spi.mdr.MetadataRepository getMetadataRepository()
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 - deploymentNameparentClassLoader - clraDeployments - resource adapters deploymentsdataSources - 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||