Package org.osgi.service.cdi.runtime.dto
Class ReferenceDTO
- java.lang.Object
-
- org.osgi.dto.DTO
-
- org.osgi.service.cdi.runtime.dto.ReferenceDTO
-
public class ReferenceDTO extends org.osgi.dto.DTOA snapshot of the runtime state of acomponentreference dependency- Author:
- $Id: 22d457721de1c59921b53ff03fe0f0289bf12d45 $
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<org.osgi.framework.dto.ServiceReferenceDTO>matchesThe list of service references that match this reference.intminimumCardinalityThe runtime minimum cardinality of the dependency.java.lang.StringtargetFilterIndicates the runtime target filter used in addition to thetemplate.serviceTypeto match services.ReferenceTemplateDTOtemplateThe template of this reference.
-
Constructor Summary
Constructors Constructor Description ReferenceDTO()
-
-
-
Field Detail
-
template
public ReferenceTemplateDTO template
The template of this reference.Must not be
null
-
minimumCardinality
public int minimumCardinality
The runtime minimum cardinality of the dependency.- If
template.maximumCardinalityisONEthe value must be either 0 or 1. - If
template.maximumCardinalityisMANYthe value must be from 0 toInteger.MAX_VALUE.
- If
-
targetFilter
public java.lang.String targetFilter
Indicates the runtime target filter used in addition to thetemplate.serviceTypeto match services.
-
matches
public java.util.List<org.osgi.framework.dto.ServiceReferenceDTO> matches
The list of service references that match this reference.Must not be
nullCan 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.
-
-