public class DsXmlDeployer extends AbstractDsDeployer implements com.github.fungal.spi.deployers.Deployer
transactionIntegration, xaResourceRecoveryRegistry| Constructor and Description |
|---|
DsXmlDeployer()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(URL url) |
protected String[] |
bindConnectionFactory(String deployment,
String jndi,
Object cf)
Bind connection factory into JNDI
|
protected void |
cleanTemporaryFiles(URL url)
Clean all potential temporary files
|
protected jakarta.resource.spi.ManagedConnectionFactory |
createMcf(DataSource ds,
String uniqueId,
ClassLoader cl) |
protected jakarta.resource.spi.ManagedConnectionFactory |
createMcf(XaDataSource ds,
String uniqueId,
ClassLoader cl) |
protected jakarta.resource.spi.ResourceAdapter |
createRa(String uniqueId,
ClassLoader cl) |
com.github.fungal.spi.deployers.Deployment |
deploy(URL url,
com.github.fungal.spi.deployers.Context context,
ClassLoader parent) |
protected ClassLoader |
getDeploymentClassLoader(String uniqueId) |
protected String |
getDriver(String driverName,
String moduleId)
Get the driver
|
protected File |
getFileFromUrl(URL url)
Get File object of URL who locate xml resource
|
protected String |
getIronJacamarHome()
Get IronJacamar Home directory
|
String |
getJDBCLocal()
Get the name for the JDBC Local resource adapter
|
String |
getJDBCXA()
Get the name for the JDBC Xa resource adapter
|
protected DeployersLogger |
getLogger() |
MetadataRepository |
getMetadataRepository()
Get the metadata repository
|
int |
getOrder() |
ResourceAdapterRepository |
getResourceAdapterRepository()
Get the resource adapter repository
|
protected SubjectFactory |
getSubjectFactory(Credential credential,
String jndiName) |
Object |
initAndInject(String className,
List<? extends ConfigProperty> configs,
ClassLoader cl)
Initialize and inject configuration properties
|
protected String |
registerResourceAdapterToResourceAdapterRepository(jakarta.resource.spi.ResourceAdapter instance) |
void |
setDriverRegistry(DriverRegistry value)
Set the driver registry
|
void |
setJDBCLocal(String value)
Set the name for the JDBC Local resource adapter
|
void |
setJDBCXA(String value)
Set the name for the JDBC XA resource adapter
|
void |
setMetadataRepository(MetadataRepository value)
Set the metadata repository
|
void |
setResourceAdapterRepository(ResourceAdapterRepository value)
Set the resource adapter repository
|
void |
start()
Start
|
associateResourceAdapter, buildJndiName, createObjectsAndInjectValue, createSubject, getCachedConnectionManager, getManagementRepository, getTransactionIntegration, getXAResourceRecoveryRegistry, initAndInjectClassLoaderPlugin, needsBootstrapContext, numberOfDataSources, setCachedConnectionManager, setManagementRepository, setTransactionIntegration, setXAResourceRecoveryRegistry, startContext, verifyTypespublic void setJDBCLocal(String value)
value - The valuepublic String getJDBCLocal()
public void setJDBCXA(String value)
value - The valuepublic String getJDBCXA()
protected DeployersLogger getLogger()
getLogger in class AbstractDsDeployerpublic void setDriverRegistry(DriverRegistry value)
value - The valuepublic boolean accepts(URL url)
accepts in interface com.github.fungal.spi.deployers.Deployerpublic int getOrder()
getOrder in interface com.github.fungal.spi.deployers.Deployerpublic com.github.fungal.spi.deployers.Deployment deploy(URL url, com.github.fungal.spi.deployers.Context context, ClassLoader parent) throws com.github.fungal.spi.deployers.DeployException
deploy in interface com.github.fungal.spi.deployers.Deployercom.github.fungal.spi.deployers.DeployExceptionprotected File getFileFromUrl(URL url) throws URISyntaxException, IOException
url - url of the archiveURISyntaxException - Thrown if the resource adapter cant be foundIOException - Thrown if the resource adapter cant be accessibleprotected String getIronJacamarHome()
protected void cleanTemporaryFiles(URL url) throws com.github.fungal.spi.deployers.DeployException
url - url of the archivecom.github.fungal.spi.deployers.DeployException - Thrown if the resource cant be cleanedpublic Object initAndInject(String className, List<? extends ConfigProperty> configs, 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 String[] bindConnectionFactory(String deployment, String jndi, Object cf) throws Throwable
bindConnectionFactory in class AbstractDsDeployerdeployment - The deployment namejndi - The JNDI namecf - The connection factoryThrowable - thrown if an error occursprotected String getDriver(String driverName, String moduleId)
getDriver in class AbstractDsDeployerdriverName - The name of the drivermoduleId - The id of the modulenull if not foundpublic void start()
protected ClassLoader getDeploymentClassLoader(String uniqueId)
getDeploymentClassLoader in class AbstractDsDeployerprotected SubjectFactory getSubjectFactory(Credential credential, String jndiName) throws DeployException
getSubjectFactory in class AbstractDsDeployerDeployExceptionprotected jakarta.resource.spi.ResourceAdapter createRa(String uniqueId, ClassLoader cl) throws NotFoundException, Exception, com.github.fungal.spi.deployers.DeployException
createRa in class AbstractDsDeployerNotFoundExceptionExceptioncom.github.fungal.spi.deployers.DeployExceptionprotected String registerResourceAdapterToResourceAdapterRepository(jakarta.resource.spi.ResourceAdapter instance)
registerResourceAdapterToResourceAdapterRepository in class AbstractDsDeployerprotected jakarta.resource.spi.ManagedConnectionFactory createMcf(XaDataSource ds, String uniqueId, ClassLoader cl) throws NotFoundException, Exception, com.github.fungal.spi.deployers.DeployException
createMcf in class AbstractDsDeployerNotFoundExceptionExceptioncom.github.fungal.spi.deployers.DeployExceptionprotected jakarta.resource.spi.ManagedConnectionFactory createMcf(DataSource ds, String uniqueId, ClassLoader cl) throws NotFoundException, Exception, com.github.fungal.spi.deployers.DeployException
createMcf in class AbstractDsDeployerNotFoundExceptionExceptioncom.github.fungal.spi.deployers.DeployExceptionpublic void setMetadataRepository(MetadataRepository value)
value - The valuepublic MetadataRepository getMetadataRepository()
public void setResourceAdapterRepository(ResourceAdapterRepository value)
value - The valuepublic ResourceAdapterRepository getResourceAdapterRepository()
Copyright © 2021 JBoss by Red Hat. All rights reserved.