public class AbstractResource extends AbstractElement implements XResource
XResource
.XResource.State
CAPABILITY_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) |
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, removeAttachment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected void addCapability(org.osgi.resource.Capability cap)
protected void addRequirement(org.osgi.resource.Requirement req)
public Map<String,Object> getAttributes()
XAttributeSupport
getAttributes
in interface XAttributeSupport
public Object getAttribute(String key)
XAttributeSupport
getAttribute
in interface XAttributeSupport
public void setMutable(boolean flag)
XResource
setMutable
in interface XResource
public XResource.State getState()
XResource
public boolean isMutable()
XResource
public boolean isAbstract()
XResource
isAbstract
in interface XResource
public void ensureImmutable()
public void ensureMutable()
public XWiringSupport getWiringSupport()
XResource
XWiringSupport
associated with this resourcegetWiringSupport
in interface XResource
public XWiring getWiring(boolean checkEffective)
public void validate()
XResource
public List<org.osgi.resource.Capability> getCapabilities(String namespace)
getCapabilities
in interface org.osgi.resource.Resource
public List<org.osgi.resource.Requirement> getRequirements(String namespace)
getRequirements
in interface org.osgi.resource.Resource
public XIdentityCapability getIdentityCapability()
XResource
getIdentityCapability
in interface XResource
Copyright © 2013 JBoss by Red Hat. All rights reserved.