Interface Resource
- All Known Subinterfaces:
LocalResource
- All Known Implementing Classes:
ConvertedResource, LazyLocalResourceImpl, LocalResourceImpl, ResourceImpl
public interface Resource
A resource is an abstraction of a downloadable thing, like a bundle.
Resources have capabilities and requirements. All a resource's requirements
must be satisfied before it can be installed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the capabilitiesString[]Retrieve this resource categoriesgetId()Shortcut for {{getProperties().get(ID)}}Shortcut for {{getProperties().get(PRESENTATION_NAME)}}Get all resource propertiesRetrieve the requirementsgetSize()Shortcut for {{getProperties().get(SIZE)}}Shortcut for {{getProperties().get(SYMBOLIC_NAME)}}getURI()Shortcut for {{getProperties().get(URI)}}org.osgi.framework.VersionShortcut for {{getProperties().get(VERSION)}}booleanisLocal()Returns whether this resource is a local one or not.
-
Field Details
-
LICENSE_URI
- See Also:
-
DESCRIPTION
- See Also:
-
DOCUMENTATION_URI
- See Also:
-
COPYRIGHT
- See Also:
-
SOURCE_URI
- See Also:
-
JAVADOC_URI
- See Also:
-
SYMBOLIC_NAME
- See Also:
-
PRESENTATION_NAME
- See Also:
-
ID
- See Also:
-
VERSION
- See Also:
-
URI
- See Also:
-
SIZE
- See Also:
-
CATEGORY
- See Also:
-
MANIFEST_VERSION
- See Also:
-
-
Method Details
-
getProperties
-
getId
-
getSymbolicName
-
getVersion
org.osgi.framework.Version getVersion()Shortcut for {{getProperties().get(VERSION)}}- Returns:
-
getPresentationName
-
getURI
-
getSize
-
getCategories
-
getCapabilities
-
getRequirements
-
isLocal
boolean isLocal()Returns whether this resource is a local one or not. Local resources are already available in the OSGi framework and thus will be preferred over other resources.
-