Class ReferenceTemplateDTO
java.lang.Object
org.osgi.dto.DTO
org.osgi.service.cdi.runtime.dto.template.ReferenceTemplateDTO
A description of a reference dependency of a component
The content of this DTO is resolved form metadata at initialization time and remains the same between the CDI bundle restarts.
- "NotThreadSafe"
-
Field Summary
Modifier and TypeFieldDescriptionThe maximum cardinality of the reference.int
The minimum cardinality of the reference.A unique within the container and persistent across reboots identified for this activationIndicates if the reference is dynamic or static in nature.Indicates if the reference is greedy or reluctant in nature.Indicates the type of service matched by the reference.Indicates a target filter used in addition to theserviceType
to match services. -
Constructor Summary
-
Method Summary
-
Field Details
-
name
A unique within the container and persistent across reboots identified for this activationThe value must not be
null
. The value must be equal to the reference name. -
serviceType
Indicates the type of service matched by the reference.The value must not be
null
. -
targetFilter
Indicates a target filter used in addition to theserviceType
to match services.Contains the target filter resolved from the CDI bundle metadata. The filter can be replaced by configuration at runtime.
-
minimumCardinality
public int minimumCardinalityThe minimum cardinality of the reference.Contains the minimum cardinality statically resolved from the CDI bundle metadata. The minimum cardinality can be replaced by configuration at runtime.
- If
maximumCardinality
isONE
the value must be either 0 or 1. - If
maximumCardinality
isMANY
the value must be from 0 toInteger.MAX_VALUE
.
- If
-
maximumCardinality
The maximum cardinality of the reference. -
policy
Indicates if the reference is dynamic or static in nature. -
policyOption
Indicates if the reference is greedy or reluctant in nature.
-
-
Constructor Details
-
ReferenceTemplateDTO
public ReferenceTemplateDTO()
-