|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.resolver.spi.AbstractCapability
org.jboss.osgi.resolver.spi.AbstractIdentityCapability
public class AbstractIdentityCapability
The abstract implementation of a XIdentityCapability.
| Constructor Summary | |
|---|---|
protected |
AbstractIdentityCapability(Resource resource,
Map<String,Object> atts,
Map<String,String> dirs)
|
| Method Summary | ||
|---|---|---|
|
addAttachment(Class<T> clazz,
T value)
Attach an arbirtary object with this element. |
|
|
getAttachment(Class<T> clazz)
Get the attached object for a given key |
|
protected Set<String> |
getMandatoryAttributes()
|
|
String |
getSymbolicName()
The symbolic name of this resource. |
|
String |
getType()
The resource type |
|
Version |
getVersion()
The version of this resource. |
|
boolean |
isSingleton()
A flag to indicate that this resource is a singleton |
|
|
removeAttachment(Class<T> clazz)
Remove an attached object for a given key |
|
| Methods inherited from class org.jboss.osgi.resolver.spi.AbstractCapability |
|---|
getAttribute, getAttributes, getDirective, getDirectives, getNamespace, getResource, toString, validateAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.osgi.resolver.XAttachmentSupport |
|---|
addAttachment, getAttachment, removeAttachment |
| Methods inherited from interface org.jboss.osgi.resolver.XAttributeSupport |
|---|
getAttribute, getAttributes |
| Methods inherited from interface org.jboss.osgi.resolver.XDirectiveSupport |
|---|
getDirective, getDirectives |
| Methods inherited from interface org.osgi.resource.Capability |
|---|
equals, getAttributes, getDirectives, getNamespace, getResource, hashCode |
| Constructor Detail |
|---|
protected AbstractIdentityCapability(Resource resource,
Map<String,Object> atts,
Map<String,String> dirs)
| Method Detail |
|---|
protected Set<String> getMandatoryAttributes()
getMandatoryAttributes in class AbstractCapabilitypublic String getSymbolicName()
XIdentityCapability
getSymbolicName in interface XIdentityCapabilitypublic Version getVersion()
XIdentityCapability
getVersion in interface XIdentityCapabilitypublic String getType()
XIdentityCapability
getType in interface XIdentityCapabilityIdentityNamespace.CAPABILITY_TYPE_ATTRIBUTEpublic boolean isSingleton()
XIdentityCapability
isSingleton in interface XIdentityCapability
public <T> T addAttachment(Class<T> clazz,
T value)
XAttachmentSupport
addAttachment in interface XAttachmentSupportclazz - key for the attachment
public <T> T getAttachment(Class<T> clazz)
XAttachmentSupport
getAttachment in interface XAttachmentSupportclazz - key for the attachment
public <T> T removeAttachment(Class<T> clazz)
XAttachmentSupport
removeAttachment in interface XAttachmentSupportclazz - key for the attachment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||