|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esf.core.configuration.service.ConfigurationPropertiesObject
public class ConfigurationPropertiesObject
A @ConfigurationPropertiesObject is a @Hashtable of a specific form. The keys are all bundle symbolic names and the values are Objects that represent the configuration associated with the specific bundle. Copyright (c) 2009 Eurotech Inc. All rights reserved.
Constructor Summary | |
---|---|
ConfigurationPropertiesObject()
Constructor to create a new empty @ConfigurationPropertiesObject |
|
ConfigurationPropertiesObject(java.util.Hashtable completeConfiguration)
Constructor to create a new @ConfigurationPropertiesObject from a @Hashtable |
|
ConfigurationPropertiesObject(java.lang.String[] names,
java.lang.Object[] configurations)
Constructor to create a new @ConfigurationPropertiesObject from an array of bundle symbolic names and an array of @Object representing their respective configurations |
|
ConfigurationPropertiesObject(java.lang.String name,
java.lang.Object newConfiguration)
Constructor to create a new @ConfigurationPropertiesObject that contains one bundle and configuration |
Method Summary | |
---|---|
void |
addConfiguration(java.lang.String name,
java.lang.Object configuration)
Adds a new bundle and configuration to this @ConfigurationPropertiesObject |
java.util.Hashtable |
getConfiguration()
Gets the @Hashtable representing this @ConfigurationPropertiesObject |
void |
removeConfiguration(java.lang.String name)
Removes a configuration from the @ConfiguraitonPropertiesObject by bundle name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationPropertiesObject(java.util.Hashtable completeConfiguration) throws java.lang.Exception
completeConfiguration
- a @ConfigurationPropertiesObject in the
form of a @Hasthable
java.lang.Exception
- if the @Hashtable is malformedpublic ConfigurationPropertiesObject(java.lang.String[] names, java.lang.Object[] configurations) throws java.lang.Exception
names
- an array of bundle symbolic namesconfigurations
- an array of @Object configurations that map to to one to the symbolic
bundle names in the first array
java.lang.Exception
- if the data is malformedpublic ConfigurationPropertiesObject(java.lang.String name, java.lang.Object newConfiguration)
name
- the name of the bundle to addconfiguration
- the @Object representing the configurationpublic ConfigurationPropertiesObject()
Method Detail |
---|
public void addConfiguration(java.lang.String name, java.lang.Object configuration)
name
- the name of the bundle to addconfiguration
- the @Object representing the configurationpublic void removeConfiguration(java.lang.String name) throws java.lang.Throwable
name
- the symbolic name of the bundle to add
java.lang.Throwable
- if the bundle symbolic name does not exist in thispublic java.util.Hashtable getConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |