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, validateAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAttachment, getAttachment, removeAttachment
getAttribute, getAttributes
getDirective, getDirectives
protected Set<String> getMandatoryAttributes()
getMandatoryAttributes
in class AbstractCapability
public String getSymbolicName()
getSymbolicName
in interface XIdentityCapability
public org.osgi.framework.Version getVersion()
getVersion
in interface XIdentityCapability
public String getType()
getType
in interface XIdentityCapability
public boolean isSingleton()
isSingleton
in interface XIdentityCapability
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.