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)
note that if there is any datasource configured, this will imply an addition of
the transaction manager.
|
protected String |
createContextToken(WAR deployable) |
protected org.apache.tools.ant.types.FilterChain |
createTomcatFilterChain() |
protected void |
doConfigure(LocalContainer container) |
ConfigurationCapability |
getCapability() |
protected Set |
getConfFiles()
files that should be copied to the conf directory for the server to operate.
|
protected Map |
getNamespaces()
Implementations should avoid passing null, and instead pass
Collections.EMPTY_MAP , if the document is DTD bound. |
String |
getOrCreateDataSourceConfigurationFile(DataSource ds,
LocalContainer container) |
protected String |
getSecurityToken() |
protected String |
getXpathForDataSourcesParent()
Resource entries must be stored in the xml configuration file.
|
protected void |
setupConfFiles(LocalContainer container,
org.apache.tools.ant.types.FilterChain filterChain)
copy files to the conf directory, replacing tokens based on the filterchain parameter.
|
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, writeConfigurationToXpath
configureFiles, createFilterChain, getDestDirectoryLocation, getDestFileLocation, getFileProperties, getFilterChain, getType, setConfigFileProperty, setFileProperty, setupConfigurationDir, verify
addDataSource, addDataSourcesFromProperties, addDeployable, addResource, addResourcesFromProperties, collectUnsupportedDataSourcesAndThrowException, collectUnsupportedResourcesAndThrowException, getAntUtils, getDataSources, getDeployables, getFileHandler, getHome, getResources, getResourceUtils, parsePropertiesForPendingConfiguration, setFileHandler
getProperties, getPropertyValue, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
configure, configureResources
addDeployable, addResource, getDeployables, getFileHandler, getHome, getResources, setFileHandler
getProperties, getPropertyValue, setProperty
public AbstractCatalinaStandaloneLocalConfiguration(String dir)
AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder#AbstractStandaloneLocalConfigurationWithDataSourceSupport(String)
protected void doConfigure(LocalContainer container) throws Exception
doConfigure
in class AbstractLocalConfiguration
Exception
AbstractLocalConfiguration.configure(LocalContainer)
public void configureDataSources(LocalContainer container)
configureDataSources
in interface DataSourceSupport
configureDataSources
in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
setupTransactionManager()
protected abstract void setupTransactionManager()
protected Set getConfFiles()
protected abstract void setupManager(LocalContainer container)
container
- the container to configureprotected org.apache.tools.ant.types.FilterChain createTomcatFilterChain()
protected String createContextToken(WAR deployable)
deployable
- the WAR to deployserver.xml
configuration filepublic String toString()
toString
in class Object
Object.toString()
public ConfigurationCapability getCapability()
getCapability
in interface Configuration
Configuration.getCapability()
protected String getSecurityToken()
protected void setupConfFiles(LocalContainer container, org.apache.tools.ant.types.FilterChain filterChain) throws IOException
container
- - type of container configuration we are using.filterChain
- - holds tokenization detailsIOException
- - if we cannot copy a file to the 'conf' directoryprotected String getXpathForDataSourcesParent()
getXpathForDataSourcesParent
in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
public String getOrCreateDataSourceConfigurationFile(DataSource ds, LocalContainer container)
protected Map getNamespaces()
Collections.EMPTY_MAP
, if the document is DTD bound.getNamespaces
in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
Copyright © 2004-2013 Codehaus. All Rights Reserved.