public interface XResource extends XElement, XAttributeSupport, org.osgi.resource.Resource
Resource
Modifier and Type | Interface and Description |
---|---|
static class |
XResource.State
The resource state in the
XEnvironment |
Modifier and Type | Field and Description |
---|---|
static String |
CAPABILITY_TYPE_ATTRIBUTE
The attribute on the
XIdentityCapability for the below types |
static String |
MAVEN_IDENTITY_NAMESPACE
Artifact coordinates may be defined by the simple groupId:artifactId:version form,
or the fully qualified form groupId:artifactId:type:version[:classifier]
|
static String |
MODULE_IDENTITY_NAMESPACE
Artifact coordinates are defined by
ModuleIdentifier |
static org.jboss.osgi.spi.AttachmentKey<Long> |
RESOURCE_IDENTIFIER_KEY
The id attachment key
|
static String |
TYPE_ABSTRACT |
static String |
TYPE_BUNDLE
Some predefined resource types
|
static String |
TYPE_FRAGMENT |
static String |
TYPE_MAVEN |
static String |
TYPE_MODULE |
static String |
TYPE_UNKNOWN |
Modifier and Type | Method and Description |
---|---|
XIdentityCapability |
getIdentityCapability()
Get the identity capability for this resource
|
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 mutable)
Make the resource immutable
|
void |
validate()
Validate the resource
|
getAttachment, putAttachment, removeAttachment
getAttribute, getAttributes
static final org.jboss.osgi.spi.AttachmentKey<Long> RESOURCE_IDENTIFIER_KEY
static final String MAVEN_IDENTITY_NAMESPACE
static final String MODULE_IDENTITY_NAMESPACE
ModuleIdentifier
static final String CAPABILITY_TYPE_ATTRIBUTE
XIdentityCapability
for the below typesstatic final String TYPE_BUNDLE
static final String TYPE_FRAGMENT
static final String TYPE_UNKNOWN
static final String TYPE_ABSTRACT
static final String TYPE_MODULE
static final String TYPE_MAVEN
XIdentityCapability getIdentityCapability()
void validate()
XResource.State getState()
boolean isMutable()
boolean isAbstract()
void setMutable(boolean mutable)
XWiringSupport getWiringSupport()
XWiringSupport
associated with this resourceXWiring getWiring(boolean checkEffective)
Copyright © 2013 JBoss by Red Hat. All rights reserved.