@ProviderType public interface Resource extends RegisteredResource
| Modifier and Type | Method and Description |
|---|---|
@Nullable Object |
getAttribute(String key)
Get the value of an attribute.
|
@Nullable String |
getError()
In case the resource was not successfully processed this might expose the related error description
|
long |
getLastChange()
When did the last change happen?
|
ResourceState |
getState()
Get the current state of the resource.
|
@Nullable org.osgi.framework.Version |
getVersion()
Return the version of the artifact.
|
getDictionary, getDigest, getEntityId, getInputStream, getPriority, getScheme, getType, getURLResourceState getState()
@Nullable @Nullable String getError()
null@Nullable @Nullable org.osgi.framework.Version getVersion()
nulllong getLastChange()
@Nullable @Nullable Object getAttribute(String key)
ResourceTransformer or a InstallTask for
processing.key - The name of the attributenullCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.