Class LazyLocalResourceImpl

java.lang.Object
org.apache.felix.bundlerepository.impl.LazyLocalResourceImpl
All Implemented Interfaces:
LocalResource, Resource, org.osgi.framework.BundleReference

public class LazyLocalResourceImpl extends Object implements LocalResource
  • Method Details

    • 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 interface Resource
    • getBundle

      public org.osgi.framework.Bundle getBundle()
      Specified by:
      getBundle in interface org.osgi.framework.BundleReference
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getProperties

      public Map getProperties()
      Description copied from interface: Resource
      Get all resource properties
      Specified by:
      getProperties in interface Resource
      Returns:
    • getId

      public String getId()
      Description copied from interface: Resource
      Shortcut for {{getProperties().get(ID)}}
      Specified by:
      getId in interface Resource
      Returns:
    • getSymbolicName

      public String getSymbolicName()
      Description copied from interface: Resource
      Shortcut for {{getProperties().get(SYMBOLIC_NAME)}}
      Specified by:
      getSymbolicName in interface Resource
      Returns:
    • getVersion

      public org.osgi.framework.Version getVersion()
      Description copied from interface: Resource
      Shortcut for {{getProperties().get(VERSION)}}
      Specified by:
      getVersion in interface Resource
      Returns:
    • getPresentationName

      public String getPresentationName()
      Description copied from interface: Resource
      Shortcut for {{getProperties().get(PRESENTATION_NAME)}}
      Specified by:
      getPresentationName in interface Resource
      Returns:
    • getURI

      public String getURI()
      Description copied from interface: Resource
      Shortcut for {{getProperties().get(URI)}}
      Specified by:
      getURI in interface Resource
      Returns:
    • getSize

      public Long getSize()
      Description copied from interface: Resource
      Shortcut for {{getProperties().get(SIZE)}}
      Specified by:
      getSize in interface Resource
      Returns:
    • getCategories

      public String[] getCategories()
      Description copied from interface: Resource
      Retrieve this resource categories
      Specified by:
      getCategories in interface Resource
      Returns:
    • getCapabilities

      public Capability[] getCapabilities()
      Description copied from interface: Resource
      Retrieve the capabilities
      Specified by:
      getCapabilities in interface Resource
      Returns:
    • getRequirements

      public Requirement[] getRequirements()
      Description copied from interface: Resource
      Retrieve the requirements
      Specified by:
      getRequirements in interface Resource
      Returns: