org.ow2.petals.launcher.configuration
Interface Configuration

All Known Implementing Classes:
DefaultConfiguration

public interface Configuration

Instances of this interface give access to every information other classes may need about the configuration of petals ESB.

Author:
sandre

Method Summary
 java.io.File getConfDirectory()
          Get the directory that contains configuration files
 java.io.File getHomeDirectory()
          Get petals home directory
 java.io.File getInstallDirectory()
          Get the directory of components to be installed
 java.io.File getInstalledDirectory()
          Get the directory of installed components
 java.io.File getLibDirectory()
          Get the libraries directory
 int getStartupTimeoutSeconds()
          Get the startup timeout in seconds
 java.io.File getWorkDirectory()
          Get the work directory
 boolean isValid()
          Check this configuration
 

Method Detail

isValid

boolean isValid()
                throws ConfigurationException
Check this configuration

Returns:
true if this configuration is valid, false otherwise
Throws:
ConfigurationException

getHomeDirectory

java.io.File getHomeDirectory()
                              throws ConfigurationException
Get petals home directory

Throws:
ConfigurationException

getConfDirectory

java.io.File getConfDirectory()
                              throws ConfigurationException
Get the directory that contains configuration files

Returns:
Throws:
ConfigurationException

getLibDirectory

java.io.File getLibDirectory()
                             throws ConfigurationException
Get the libraries directory

Returns:
Throws:
ConfigurationException

getInstallDirectory

java.io.File getInstallDirectory()
                                 throws ConfigurationException
Get the directory of components to be installed

Returns:
Throws:
ConfigurationException

getInstalledDirectory

java.io.File getInstalledDirectory()
                                   throws ConfigurationException
Get the directory of installed components

Returns:
Throws:
ConfigurationException

getWorkDirectory

java.io.File getWorkDirectory()
                              throws ConfigurationException
Get the work directory

Returns:
Throws:
ConfigurationException

getStartupTimeoutSeconds

int getStartupTimeoutSeconds()
                             throws ConfigurationException
Get the startup timeout in seconds

Returns:
a positive integer
Throws:
ConfigurationException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.