public class ReferenceTemplateDTO extends DTO
The content of this DTO is resolved form metadata at initialization time and remains the same between the CDI bundle restarts.
Modifier and Type | Field and 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 activation
|
ReferencePolicy |
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 the
serviceType to
match services. |
Constructor and Description |
---|
ReferenceTemplateDTO() |
public java.lang.String name
The value must not be null
. The value must be equal to the
reference name.
public java.lang.String serviceType
The value must not be null
.
public java.lang.String targetFilter
serviceType
to
match services.
Contains the target filter resolved from the CDI bundle metadata. The filter can be replaced by configuration at runtime.
public int minimumCardinality
Contains the minimum cardinality statically resolved from the CDI bundle metadata. The minimum cardinality can be replaced by configuration at runtime.
maximumCardinality
is ONE
the
value must be either 0 or 1.maximumCardinality
is MANY
the value must be from 0 to Integer.MAX_VALUE
.
public MaximumCardinality maximumCardinality
public ReferencePolicy policy
public ReferencePolicyOption policyOption
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0