Top Description Fields Constructors Methods
org.osgi.service.cdi.runtime.dto

public Class ReferenceDTO

extends DTO
Class Inheritance
Imports
java.util.List, org.osgi.dto.DTO, org.osgi.framework.dto.ServiceReferenceDTO, org.osgi.service.cdi.MaximumCardinality, org.osgi.service.cdi.runtime.dto.template.ReferenceTemplateDTO

A snapshot of the runtime state of a component reference dependency
Author
$Id: 22d457721de1c59921b53ff03fe0f0289bf12d45 $

Field Summary

Modifier and TypeField and Description
public List<ServiceReferenceDTO>
matches

The list of service references that match this reference.

public int
minimumCardinality

The runtime minimum cardinality of the dependency.

public String
targetFilter

Indicates the runtime target filter used in addition to the template.

public ReferenceTemplateDTO
template

The template of this reference.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.osgi.dto.DTO:
toString

Field Detail

matchesback to summary
public List<ServiceReferenceDTO> 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 associated ReferenceTemplateDTO.

minimumCardinalityback to summary
public int minimumCardinality

The runtime minimum cardinality of the dependency.

targetFilterback to summary
public String targetFilter

Indicates the runtime target filter used in addition to the template.serviceType to match services.

templateback to summary
public ReferenceTemplateDTO template

The template of this reference.

Must not be null

Constructor Detail

ReferenceDTOback to summary
public ReferenceDTO()