Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Org.eclipse.higgins.configuration.common"
(→Service) |
(→Links) |
||
Line 55: | Line 55: | ||
} | } | ||
</pre></code> | </pre></code> | ||
+ | |||
+ | == See Also == | ||
+ | * [[Components]] | ||
+ | * [[Configuration API]] | ||
== Links == | == Links == | ||
− | * [http://eclipse.org/higgins Higgins Home | + | * [http://eclipse.org/higgins Higgins Home] |
− | + | ||
− | + | ||
− | + |
Revision as of 11:23, 28 January 2008
This is a project to hold implementation code that can be used across different configurable components and configuration handlers. Currently, it only has a helper class that creates a factory object for a configurable component.
Contents
Details
- Status: Available M0.8
- Language: Java
- Packaging: JAR
Plans
- No currently planned features.
Service
ConfigurableComponentFactoryHelper
public class ConfigurableComponentFactoryHelper
{
static public IConfigurableComponent
getSingletonFromFactory(final String factoryClassName)
throws Exception {...}
static public IConfigurableComponent
getFromFactory(final String factoryClassName)
throws Exception {...}
}
PropertyFileConfigurationHandler
- Implements IConfigurationHandler
- Reads property file (setConfigurationBase, setFileName)
- Map holds one entry per property
- Key and value are both strings
public class PropertyFileConfigurationHandler
{
//constructor #1: no file or directory set
public PropertyFileConfigurationHandler() {...}
//constructor #2: set file, but not dir
public PropertyFileConfigurationHandler(String fileName) {...}
//constructor #3: set directory and file
public PropertyFileConfigurationHandler(String configDir, String fileName) {...}
public java.util.Map getSettings() throws Exception {...}
public synchronized boolean configure(Map mapConfigurationSettings)
throws Exception {...}
public void setConfigurationBase(String dirName) {...}
public void setFileName(String fileName) {...}
}