| Package | osid.configuration |
|---|---|
| Title | Configuration Open Service Interface Definitions |
| Version | 3.1.0 |
| Description |
The Configuration OSID defines a set of interfaces for configuration retrieval and management. The Configuration service may be used to store user profiles or as a means to assist OSID implementors modularize configuration data. Parameters Configuration data is expressed through a set of
As an ValuesValues represent primitive types that are
assigned to Parameters and constrained by the
syntax specified in its Parameter. In the
most basic case, a single Value is created
for a Parameter and returned when the
Parameter is resolved.
Parameters can have multiple
Values where the Configuration OSID Consumer
can request all Values, or a single
Value selected by the OSID Provider.
Values are Operable such that
Values in multi-valued Parameter may be
enabled or disabled manually or based on a rule. For
example, the configuration of a service may change based
on time of day or may change based on some out-of-band
context. Value retrievals in the
ValueRetrievalSession support passing of a
ValueCondition to supply contextual
information to feed the rule evaluation.
Configuration Cataloging To create a configuration for an application, a
Parameters may be stored without values in
separate Configurations for reuse or
standardization.
OSID Provider implementations should get their
configurations via the Sub Packages The Configuration OSID includes a rules subpackage for
governing the available ExampleId colorParameterId = what I'm looking for;
ValueRetrievalSession valueSession = mgr.getValueRetrievalSession();
Value value = valueSession.getApplicableValueForParameter(colorParamId);
String color = value.getStringValue();
|