org.apache.felix.servicebinder
Class DependencyMetadata

java.lang.Object
  extended by org.apache.felix.servicebinder.DependencyMetadata

public class DependencyMetadata
extends java.lang.Object

Metadata of a dependency

Author:
Felix Project Team

Method Summary
 java.lang.String getBindMethodName()
          Get the name of the Bind method
 java.lang.String getCardinality()
          Get the cardinality as a string
 java.lang.String getFilter()
          Returns the filter
 java.lang.String getPolicy()
          Get the policy as a string
 java.lang.String getServiceName()
          Returns the name of the required service
 java.lang.String getUnbindMethodName()
          Get the name of the Unbind method
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServiceName

public java.lang.String getServiceName()
Returns the name of the required service

Returns:
the name of the required service

getFilter

public java.lang.String getFilter()
Returns the filter

Returns:
A string with the filter

getBindMethodName

public java.lang.String getBindMethodName()
Get the name of the Bind method

Returns:
a String with the name of the BindMethod

getUnbindMethodName

public java.lang.String getUnbindMethodName()
Get the name of the Unbind method

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

getCardinality

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

Returns:
the cardinality

getPolicy

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

Returns:
the policy