Interface Resource

    • Method Detail

      • getProperties

        java.util.Map getProperties()
        Get all resource properties
        Returns:
      • getId

        java.lang.String getId()
        Shortcut for {{getProperties().get(ID)}}
        Returns:
      • getSymbolicName

        java.lang.String getSymbolicName()
        Shortcut for {{getProperties().get(SYMBOLIC_NAME)}}
        Returns:
      • getVersion

        org.osgi.framework.Version getVersion()
        Shortcut for {{getProperties().get(VERSION)}}
        Returns:
      • getPresentationName

        java.lang.String getPresentationName()
        Shortcut for {{getProperties().get(PRESENTATION_NAME)}}
        Returns:
      • getURI

        java.lang.String getURI()
        Shortcut for {{getProperties().get(URI)}}
        Returns:
      • getSize

        java.lang.Long getSize()
        Shortcut for {{getProperties().get(SIZE)}}
        Returns:
      • getCategories

        java.lang.String[] getCategories()
        Retrieve this resource categories
        Returns:
      • getCapabilities

        Capability[] getCapabilities()
        Retrieve the capabilities
        Returns:
      • getRequirements

        Requirement[] getRequirements()
        Retrieve the requirements
        Returns:
      • 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.