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, validateAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisOptionaladdAttachment, getAttachment, removeAttachmentgetAttribute, getAttributesgetDirective, getDirectivesprotected Set<String> getMandatoryAttributes()
getMandatoryAttributes in class AbstractRequirementpublic String getSymbolicName()
getSymbolicName in interface XIdentityRequirementpublic org.jboss.osgi.metadata.VersionRange getVersionRange()
getVersionRange in interface XIdentityRequirementpublic String getVisibility()
getVisibility in interface XIdentityRequirementpublic boolean matches(org.osgi.framework.resource.Capability cap)
matches in interface org.osgi.framework.resource.Requirementmatches in class AbstractRequirementpublic <T> T addAttachment(Class<T> clazz, T value)
XAttachmentSupportaddAttachment in interface XAttachmentSupportclazz - key for the attachmentpublic <T> T getAttachment(Class<T> clazz)
XAttachmentSupportgetAttachment in interface XAttachmentSupportclazz - key for the attachmentpublic <T> T removeAttachment(Class<T> clazz)
XAttachmentSupportremoveAttachment in interface XAttachmentSupportclazz - key for the attachmentCopyright © 2012 JBoss by Red Hat. All Rights Reserved.