Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "Org.eclipse.higgins.configuration.common"

(Links)
(See Also)
Line 57: Line 57:
 
</pre></code>
 
</pre></code>
  
== See Also ==
 
* [[Configuration API]]
 
* [[Configuration XML]]
 
* [[Configuration XRDS]]
 
* [[Components]]
 
  
  
 
[[Category:Higgins Components]]
 
[[Category:Higgins Components]]

Revision as of 10:51, 10 December 2008

{{#eclipseproject:technology.higgins}} 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.

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) {...}
}

Back to the top