public class AbstractIdentityCapability extends AbstractCapability implements XIdentityCapability
XIdentityCapability.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIdentityCapability(org.osgi.framework.resource.Resource brev,
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() |
String |
getType() |
org.osgi.framework.Version |
getVersion() |
boolean |
isSingleton() |
<T> T |
removeAttachment(Class<T> clazz)
Remove an attached object for a given key
|
getAttribute, getAttributes, getDirective, getDirectives, getNamespace, getResource, toString, validateAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttachment, getAttachment, removeAttachmentgetAttribute, getAttributesgetDirective, getDirectivesprotected Set<String> getMandatoryAttributes()
getMandatoryAttributes in class AbstractCapabilitypublic String getSymbolicName()
getSymbolicName in interface XIdentityCapabilitypublic org.osgi.framework.Version getVersion()
getVersion in interface XIdentityCapabilitypublic String getType()
getType in interface XIdentityCapabilitypublic boolean isSingleton()
isSingleton in interface XIdentityCapabilitypublic <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.