Modifier and Type | Field and Description |
---|---|
java.util.List<ServiceReferenceDTO> |
matches
The list of service references that match this reference.
|
int |
minimumCardinality
The runtime minimum cardinality of the dependency.
|
java.lang.String |
targetFilter
Indicates the runtime target filter used in addition to the
template .serviceType to match services. |
ReferenceTemplateDTO |
template
The template of this reference.
|
Constructor and Description |
---|
ReferenceDTO() |
public ReferenceTemplateDTO template
Must not be null
public int minimumCardinality
template
.maximumCardinality
is ONE
the value must
be either 0 or 1.template
.maximumCardinality
is MANY
the value
must be from 0 to Integer.MAX_VALUE
.
public java.lang.String targetFilter
template
.serviceType
to match services.public java.util.List<ServiceReferenceDTO> matches
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 associated ReferenceTemplateDTO
.
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0