public abstract class AbstractCatalinaStandaloneLocalConfiguration extends AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder implements ResourceSupport
ContainerConfiguration
implementation.RESOURCE_PATH| Constructor and Description |
|---|
AbstractCatalinaStandaloneLocalConfiguration(String dir) |
| Modifier and Type | Method and Description |
|---|---|
void |
configureDataSources(LocalContainer container)
Configure the DataSources defined for this configuration.
|
protected String |
createContextToken(WAR deployable) |
protected String |
createTomcatWebappsToken()
Create the Tomcat
<webapp> token. |
protected void |
doConfigure(LocalContainer container)
Implementation of
LocalConfiguration.configure(LocalContainer) that all local
configuration using this class must implement. |
protected String |
escapePath(String path)
Escapes a Windows path: backslashes become slashes, drive paths get prefixed with a slash.
|
protected Map<String,String> |
getNamespaces()
Implementations should avoid passing null, and instead pass
Collections.emptyMap(), if the document is DTD bound. |
String |
getOrCreateDataSourceConfigurationFile(DataSource ds,
LocalContainer container)
note that this file could hold other configuration besides datasources.
|
protected String |
getSecurityToken() |
protected String |
getTomcatLoggingLevel(String cargoLoggingLevel)
Translate Cargo logging levels into Tomcat logging levels.
|
protected String |
getXpathForDataSourcesParent()
Resource entries must be stored in the xml configuration file.
|
protected abstract void |
setupConfFiles(String confDir)
setup the files in the configuration's
conf directory. |
protected abstract void |
setupManager(LocalContainer container)
Setup the manager webapp.
|
protected abstract void |
setupTransactionManager()
Adds an implementation of UserTransaction to the configuration.
|
String |
toString() |
configure, configure, configure, configureResources, createConfigurationBuilder, getOrCreateResourceConfigurationFile, getXpathForResourcesParent, writeConfigurationToXpathaddXmlReplacement, addXmlReplacement, configureFiles, createFilterChain, getDestDirectoryLocation, getDestFileLocation, getFileProperties, getFilterChain, getType, performXmlReplacements, removeXmlReplacement, removeXmlReplacement, replaceInFile, setConfigFileProperty, setFileProperty, setupConfigurationDir, verifyaddDataSource, addDataSourcesFromProperties, addDeployable, addResource, addResourcesFromProperties, applyPortOffset, applyPortOffset, collectUnsupportedDataSourcesAndThrowException, collectUnsupportedResourcesAndThrowException, getAntUtils, getDataSources, getDeployables, getFileHandler, getHome, getResources, getResourceUtils, parsePropertiesForPendingConfiguration, revertPortOffset, revertPortOffset, setFileHandler, setLoggergetProperties, getPropertyValue, setPropertygetLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfigure, configureResourcesaddDataSource, addDeployable, addResource, applyPortOffset, getDataSources, getDeployables, getFileHandler, getHome, getResources, revertPortOffset, setFileHandlergetCapability, getProperties, getPropertyValue, setPropertypublic AbstractCatalinaStandaloneLocalConfiguration(String dir)
AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder#AbstractStandaloneLocalConfigurationWithDataSourceSupport(String)protected void doConfigure(LocalContainer container) throws Exception
LocalConfiguration.configure(LocalContainer) that all local
configuration using this class must implement. This provides the ability to perform generic
actions before and after the container-specific implementation. Another way would be to use
AOP...doConfigure in class AbstractLocalConfigurationcontainer - the container to configureException - if any error is raised during the configurationAbstractLocalConfiguration.configure(LocalContainer)protected String escapePath(String path)
path - Path to escape.public void configureDataSources(LocalContainer container)
configureDataSources in interface DataSourceSupportconfigureDataSources in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuildercontainer - the container whose configuration you wish to affect.setupTransactionManager()protected abstract void setupTransactionManager()
protected abstract void setupManager(LocalContainer container)
container - the container to configureprotected String getTomcatLoggingLevel(String cargoLoggingLevel)
cargoLoggingLevel - Cargo logging levelprotected String createTomcatWebappsToken()
<webapp> token.<webapp> token.protected String createContextToken(WAR deployable)
deployable - the WAR to deployserver.xml
configuration filepublic String toString()
toString in class ObjectObject.toString()protected String getSecurityToken()
protected abstract void setupConfFiles(String confDir)
conf directory.confDir - - the conf directory.protected String getXpathForDataSourcesParent()
getXpathForDataSourcesParent in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilderpublic String getOrCreateDataSourceConfigurationFile(DataSource ds, LocalContainer container)
getOrCreateDataSourceConfigurationFile in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilderds - the DataSource configuration you wish to install on the container.container - the container whose configuration you wish to affect.protected Map<String,String> getNamespaces()
Collections.emptyMap(), if the document is DTD bound.getNamespaces in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilderCopyright © 2004-2013 Codehaus. All Rights Reserved.