public class AbstractResource extends AbstractElement implements XResource
XResource.XResource.StateCAPABILITY_TYPE_ATTRIBUTE, MAVEN_IDENTITY_NAMESPACE, MODULE_IDENTITY_NAMESPACE, RESOURCE_IDENTIFIER_KEY, TYPE_ABSTRACT, TYPE_BUNDLE, TYPE_FRAGMENT, TYPE_MAVEN, TYPE_MODULE, TYPE_UNKNOWN| 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() |
Object |
getAttribute(String key)
Get the value of the given attribute
|
Map<String,Object> |
getAttributes()
Get the attributes
|
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) |
XResource.State |
getState()
Get the current resource state
|
XWiring |
getWiring(boolean checkEffective)
Get the
XWiring associated with this resource |
XWiringSupport |
getWiringSupport()
Get the
XWiringSupport associated with this resource |
boolean |
isAbstract()
True if the resource is abstract
|
boolean |
isMutable()
True if the resource is mutable
|
void |
setMutable(boolean flag)
Make the resource immutable
|
String |
toString() |
void |
validate()
Validate the resource
|
getAttachment, putAttachment, removeAttachmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttachment, putAttachment, removeAttachmentprotected void addCapability(org.osgi.resource.Capability cap)
protected void addRequirement(org.osgi.resource.Requirement req)
public Map<String,Object> getAttributes()
XAttributeSupportgetAttributes in interface XAttributeSupportpublic Object getAttribute(String key)
XAttributeSupportgetAttribute in interface XAttributeSupportpublic void setMutable(boolean flag)
XResourcesetMutable in interface XResourcepublic XResource.State getState()
XResourcepublic boolean isMutable()
XResourcepublic boolean isAbstract()
XResourceisAbstract in interface XResourcepublic void ensureImmutable()
public void ensureMutable()
public XWiringSupport getWiringSupport()
XResourceXWiringSupport associated with this resourcegetWiringSupport in interface XResourcepublic XWiring getWiring(boolean checkEffective)
XResourceXWiring associated with this resourcepublic 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 XResourceCopyright © 2016 JBoss by Red Hat. All rights reserved.