TorqueBox 3.1.2

org.torquebox.core.datasource.processors
Class DatabaseProcessor

java.lang.Object
  extended by org.torquebox.core.datasource.processors.DatabaseProcessor
All Implemented Interfaces:
org.jboss.as.server.deployment.DeploymentUnitProcessor

public class DatabaseProcessor
extends Object
implements org.jboss.as.server.deployment.DeploymentUnitProcessor


Constructor Summary
DatabaseProcessor()
           
 
Method Summary
protected  void addAdapter(Adapter adapter)
           
protected  org.jboss.as.connector.subsystems.datasources.ModifiableXaDataSource createConfig(org.jboss.as.server.deployment.DeploymentUnit unit, DatabaseMetaData dbMeta, Adapter adapter)
           
protected  org.jboss.jca.common.api.metadata.ds.v11.DsXaPool createPool(DatabaseMetaData dsMeta)
           
 void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
           
protected  Adapter getAdapter(String adapterName)
           
protected  boolean isCurrentEnvironmentDatabase(String currentEnv, String configName)
           
protected  boolean isXAExplicitlyDisabled(DatabaseMetaData metaData)
           
protected  boolean isXAExplicitlyEnabled(DatabaseMetaData metaData)
           
protected  org.jboss.msc.service.ServiceName processDataSource(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext, DatabaseMetaData dbMeta, Adapter adapter)
           
protected  void processDriver(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext, Adapter adapter, String applicationDir)
           
 void undeploy(org.jboss.as.server.deployment.DeploymentUnit context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseProcessor

public DatabaseProcessor()
Method Detail

addAdapter

protected void addAdapter(Adapter adapter)

getAdapter

protected Adapter getAdapter(String adapterName)

isCurrentEnvironmentDatabase

protected boolean isCurrentEnvironmentDatabase(String currentEnv,
                                               String configName)

isXAExplicitlyEnabled

protected boolean isXAExplicitlyEnabled(DatabaseMetaData metaData)

isXAExplicitlyDisabled

protected boolean isXAExplicitlyDisabled(DatabaseMetaData metaData)

deploy

public void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
            throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
Specified by:
deploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor
Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException

processDriver

protected void processDriver(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext,
                             Adapter adapter,
                             String applicationDir)
                      throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException

processDataSource

protected org.jboss.msc.service.ServiceName processDataSource(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext,
                                                              DatabaseMetaData dbMeta,
                                                              Adapter adapter)
                                                       throws org.jboss.jca.common.api.validator.ValidateException,
                                                              org.jboss.as.server.deployment.DeploymentUnitProcessingException
Throws:
org.jboss.jca.common.api.validator.ValidateException
org.jboss.as.server.deployment.DeploymentUnitProcessingException

createConfig

protected org.jboss.as.connector.subsystems.datasources.ModifiableXaDataSource createConfig(org.jboss.as.server.deployment.DeploymentUnit unit,
                                                                                            DatabaseMetaData dbMeta,
                                                                                            Adapter adapter)
                                                                                     throws org.jboss.jca.common.api.validator.ValidateException
Throws:
org.jboss.jca.common.api.validator.ValidateException

createPool

protected org.jboss.jca.common.api.metadata.ds.v11.DsXaPool createPool(DatabaseMetaData dsMeta)
                                                                throws org.jboss.jca.common.api.validator.ValidateException
Throws:
org.jboss.jca.common.api.validator.ValidateException

undeploy

public void undeploy(org.jboss.as.server.deployment.DeploymentUnit context)
Specified by:
undeploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.