public class AbstractHostRequirement extends AbstractRequirement implements XHostRequirement
XHostRequirement
.Modifier | Constructor and Description |
---|---|
protected |
AbstractHostRequirement(org.osgi.framework.resource.Resource res,
Map<String,Object> atts,
Map<String,String> dirs) |
Modifier and Type | Method and Description |
---|---|
<T> T |
addAttachment(Class<T> clazz,
T value)
Attach an arbirtary object with this element.
|
<T> T |
getAttachment(Class<T> clazz)
Get the attached object for a given key
|
protected Set<String> |
getMandatoryAttributes() |
String |
getSymbolicName() |
org.jboss.osgi.metadata.VersionRange |
getVersionRange() |
boolean |
matches(org.osgi.framework.resource.Capability cap) |
<T> T |
removeAttachment(Class<T> clazz)
Remove an attached object for a given key
|
getAttribute, getAttributes, getDirective, getDirectives, getNamespace, getResource, isOptional, matchFilterValue, matchNamespaceValue, toString, validateAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isOptional
addAttachment, getAttachment, removeAttachment
getAttribute, getAttributes
getDirective, getDirectives
protected Set<String> getMandatoryAttributes()
getMandatoryAttributes
in class AbstractRequirement
public String getSymbolicName()
getSymbolicName
in interface XHostRequirement
public org.jboss.osgi.metadata.VersionRange getVersionRange()
getVersionRange
in interface XHostRequirement
public boolean matches(org.osgi.framework.resource.Capability cap)
matches
in interface org.osgi.framework.resource.Requirement
matches
in class AbstractRequirement
public <T> T addAttachment(Class<T> clazz, T value)
XAttachmentSupport
addAttachment
in interface XAttachmentSupport
clazz
- key for the attachmentpublic <T> T getAttachment(Class<T> clazz)
XAttachmentSupport
getAttachment
in interface XAttachmentSupport
clazz
- key for the attachmentpublic <T> T removeAttachment(Class<T> clazz)
XAttachmentSupport
removeAttachment
in interface XAttachmentSupport
clazz
- key for the attachmentCopyright © 2013 JBoss by Red Hat. All Rights Reserved.