public interface TaskResource extends RegisteredResource
ResourceTransformer
and is now
about to be processed by an InstallTask
.Modifier and Type | Field and Description |
---|---|
static String |
ATTR_INSTALL_EXCLUDED
If this attribute is set and the resource has the state installed,
it actually means that this resource has been processed but not installed.
|
static String |
ATTR_INSTALL_INFO
Additional installation information in human readable format.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String key)
Get the value of an attribute.
|
ResourceState |
getState()
Get the current state of the resource.
|
Object |
getTemporaryAttribute(String key)
Get the value of a temporary attribute.
|
org.osgi.framework.Version |
getVersion()
Return the version of the artifact.
|
void |
setAttribute(String key,
Object value)
Set the value of an attribute.
|
void |
setTemporaryAttribute(String key,
Object value)
Set the value of a temporary attribute.
|
getDictionary, getDigest, getEntityId, getInputStream, getPriority, getScheme, getType, getURL
static final String ATTR_INSTALL_INFO
static final String ATTR_INSTALL_EXCLUDED
Object getAttribute(String key)
ResourceTransformer
or a InstallTask
for
processing.
Typical attributes are the bundle symbolic name or bundle version.key
- The name of the attributenull
void setAttribute(String key, Object value)
key
- The name of the attributevalue
- The attribute value or null
to remove it.ResourceState getState()
Object getTemporaryAttribute(String key)
key
- The name of the attributenull
void setTemporaryAttribute(String key, Object value)
key
- The name of the attributevalue
- The attribute value or null
to remove it.org.osgi.framework.Version getVersion()
null
Copyright © 2014 The Apache Software Foundation. All rights reserved.