Class LocalResourceImpl
- java.lang.Object
-
- org.apache.felix.bundlerepository.impl.ResourceImpl
-
- org.apache.felix.bundlerepository.impl.LocalResourceImpl
-
- All Implemented Interfaces:
LocalResource
,Resource
,org.osgi.framework.BundleReference
public class LocalResourceImpl extends ResourceImpl implements LocalResource
-
-
Field Summary
Fields Modifier and Type Field Description private org.osgi.framework.Bundle
m_bundle
-
Fields inherited from interface org.apache.felix.bundlerepository.Resource
CATEGORY, COPYRIGHT, DESCRIPTION, DOCUMENTATION_URI, ID, JAVADOC_URI, LICENSE_URI, MANIFEST_VERSION, PRESENTATION_NAME, SIZE, SOURCE_URI, SYMBOLIC_NAME, URI, VERSION
-
-
Constructor Summary
Constructors Constructor Description LocalResourceImpl(org.osgi.framework.Bundle bundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
convertExportServiceToCapability(java.util.Dictionary dict, org.osgi.framework.Bundle bundle)
org.osgi.framework.Bundle
getBundle()
private void
initialize()
boolean
isLocal()
Returns whether this resource is a local one or not.java.lang.String
toString()
-
Methods inherited from class org.apache.felix.bundlerepository.impl.ResourceImpl
addCapability, addCategory, addRequire, equals, getCapabilities, getCategories, getId, getPresentationName, getProperties, getRepository, getRequirements, getSize, getSymbolicName, getURI, getVersion, hashCode, put, put, setRepository
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.felix.bundlerepository.Resource
getCapabilities, getCategories, getId, getPresentationName, getProperties, getRequirements, getSize, getSymbolicName, getURI, getVersion
-
-
-
-
Method Detail
-
isLocal
public boolean isLocal()
Description copied from interface:Resource
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.- Specified by:
isLocal
in interfaceResource
- Overrides:
isLocal
in classResourceImpl
-
getBundle
public org.osgi.framework.Bundle getBundle()
- Specified by:
getBundle
in interfaceorg.osgi.framework.BundleReference
-
initialize
private void initialize() throws org.osgi.framework.InvalidSyntaxException
- Throws:
org.osgi.framework.InvalidSyntaxException
-
convertExportServiceToCapability
private void convertExportServiceToCapability(java.util.Dictionary dict, org.osgi.framework.Bundle bundle)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classResourceImpl
-
-