org.jboss.osgi.resolver
Interface XRequirement

All Superinterfaces:
Requirement, XAttachmentSupport, XAttributeSupport, XDirectiveSupport, XElement
All Known Subinterfaces:
XBundleRequirement, XHostRequirement, XPackageRequirement
All Known Implementing Classes:
AbstractBundleRequirement, AbstractHostRequirement, AbstractPackageRequirement, AbstractRequirement

public interface XRequirement
extends XElement, XAttributeSupport, XDirectiveSupport, Requirement

An extension to the Requirement

Since:
02-Jul-2010
Author:
thomas.diesler@jboss.com

Method Summary
 boolean isOptional()
          A flag indicating that this is an optional requirement.
 boolean matches(XCapability cap)
          Matches this requirement against the given capability.
 
Methods inherited from interface org.jboss.osgi.resolver.XAttachmentSupport
addAttachment, getAttachment, removeAttachment
 
Methods inherited from interface org.jboss.osgi.resolver.XAttributeSupport
getAttribute, getAttributes
 
Methods inherited from interface org.jboss.osgi.resolver.XDirectiveSupport
getDirective, getDirectives
 
Methods inherited from interface org.osgi.resource.Requirement
equals, getAttributes, getDirectives, getNamespace, getResource, hashCode
 

Method Detail

isOptional

boolean isOptional()
A flag indicating that this is an optional requirement.


matches

boolean matches(XCapability cap)
Matches this requirement against the given capability.



Copyright © 2012. All Rights Reserved.