org.apache.felix.scr.impl
Class ReferenceMetadata

java.lang.Object
  extended by org.apache.felix.scr.impl.ReferenceMetadata

public class ReferenceMetadata
extends java.lang.Object

Information associated to a dependency


Constructor Summary
ReferenceMetadata()
           
 
Method Summary
 java.lang.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
 java.lang.String getCardinality()
          Get the cardinality as a string
 java.lang.String getInterface()
          Returns the fully qualified name of the class that is used by the component to access the service
 java.lang.String getName()
          Returns the name of the reference
 java.lang.String getPolicy()
          Get the policy as a string
 java.lang.String getTarget()
          Returns the filter expression that further constrains the set of target services
 java.lang.String getTargetPropertyName()
          Returns the name of the component property referring to the target property of this reference.
 java.lang.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
 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 isStatic()
          Test if dependency's binding policy is static
 void setBind(java.lang.String bind)
          Setter for the bind method attribute
 void setCardinality(java.lang.String cardinality)
          Setter for the cardinality attribute
 void setInterface(java.lang.String interfaceName)
          Setter for the interfaceName attribute
 void setName(java.lang.String name)
          Setter for the name attribute
 void setPolicy(java.lang.String policy)
          Setter for the policy attribute
 void setTarget(java.lang.String target)
          Setter for the target attribute (filter)
 void setUnbind(java.lang.String unbind)
          Setter for the unbind method attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceMetadata

public ReferenceMetadata()
Method Detail

setName

public void setName(java.lang.String name)
Setter for the name attribute

Parameters:
name -

setInterface

public void setInterface(java.lang.String interfaceName)
Setter for the interfaceName attribute

Parameters:
interfaceName -

setCardinality

public void setCardinality(java.lang.String cardinality)
Setter for the cardinality attribute

Parameters:
cardinality -

setPolicy

public void setPolicy(java.lang.String policy)
Setter for the policy attribute

Parameters:
policy -

setTarget

public void setTarget(java.lang.String target)
Setter for the target attribute (filter)

Parameters:
target -

setBind

public void setBind(java.lang.String bind)
Setter for the bind method attribute

Parameters:
bind -

setUnbind

public void setUnbind(java.lang.String unbind)
Setter for the unbind method attribute

Parameters:
unbind -

getName

public java.lang.String getName()
Returns the name of the reference

Returns:
A string containing the reference's name

getInterface

public java.lang.String getInterface()
Returns the fully qualified name of the class that is used by the component to access the service

Returns:
A string containing a fully qualified name

getCardinality

public java.lang.String getCardinality()
Get the cardinality as a string

Returns:
A string with the cardinality

getPolicy

public java.lang.String getPolicy()
Get the policy as a string

Returns:
A string with the policy

getTarget

public java.lang.String getTarget()
Returns the filter expression that further constrains the set of target services

Returns:
A string with a filter

getBind

public java.lang.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

Returns:
a String with the name of the bind method

getUnbind

public java.lang.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

Returns:
a String with the name of the unbind method

isStatic

public boolean isStatic()
Test if dependency's binding policy is static

Returns:
true if static

isOptional

public boolean isOptional()
Test if dependency is optional (0..1 or 0..n)

Returns:
true if the dependency is optional

isMultiple

public boolean isMultiple()
Test if dependency is multiple (0..n or 1..n)

Returns:
true if the dependency is multiple

getTargetPropertyName

public java.lang.String getTargetPropertyName()
Returns the name of the component property referring to the target property of this reference.

Returns:
the name of the target property which is the name of this referene suffixed with the string ".target".