Entry Descriptor

Attributes

Attribute Required Description
key yes The key that the component implementation will use when retrieving a value from the supplied context using the context.get( key ) operation.
type no The classname of the context entry. The default value is java.lang.String.
optional no The optional status of the entry. If optional is TRUE, a container is not required to supply the entry. The default value is FALSE.

Description

The entry element declares the criteria for the inclusion of a context entry within a context object. The entry exposes a context key and the type that the context entry may be safely cast to.

Example XML

<context>
  <entry key="home" type="java.io.File"/>
  <entry key="test" type="MySpecialClass" optional="TRUE"/>
</context>