org.apache.felix.bundlerepository
Interface Requirement

All Known Implementing Classes:
RequirementImpl

public interface Requirement

A named requirement specifies the need for certain capabilities with the same name. A requirement is said to be satisfied by a capability if and only if:

Version:
$Revision: 1.4 $

Method Summary
 String getComment()
           
 String getFilter()
          Return the filter.
 String getName()
          Return the name of the requirement.
 boolean isExtend()
           
 boolean isMultiple()
           
 boolean isOptional()
           
 boolean isSatisfied(Capability capability)
          Check if the given capability satisfied this requirement.
 

Method Detail

getName

String getName()
Return the name of the requirement.


getFilter

String getFilter()
Return the filter.


isMultiple

boolean isMultiple()

isOptional

boolean isOptional()

isExtend

boolean isExtend()

getComment

String getComment()

isSatisfied

boolean isSatisfied(Capability capability)
Check if the given capability satisfied this requirement.

Parameters:
capability - the capability to check
Returns:
true is the capability satisfies this requirement, false otherwise


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.