Collection Descriptor

Description

Declaration of a garbage collection policy to be used by a container for the component type. For additional information concerning object reference semantics please refered to the java.lang.ref package summary.

Enumerated Values

Value Description
weak A component type having a weak collection policy will be decommissioned following the release of the instance reference by a consumer component.
soft A component type having a soft collection policy will be decommissioned following the release of the instance reference by a consumer component if a memory contention condition occurs.
hard A component type having a hard collection policy will be maintained in memory for the life of the its containment model.

Example XML

<collection>soft</collection>