|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.container.spi.configuration.AbstractConfiguration
org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration
org.codehaus.cargo.container.spi.configuration.builder.AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
org.codehaus.cargo.container.orion.internal.AbstractOrionStandaloneLocalConfiguration
public abstract class AbstractOrionStandaloneLocalConfiguration
Standalone configuration methods common to both Orion and Oc4j containers.
| Field Summary | |
|---|---|
static String |
XML_PARENT_OF_RESOURCES
Where elements for resources will be inserted. |
| Fields inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration |
|---|
RESOURCE_PATH |
| Constructor Summary | |
|---|---|
AbstractOrionStandaloneLocalConfiguration(String dir)
construct the instance and set the rmi port. |
|
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from class org.codehaus.cargo.container.spi.configuration.builder.AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder |
|---|
configure, configure, configure, configureDataSources, configureResources, writeConfigurationToXpath |
| Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration |
|---|
configureFiles, createFilterChain, getDestDirectoryLocation, getDestFileLocation, getFileProperties, getFilterChain, getType, setConfigFileProperty, setFileProperty, setupConfigurationDir, verify |
| Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration |
|---|
addDataSource, addDataSourcesFromProperties, addDeployable, addResource, addResourcesFromProperties, collectUnsupportedDataSourcesAndThrowException, collectUnsupportedResourcesAndThrowException, getAntUtils, getDataSources, getDeployables, getFileHandler, getHome, getResources, getResourceUtils, parsePropertiesForPendingConfiguration, setFileHandler |
| Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractConfiguration |
|---|
getProperties, getPropertyValue, setProperty |
| Methods inherited from class org.codehaus.cargo.util.log.LoggedObject |
|---|
getLogger, setLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.codehaus.cargo.container.configuration.LocalConfiguration |
|---|
addDeployable, addResource, getDeployables, getFileHandler, getHome, getResources, setFileHandler |
| Methods inherited from interface org.codehaus.cargo.container.configuration.Configuration |
|---|
getProperties, getPropertyValue, setProperty |
| Methods inherited from interface org.codehaus.cargo.util.log.Loggable |
|---|
getLogger, setLogger |
| Field Detail |
|---|
public static final String XML_PARENT_OF_RESOURCES
| Constructor Detail |
|---|
public AbstractOrionStandaloneLocalConfiguration(String dir)
dir - - home of this configuration| Method Detail |
|---|
protected 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.
OrionConfigurationBuilder
public 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 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 AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
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 configure
Exception - if any error is raised during the configuration
protected 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 resources
Exception - in case of an error during the copyprotected String getUserToken()
protected String getRoleToken()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||