Class PersistentResource

java.lang.Object
aQute.bnd.util.dto.DTO
aQute.bnd.osgi.resource.PersistentResource
All Implemented Interfaces:
org.osgi.resource.Resource

public class PersistentResource extends DTO implements org.osgi.resource.Resource
This class provides an efficient way to store a resource through JSON serialization. It stores the requirements and provides in a structure of Resource 1 -> * Namespace 1 -> * Req/Cap. It optimizes
  • Field Details

  • Constructor Details

    • PersistentResource

      public PersistentResource()
    • PersistentResource

      public PersistentResource(org.osgi.resource.Resource resource)
    • PersistentResource

      @Deprecated public PersistentResource(byte[] digest, List<org.osgi.resource.Capability> caps, List<org.osgi.resource.Requirement> reqs)
      Deprecated.
  • Method Details

    • getResource

      public org.osgi.resource.Resource getResource() throws Exception
      Throws:
      Exception
    • toString

      public String toString()
      Description copied from class: DTO
      Return a string representation of this DTO suitable for use when debugging.

      The format of the string representation is not specified and subject to change.

      Overrides:
      toString in class DTO
      Returns:
      A string representation of this DTO suitable for use when debugging.
    • getCapabilities

      @Deprecated public List<org.osgi.resource.Capability> getCapabilities(String ns)
      Deprecated.
      Specified by:
      getCapabilities in interface org.osgi.resource.Resource
    • getRequirements

      @Deprecated public List<org.osgi.resource.Requirement> getRequirements(String ns)
      Deprecated.
      Specified by:
      getRequirements in interface org.osgi.resource.Resource
    • getData

      @Deprecated public static PersistentResource.RCData getData(Map<String,Object> attributes, Map<String,String> directives)
      Deprecated.