public class LazyLocalResourceImpl extends java.lang.Object implements LocalResource
| Modifier and Type | Field and Description |
|---|---|
private org.osgi.framework.Bundle |
m_bundle |
private org.apache.felix.utils.log.Logger |
m_logger |
private Resource |
m_resource |
CATEGORY, COPYRIGHT, DESCRIPTION, DOCUMENTATION_URI, ID, JAVADOC_URI, LICENSE_URI, MANIFEST_VERSION, PRESENTATION_NAME, SIZE, SOURCE_URI, SYMBOLIC_NAME, URI, VERSION| Constructor and Description |
|---|
LazyLocalResourceImpl(org.osgi.framework.Bundle bundle,
org.apache.felix.utils.log.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.Bundle |
getBundle() |
Capability[] |
getCapabilities()
Retrieve the capabilities
|
java.lang.String[] |
getCategories()
Retrieve this resource categories
|
java.lang.String |
getId()
Shortcut for {{getProperties().get(ID)}}
|
java.lang.String |
getPresentationName()
Shortcut for {{getProperties().get(PRESENTATION_NAME)}}
|
java.util.Map |
getProperties()
Get all resource properties
|
Requirement[] |
getRequirements()
Retrieve the requirements
|
private Resource |
getResource() |
java.lang.Long |
getSize()
Shortcut for {{getProperties().get(SIZE)}}
|
java.lang.String |
getSymbolicName()
Shortcut for {{getProperties().get(SYMBOLIC_NAME)}}
|
java.lang.String |
getURI()
Shortcut for {{getProperties().get(URI)}}
|
org.osgi.framework.Version |
getVersion()
Shortcut for {{getProperties().get(VERSION)}}
|
boolean |
isLocal()
Returns whether this resource is a local one or not.
|
java.lang.String |
toString() |
private final org.osgi.framework.Bundle m_bundle
private final org.apache.felix.utils.log.Logger m_logger
private volatile Resource m_resource
LazyLocalResourceImpl(org.osgi.framework.Bundle bundle,
org.apache.felix.utils.log.Logger logger)
public boolean isLocal()
Resourcepublic org.osgi.framework.Bundle getBundle()
getBundle in interface org.osgi.framework.BundleReferencepublic java.lang.String toString()
toString in class java.lang.Objectprivate final Resource getResource()
public java.util.Map getProperties()
ResourcegetProperties in interface Resourcepublic java.lang.String getId()
Resourcepublic java.lang.String getSymbolicName()
ResourcegetSymbolicName in interface Resourcepublic org.osgi.framework.Version getVersion()
ResourcegetVersion in interface Resourcepublic java.lang.String getPresentationName()
ResourcegetPresentationName in interface Resourcepublic java.lang.String getURI()
Resourcepublic java.lang.Long getSize()
Resourcepublic java.lang.String[] getCategories()
ResourcegetCategories in interface Resourcepublic Capability[] getCapabilities()
ResourcegetCapabilities in interface Resourcepublic Requirement[] getRequirements()
ResourcegetRequirements in interface Resource