public class AbstractIdentityRequirement extends AbstractRequirement implements XIdentityRequirement
XIdentityRequirement
.Modifier | Constructor and Description |
---|---|
protected |
AbstractIdentityRequirement(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() |
String |
getVisibility() |
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 XIdentityRequirement
public org.jboss.osgi.metadata.VersionRange getVersionRange()
getVersionRange
in interface XIdentityRequirement
public String getVisibility()
getVisibility
in interface XIdentityRequirement
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 © 2012 JBoss by Red Hat. All Rights Reserved.