Klasse ComponentConfigurationPropertiesResolverBaseImpl
java.lang.Object
org.apache.fulcrum.yaafi.framework.configuration.ComponentConfigurationPropertiesResolverBaseImpl
- Alle implementierten Schnittstellen:
org.apache.avalon.framework.configuration.Configurable
,org.apache.avalon.framework.context.Contextualizable
,org.apache.avalon.framework.logger.LogEnabled
,ComponentConfigurationPropertiesResolver
- Bekannte direkte Unterklassen:
ComponentConfigurationPropertiesResolverImpl
public abstract class ComponentConfigurationPropertiesResolverBaseImpl
extends Object
implements ComponentConfigurationPropertiesResolver, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.configuration.Configurable
Base class to expand the value and all attributes. This class is intentend
to be sub-classed if you hook up your own configuration mechanism.
- Autor:
- Siegfried Goeschl
-
Feldübersicht
Von Schnittstelle geerbte Felder org.apache.fulcrum.yaafi.framework.configuration.ComponentConfigurationPropertiesResolver
COMPONENT_CONFIG_PROPERTIES_VALUE
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
addAvalonContext
(Properties properties) Add the Avalon context variables.void
configure
(org.apache.avalon.framework.configuration.Configuration configuration) void
contextualize
(org.apache.avalon.framework.context.Context context) protected InputStream
createInputStream
(String location) Creates an InputStream using a Locator.void
enableLogging
(org.apache.avalon.framework.logger.Logger logger) protected File
protected org.apache.avalon.framework.configuration.Configuration
protected org.apache.avalon.framework.context.Context
protected String
protected org.apache.avalon.framework.logger.Logger
protected Properties
loadProperties
(String fileLocation) Set properties from a file locationVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.apache.fulcrum.yaafi.framework.configuration.ComponentConfigurationPropertiesResolver
resolve
-
Konstruktordetails
-
ComponentConfigurationPropertiesResolverBaseImpl
public ComponentConfigurationPropertiesResolverBaseImpl()
-
-
Methodendetails
-
enableLogging
public void enableLogging(org.apache.avalon.framework.logger.Logger logger) - Angegeben von:
enableLogging
in Schnittstelleorg.apache.avalon.framework.logger.LogEnabled
- Parameter:
logger
- the logger instance- Siehe auch:
-
contextualize
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException - Angegeben von:
contextualize
in Schnittstelleorg.apache.avalon.framework.context.Contextualizable
- Parameter:
context
- the Context to add- Löst aus:
org.apache.avalon.framework.context.ContextException
- Siehe auch:
-
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException - Angegeben von:
configure
in Schnittstelleorg.apache.avalon.framework.configuration.Configurable
- Parameter:
configuration
- the configuration object to use- Löst aus:
org.apache.avalon.framework.configuration.ConfigurationException
- Siehe auch:
-
getLogger
protected org.apache.avalon.framework.logger.Logger getLogger()- Gibt zurück:
- Returns the logger.
-
getContext
protected org.apache.avalon.framework.context.Context getContext()- Gibt zurück:
- Returns the context.
-
getApplicationRootDir
- Gibt zurück:
- the home directory of the application
-
getConfiguration
protected org.apache.avalon.framework.configuration.Configuration getConfiguration()- Gibt zurück:
- Returns the configuration.
-
getLocation
- Gibt zurück:
- Returns the componentConfigurationPropertiesLocation.
-
createInputStream
Creates an InputStream using a Locator.- Parameter:
location
- the location of the file- Gibt zurück:
- the InputStrem or null if the resource was not found
- Löst aus:
IOException
- if file not found
-
addAvalonContext
protected void addAvalonContext(Properties properties) throws org.apache.avalon.framework.context.ContextException Add the Avalon context variables.- Parameter:
properties
- properties to be set- Löst aus:
org.apache.avalon.framework.context.ContextException
- if context not found
-
loadProperties
Set properties from a file location- Parameter:
fileLocation
- file location of properties properties to be set- Gibt zurück:
- the properties
- Löst aus:
Exception
- if unable to parse the properties file
-