|
||||||||||
| 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 java.lang.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(java.lang.String dir)
construct the instance and set the rmi port. |
|
| Method Summary | |
|---|---|
protected abstract void |
copyCustomResources(java.lang.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)
|
ConfigurationCapability |
getCapability()
|
protected java.util.Map |
getNamespaces()
Orion application servers currently use DTD, and therefore return and empty map; |
java.lang.String |
getOrCreateDataSourceConfigurationFile(DataSource ds,
LocalContainer container)
In this implementation, we will return the data-sources.xml file. |
protected java.lang.String |
getOrCreateResourceConfigurationFile(Resource resource,
LocalContainer container)
This implementation throws an UnsupportedOperationException as Resource configuration is not supported in Orion. |
protected java.lang.String |
getRoleToken()
|
protected java.lang.String |
getUserToken()
|
protected java.lang.String |
getXpathForDataSourcesParent()
This expression evaluates to: "//data-sources" |
protected java.lang.String |
getXpathForResourcesParent()
This implementation throws an UnsupportedOperationException as Resource configuration is not supported in Orion. |
| 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 java.lang.String XML_PARENT_OF_RESOURCES
| Constructor Detail |
|---|
public AbstractOrionStandaloneLocalConfiguration(java.lang.String dir)
dir - - home of this configuration| Method Detail |
|---|
protected java.lang.String getOrCreateResourceConfigurationFile(Resource resource,
LocalContainer container)
getOrCreateResourceConfigurationFile in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilderprotected java.lang.String getXpathForResourcesParent()
getXpathForResourcesParent in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilderpublic ConfigurationCapability getCapability()
protected ConfigurationBuilder createConfigurationBuilder(LocalContainer container)
createConfigurationBuilder in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilderOrionConfigurationBuilder
public java.lang.String getOrCreateDataSourceConfigurationFile(DataSource ds,
LocalContainer container)
data-sources.xml file.
getOrCreateDataSourceConfigurationFile in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilderprotected java.util.Map getNamespaces()
getNamespaces in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilderprotected java.lang.String getXpathForDataSourcesParent()
getXpathForDataSourcesParent in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
protected void doConfigure(LocalContainer container)
throws java.lang.Exception
doConfigure in class AbstractLocalConfigurationjava.lang.Exception
protected abstract void copyCustomResources(java.lang.String confDir,
org.apache.tools.ant.types.FilterChain filterChain)
throws java.lang.Exception
confDir - the configuration dir where to copy the resources tofilterChain - the Ant filter chain to apply when copying the resources
java.lang.Exception - in case of an error during the copyprotected java.lang.String getUserToken()
protected java.lang.String getRoleToken()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||