Package org.osgi.service.cdi.runtime.dto
Class ReferenceDTO
java.lang.Object
org.osgi.dto.DTO
org.osgi.service.cdi.runtime.dto.ReferenceDTO
A snapshot of the runtime state of a
component
reference
dependency- "NotThreadSafe"
-
Field Summary
Modifier and TypeFieldDescriptionThe list of service references that match this reference.int
The runtime minimum cardinality of the dependency.Indicates the runtime target filter used in addition to thetemplate
.serviceType
to match services.The template of this reference. -
Constructor Summary
-
Method Summary
-
Field Details
-
template
The template of this reference.Must not be
null
-
minimumCardinality
public int minimumCardinalityThe runtime minimum cardinality of the dependency.- If
template
.maximumCardinality
isONE
the value must be either 0 or 1. - If
template
.maximumCardinality
isMANY
the value must be from 0 toInteger.MAX_VALUE
.
- If
-
targetFilter
Indicates the runtime target filter used in addition to thetemplate
.serviceType
to match services. -
matches
The list of service references that match this reference.Must not be
null
Can be empty when there are no matching services.
This dependency is satisfied when
minimumCardinality
<= matches.size() <=
MaximumCardinality.toInt()
where the maximum cardinality can be obtained from the associatedReferenceTemplateDTO
.
-
-
Constructor Details
-
ReferenceDTO
public ReferenceDTO()
-