org.apache.felix.servicebinder
Class DependencyMetadata

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

public class DependencyMetadata
extends Object

Metadata of a dependency

Author:
Felix Project Team

Method Summary
 String getBindMethodName()
          Get the name of the Bind method
 String getCardinality()
          Get the cardinality as a string
 String getFilter()
          Returns the filter
 String getPolicy()
          Get the policy as a string
 String getServiceName()
          Returns the name of the required service
 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 String getServiceName()
Returns the name of the required service

Returns:
the name of the required service

getFilter

public String getFilter()
Returns the filter

Returns:
A string with the filter

getBindMethodName

public String getBindMethodName()
Get the name of the Bind method

Returns:
a String with the name of the BindMethod

getUnbindMethodName

public 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 String getCardinality()
Get the cardinality as a string

Returns:
the cardinality

getPolicy

public String getPolicy()
Get the policy as a string

Returns:
the policy


Copyright © 2011 Apache Software Foundation. All Rights Reserved.