|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.resolver.spi.AbstractResource
public class AbstractResource
The abstract implementation of an XResource.
| Constructor Summary | |
|---|---|
AbstractResource()
|
|
| Method Summary | ||
|---|---|---|
|
addAttachment(Class<T> clazz,
T value)
Attach an arbirtary object with this element. |
|
protected void |
addCapability(org.osgi.resource.Capability cap)
|
|
protected void |
addRequirement(org.osgi.resource.Requirement req)
|
|
|
getAttachment(Class<T> clazz)
Get the attached object for a given key |
|
List<org.osgi.resource.Capability> |
getCapabilities(String namespace)
|
|
XIdentityCapability |
getIdentityCapability()
Get the identity capability for this resource |
|
List<org.osgi.resource.Requirement> |
getRequirements(String namespace)
|
|
boolean |
isFragment()
True if this resource is a fragment |
|
boolean |
isMutable()
True if the resource is mutable |
|
void |
makeImmutable()
Make the resource immutable |
|
|
removeAttachment(Class<T> clazz)
Remove an attached object for a given key |
|
String |
toString()
|
|
void |
validate()
Validate the resource |
|
| 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.osgi.resource.Resource |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public AbstractResource()
| Method Detail |
|---|
protected void addCapability(org.osgi.resource.Capability cap)
protected void addRequirement(org.osgi.resource.Requirement req)
public void makeImmutable()
XResource
makeImmutable in interface XResourcepublic boolean isMutable()
XResource
isMutable in interface XResourcepublic void validate()
XResource
validate in interface XResourcepublic List<org.osgi.resource.Capability> getCapabilities(String namespace)
getCapabilities in interface org.osgi.resource.Resourcepublic List<org.osgi.resource.Requirement> getRequirements(String namespace)
getRequirements in interface org.osgi.resource.Resourcepublic XIdentityCapability getIdentityCapability()
XResource
getIdentityCapability in interface XResourcepublic boolean isFragment()
XResource
isFragment in interface XResourcepublic String toString()
toString in class Object
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 | |||||||||