|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.resolver.spi.AbstractRequirement
org.jboss.osgi.resolver.spi.AbstractBundleRequirement
public class AbstractBundleRequirement
The abstract implementation of a XBundleRequirement.
| Constructor Summary | |
|---|---|
protected |
AbstractBundleRequirement(Resource res,
Map<String,Object> atts,
Map<String,String> dirs)
|
| Method Summary | ||
|---|---|---|
|
addAttachment(Class<T> clazz,
T value)
Attach an arbirtary object with this element. |
|
|
getAttachment(Class<T> clazz)
Get the attached object for a given key |
|
protected Set<String> |
getMandatoryAttributes()
|
|
String |
getSymbolicName()
The bundle symbolic name |
|
VersionRange |
getVersionRange()
The bundle version range |
|
String |
getVisibility()
Get the value of the visibility directive |
|
boolean |
matches(XCapability cap)
Matches this requirement against the given capability. |
|
|
removeAttachment(Class<T> clazz)
Remove an attached object for a given key |
|
| Methods inherited from class org.jboss.osgi.resolver.spi.AbstractRequirement |
|---|
getAttribute, getAttributes, getDirective, getDirectives, getNamespace, getResource, isOptional, matchFilterValue, matchNamespaceValue, toString, validateAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.osgi.resolver.XRequirement |
|---|
isOptional |
| 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 |
| Constructor Detail |
|---|
protected AbstractBundleRequirement(Resource res,
Map<String,Object> atts,
Map<String,String> dirs)
| Method Detail |
|---|
protected Set<String> getMandatoryAttributes()
getMandatoryAttributes in class AbstractRequirementpublic String getSymbolicName()
XBundleRequirement
getSymbolicName in interface XBundleRequirementpublic VersionRange getVersionRange()
XBundleRequirement
getVersionRange in interface XBundleRequirementpublic String getVisibility()
XBundleRequirement
getVisibility in interface XBundleRequirementBundleNamespace#REQUIREMENT_VISIBILITY_DIRECTIVE}public boolean matches(XCapability cap)
XRequirement
matches in interface XRequirementmatches in class AbstractRequirement
public <T> T addAttachment(Class<T> clazz,
T value)
XAttachmentSupport
addAttachment in interface XAttachmentSupportclazz - key for the attachment
public <T> T getAttachment(Class<T> clazz)
XAttachmentSupport
getAttachment in interface XAttachmentSupportclazz - key for the attachment
public <T> T removeAttachment(Class<T> clazz)
XAttachmentSupport
removeAttachment in interface XAttachmentSupportclazz - key for the attachment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||