public abstract class AbstractOrionStandaloneLocalConfiguration extends AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
XML_PARENT_OF_RESOURCES
Where elements for resources will be inserted.
|
RESOURCE_PATH| Constructor and Description |
|---|
AbstractOrionStandaloneLocalConfiguration(String dir)
construct the instance and set the rmi port.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
copyCustomResources(String confDir,
org.apache.tools.ant.types.FilterChain filterChain)
Copy resources that are different between the different standalone implementations.
|
protected ConfigurationBuilder |
createConfigurationBuilder(LocalContainer container) |
protected void |
doConfigure(LocalContainer container)
Implementation of
LocalConfiguration.configure(LocalContainer) that all local
configuration using this class must implement. |
ConfigurationCapability |
getCapability() |
protected Map<String,String> |
getNamespaces()
Implementations should avoid passing null, and instead pass
Collections.EMPTY_MAP, if the document is DTD bound. |
String |
getOrCreateDataSourceConfigurationFile(DataSource ds,
LocalContainer container)
note that this file could hold other configuration besides datasources.
|
protected String |
getOrCreateResourceConfigurationFile(Resource resource,
LocalContainer container)
note that this file could hold other configuration besides Resources.
|
protected String |
getRoleToken() |
protected String |
getUserToken() |
protected String |
getXpathForDataSourcesParent()
This expression evaluates to: "//data-sources" DataSource entries must be stored in the xml configuration file.
|
protected String |
getXpathForResourcesParent()
Resource entries must be stored in the xml configuration file.
|
configure, configure, configure, configureDataSources, configureResources, writeConfigurationToXpathaddXmlReplacement, addXmlReplacement, configureFiles, getType, performXmlReplacements, removeXmlReplacement, removeXmlReplacement, replaceInFile, setupConfigurationDir, verifyaddDataSource, addDataSourcesFromProperties, addDeployable, addResource, addResourcesFromProperties, applyPortOffset, applyPortOffset, collectUnsupportedDataSourcesAndThrowException, collectUnsupportedResourcesAndThrowException, createFilterChain, getAntUtils, getDataSources, getDeployables, getDestDirectoryLocation, getDestFileLocation, getFileHandler, getFileProperties, getFilterChain, getHome, getResources, getResourceUtils, parsePropertiesForPendingConfiguration, revertPortOffset, revertPortOffset, setConfigFileProperty, setFileHandler, setFileProperty, setLoggergetProperties, getPropertyValue, setPropertygetLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDataSource, addDeployable, addResource, applyPortOffset, getDataSources, getDeployables, getFileHandler, getFileProperties, getHome, getResources, revertPortOffset, setConfigFileProperty, setFileHandler, setFilePropertygetProperties, getPropertyValue, setPropertypublic static final String XML_PARENT_OF_RESOURCES
public AbstractOrionStandaloneLocalConfiguration(String dir)
dir - - home of this configurationprotected String getOrCreateResourceConfigurationFile(Resource resource, LocalContainer container)
getOrCreateResourceConfigurationFile in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilderresource - the Resource configuration you wish to install on the container.container - the container whose configuration you wish to affect.protected String getXpathForResourcesParent()
getXpathForResourcesParent in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilderpublic ConfigurationCapability getCapability()
ConfigurationCapability of the configuration in term of properties it
supports, etcprotected ConfigurationBuilder createConfigurationBuilder(LocalContainer container)
createConfigurationBuilder in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuildercontainer - Container the dataSource will be configured on.OrionConfigurationBuilderpublic String getOrCreateDataSourceConfigurationFile(DataSource ds, LocalContainer container)
data-sources.xml file.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.EMPTY_MAP, if the document is DTD bound. Orion application servers currently use DTD, and therefore return and empty
map;getNamespaces in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilderprotected String getXpathForDataSourcesParent()
getXpathForDataSourcesParent in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilderprotected 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 configurationprotected abstract void copyCustomResources(String confDir, org.apache.tools.ant.types.FilterChain filterChain) throws Exception
confDir - the configuration dir where to copy the resources tofilterChain - the Ant filter chain to apply when copying the resourcesException - in case of an error during the copyprotected String getUserToken()
protected String getRoleToken()
Copyright © 2004-2013 Codehaus. All Rights Reserved.