public class AbstractResource extends AbstractElement implements XResource
XResource.| Constructor and Description |
|---|
AbstractResource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCapability(org.osgi.resource.Capability cap) |
protected void |
addRequirement(org.osgi.resource.Requirement req) |
void |
ensureImmutable() |
void |
ensureMutable() |
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) |
XWiringSupport |
getWiringSupport()
Get the
XWiringSupport associated with this resource |
boolean |
isFragment()
True if this resource is a fragment
|
boolean |
isMutable()
True if the resource is mutable
|
void |
setMutable(boolean flag)
Make the resource immutable
|
String |
toString() |
void |
validate()
Validate the resource
|
addAttachment, getAttachment, removeAttachmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttachment, getAttachment, removeAttachmentprotected void addCapability(org.osgi.resource.Capability cap)
protected void addRequirement(org.osgi.resource.Requirement req)
public void setMutable(boolean flag)
XResourcesetMutable in interface XResourcepublic boolean isMutable()
XResourcepublic void ensureImmutable()
public void ensureMutable()
public XWiringSupport getWiringSupport()
XResourceXWiringSupport associated with this resourcegetWiringSupport in interface XResourcepublic void validate()
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()
XResourcegetIdentityCapability in interface XResourcepublic boolean isFragment()
XResourceisFragment in interface XResourceCopyright © 2013 JBoss by Red Hat. All Rights Reserved.