public class ReferenceMetadata extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReferenceMetadata.ReferenceScope |
Modifier and Type | Field and Description |
---|---|
static String |
CARDINALITY_0_1 |
static String |
CARDINALITY_0_N |
static String |
CARDINALITY_1_1 |
static String |
CARDINALITY_1_N |
static String |
FIELD_VALUE_TYPE_PROPERTIES |
static String |
FIELD_VALUE_TYPE_REFERENCE |
static String |
FIELD_VALUE_TYPE_SERVICE |
static String |
FIELD_VALUE_TYPE_SERVICEOBJECTS |
static String |
FIELD_VALUE_TYPE_TUPLE |
static String |
POLICY_DYNAMIC |
static String |
POLICY_OPTION_GREEDY |
static String |
POLICY_OPTION_RELUCTANT |
static String |
POLICY_STATIC |
Constructor and Description |
---|
ReferenceMetadata() |
Modifier and Type | Method and Description |
---|---|
String |
getBind()
Get the name of a method in the component implementation class that is used to notify that
a service is bound to the component configuration
|
String |
getCardinality()
Get the cardinality as a string
|
String |
getDebugInfo() |
String |
getField()
Get the name of a field in the component implementation class that is used to hold
the reference
|
String |
getFieldCollectionType()
Get the value type of a field in the component implementation class that is used to hold
the reference
|
String |
getFieldOption()
Get the strategy of a field in the component implementation class that is used to hold
the reference
|
String |
getInterface()
Returns the fully qualified name of the class that is used by the component to access the service
|
String |
getMinCardinalityName() |
String |
getName()
Returns the name of the reference
|
String |
getParameterCollectionType()
Get the value type of a parameter in the component implementation class that is used to hold
the reference
DS 1.4
|
Integer |
getParameterIndex()
Get the parameter index, if specified.
|
String |
getPolicy()
Get the policy as a string
|
String |
getPolicyOption()
Get the policy option as a string
|
ReferenceMetadata.ReferenceScope |
getScope() |
String |
getTarget()
Returns the filter expression that further constrains the set of target services
|
String |
getTargetPropertyName()
Returns the name of the component property referring to the
target
property of this reference. |
String |
getUnbind()
Get the name of a method in the component implementation class that is used to notify that
a service is unbound from the component configuration
|
String |
getUpdated()
Get the name of a method in the component implementation class that is used to notify that
the service properties of a bound service have been updated
|
boolean |
isMultiple()
Test if dependency is multiple (0..n or 1..n)
|
boolean |
isOptional()
Test if dependency is optional (0..1 or 0..n)
|
boolean |
isReluctant()
Test if policy option is reluctant
|
boolean |
isReplace()
Test if field strategy is replace.
|
boolean |
isStatic()
Test if dependency's binding policy is static
|
void |
setBind(String bind)
Setter for the bind method attribute
|
void |
setCardinality(String cardinality)
Setter for the cardinality attribute
|
void |
setField(String field)
Setter for the field attribute
|
void |
setFieldCollectionType(String valuetype)
Setter for the field value type attribute
|
void |
setFieldOption(String strategy)
Setter for the field strategy attribute
|
void |
setInterface(String interfaceName)
Setter for the interfaceName attribute
|
void |
setName(String name)
Setter for the name attribute
|
void |
setParameter(String val)
Setter for the parameter value
DS 1.4
|
void |
setPolicy(String policy)
Setter for the policy attribute
|
void |
setPolicyOption(String policyOption)
Setter for the policy option attribute
|
void |
setScope(String scopeName) |
void |
setTarget(String target)
Setter for the target attribute (filter)
|
void |
setUnbind(String unbind)
Setter for the unbind method attribute
|
void |
setUpdated(String updated)
Setter for the updated method attribute
|
public static final String CARDINALITY_0_1
public static final String CARDINALITY_0_N
public static final String CARDINALITY_1_1
public static final String CARDINALITY_1_N
public static final String POLICY_STATIC
public static final String POLICY_DYNAMIC
public static final String POLICY_OPTION_RELUCTANT
public static final String POLICY_OPTION_GREEDY
public static final String FIELD_VALUE_TYPE_SERVICE
public static final String FIELD_VALUE_TYPE_PROPERTIES
public static final String FIELD_VALUE_TYPE_REFERENCE
public static final String FIELD_VALUE_TYPE_SERVICEOBJECTS
public static final String FIELD_VALUE_TYPE_TUPLE
public void setName(String name)
name
- public void setInterface(String interfaceName)
interfaceName
- public void setCardinality(String cardinality)
cardinality
- public void setPolicy(String policy)
policy
- public void setPolicyOption(String policyOption)
policyOption
- public void setTarget(String target)
target
- public void setBind(String bind)
bind
- public void setUpdated(String updated)
updated
- public void setUnbind(String unbind)
unbind
- public void setField(String field)
field
- the field namepublic void setFieldOption(String strategy)
strategy
- the field strategypublic void setFieldCollectionType(String valuetype)
valuetype
- the field value typepublic void setScope(String scopeName)
public void setParameter(String val)
attribute
- valuepublic String getName()
public String getInterface()
public String getCardinality()
public String getPolicy()
public String getPolicyOption()
public String getTarget()
public String getBind()
public String getUpdated()
public String getUnbind()
public String getField()
public String getFieldOption()
public String getFieldCollectionType()
public Integer getParameterIndex()
#validate(ComponentMetadata, Logger)
and the validation has been
successful.
DS 1.4-null
public String getParameterCollectionType()
public boolean isStatic()
public boolean isOptional()
public boolean isMultiple()
public boolean isReluctant()
public boolean isReplace()
public String getTargetPropertyName()
target
property of this reference.public String getMinCardinalityName()
public ReferenceMetadata.ReferenceScope getScope()
public String getDebugInfo()
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.