Class AbstractGeronimoStandaloneLocalConfiguration
- java.lang.Object
-
- org.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.geronimo.internal.AbstractGeronimoStandaloneLocalConfiguration
-
- All Implemented Interfaces:
Configuration
,LocalConfiguration
,StandaloneLocalConfiguration
,ContainerConfiguration
,Loggable
- Direct Known Subclasses:
Geronimo1xStandaloneLocalConfiguration
,Geronimo2xStandaloneLocalConfiguration
,Geronimo3xStandaloneLocalConfiguration
public abstract class AbstractGeronimoStandaloneLocalConfiguration extends AbstractStandaloneLocalConfiguration
Abstract Geronimo standaloneConfiguration
implementation.
-
-
Field Summary
-
Fields inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
RESOURCE_PATH
-
-
Constructor Summary
Constructors Constructor Description AbstractGeronimoStandaloneLocalConfiguration(String dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,String>
createGeronimoReplacements(LocalContainer container)
Create filter to replace tokens in configuration file with user defined values.void
deployDatasources(InstalledLocalContainer container)
Deploy datasources.protected String[]
getUserTokens()
Generate properties file entries for Geronimo users and groups.-
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration
addXmlReplacement, addXmlReplacement, addXmlReplacement, addXmlReplacement, configureFiles, getType, getXmlReplacements, performXmlReplacements, removeXmlReplacement, removeXmlReplacement, replaceInFile, setupConfigurationDir, verify
-
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
addDataSource, addDataSourcesFromProperties, addDeployable, addResource, addResourcesFromProperties, addUser, addUsersFromProperties, applyPortOffset, applyPortOffset, collectUnsupportedDataSourcesAndThrowException, collectUnsupportedResourcesAndThrowException, configure, doConfigure, flagOffsetApplied, getDataSources, getDeployables, getDestDirectoryLocation, getDestFileLocation, getFileHandler, getFileProperties, getHome, getPropertyValue, getReplacements, getResources, getResourceUtils, getUsers, isOffsetApplied, isOffsetApplied, parsePropertiesForPendingConfiguration, revertPortOffset, revertPortOffset, setConfigFileProperty, setFileHandler, setFileProperty, setLogger
-
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractConfiguration
getProperties, setProperty
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger
-
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.Configuration
getCapability, getProperties, getPropertyValue, setProperty
-
Methods inherited from interface org.codehaus.cargo.container.configuration.LocalConfiguration
addDataSource, addDeployable, addResource, addUser, applyPortOffset, configure, getDataSources, getDeployables, getFileHandler, getFileProperties, getHome, getResources, getUsers, isOffsetApplied, revertPortOffset, setConfigFileProperty, setFileHandler, setFileProperty
-
-
-
-
Constructor Detail
-
AbstractGeronimoStandaloneLocalConfiguration
public AbstractGeronimoStandaloneLocalConfiguration(String dir)
-
-
Method Detail
-
createGeronimoReplacements
protected Map<String,String> createGeronimoReplacements(LocalContainer container) throws MalformedURLException
Create filter to replace tokens in configuration file with user defined values.- Parameters:
container
- the instance representing the Geronimo container- Returns:
- token with all the user-defined token value
- Throws:
MalformedURLException
- If an URL is malformed.
-
getUserTokens
protected String[] getUserTokens()
Generate properties file entries for Geronimo users and groups.- Returns:
- Array holding the entries for the users and groups properties file entries
-
deployDatasources
public void deployDatasources(InstalledLocalContainer container) throws Exception
Deploy datasources.- Parameters:
container
- Geronimo container.- Throws:
Exception
- If anything goes wrong.
-
-