Class ReferenceTemplateDTO
- java.lang.Object
-
- org.osgi.dto.DTO
-
- org.osgi.service.cdi.runtime.dto.template.ReferenceTemplateDTO
-
public class ReferenceTemplateDTO extends org.osgi.dto.DTO
A description of a reference dependency of a componentThe content of this DTO is resolved form metadata at initialization time and remains the same between the CDI bundle restarts.
- Author:
- $Id: 4911250a9d7df0ddeaf1fdf17b4796642ecc7b83 $
-
-
Field Summary
Fields Modifier and Type Field Description MaximumCardinality
maximumCardinality
The maximum cardinality of the reference.int
minimumCardinality
The minimum cardinality of the reference.java.lang.String
name
A unique within the container and persistent across reboots identified for this activationReferencePolicy
policy
Indicates if the reference is dynamic or static in nature.ReferencePolicyOption
policyOption
Indicates if the reference is greedy or reluctant in nature.java.lang.String
serviceType
Indicates the type of service matched by the reference.java.lang.String
targetFilter
Indicates a target filter used in addition to theserviceType
to match services.
-
Constructor Summary
Constructors Constructor Description ReferenceTemplateDTO()
-
-
-
Field Detail
-
name
public java.lang.String 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
public java.lang.String serviceType
Indicates the type of service matched by the reference.The value must not be
null
.
-
targetFilter
public java.lang.String 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 minimumCardinality
The 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
public MaximumCardinality maximumCardinality
The maximum cardinality of the reference.
-
policy
public ReferencePolicy policy
Indicates if the reference is dynamic or static in nature.
-
policyOption
public ReferencePolicyOption policyOption
Indicates if the reference is greedy or reluctant in nature.
-
-