| org.jacorb.config.Configuration
All known Subclasses: org.jacorb.config.JacORBConfiguration,
Configuration | public interface Configuration extends org.apache.avalon.framework.configuration.Configuration(Code) | | ORB configuration objects are read-only representations of files with
configuration properties.
ORB configuration options for a given name are looked up and loaded as follows:
- System properties are loaded first, but only to get properties
that affect further property loading
- the file orb.properties is loaded from java.home/lib
and user.home if it exists
- if the ORBid is property is set, the file ORBid.properties is
loaded from jacorb.config.dir/etc, if that exists, or jacorb.home/etc, or '.'
If ORBid is not set, the default file jacorb.properties
is loaded from these places.
- Custom properties are loaded from each file name listed int the system property
custom.props
- To also support packaged servers in jar files, the configuration
file lookup mechanism finally tries to load named properties files
(ORBid.properties, or jacorb.properties) from
the classpath, if it cannot find them in the config dictionary.
- After all property files have been loaded, the System properties are
loaded again, so that command-line properties take precedence
- Finally, properties hard-coded and passed in through ORB.init() are
loaded.
The Configuration object is also used by JacORB components to
retreive their Logger objects.
author: Gerald Brose, XTRADYNE Technologies version: $Id: Configuration.java,v 1.18 2006/06/26 06:51:46 alphonse.bendt Exp $ |
getAttributeAsBoolean | boolean getAttributeAsBoolean(String key) throws ConfigurationException(Code) | | |
getAttributeAsBoolean | boolean getAttributeAsBoolean(String key, boolean defaultValue)(Code) | | |
getAttributeAsObject | Object getAttributeAsObject(String key) throws ConfigurationException(Code) | | Create an object from the given property. The class's default
constructor will be used.
an object of the class of the keys value, or null, ifno class name is found for the key throws: ConfigurationException - |
getAttributeList | List getAttributeList(String key)(Code) | | For a property that has a list of comma-separated values,
this method returns these values as a list of Strings.
If the property is not set, an empty list is returned.
|
getAttributeNamesWithPrefix | List getAttributeNamesWithPrefix(String string)(Code) | | return all attribute names that start
with the specified prefix
|
getNamedLogger | Logger getNamedLogger(String name)(Code) | | Parameters: name - the name of the logger, which also functionsas a log category a Logger for a given name |
getORB | ORB getORB()(Code) | | the ORB for which this configuration was created |
|
|