Class PersistentResource
java.lang.Object
aQute.bnd.util.dto.DTO
aQute.bnd.osgi.resource.PersistentResource
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic classclassDeprecated.static class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPersistentResource(byte[] digest, List<org.osgi.resource.Capability> caps, List<org.osgi.resource.Requirement> reqs) Deprecated.PersistentResource(org.osgi.resource.Resource resource) -
Method Summary
Modifier and TypeMethodDescriptionList<org.osgi.resource.Capability> Deprecated.static PersistentResource.RCDataDeprecated.List<org.osgi.resource.Requirement> Deprecated.org.osgi.resource.ResourcetoString()Return a string representation of this DTO suitable for use when debugging.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.osgi.resource.Resource
equals, hashCode
-
Field Details
-
namespaces
-
sha
public byte[] sha
-
-
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
-
toString
Description copied from class:DTOReturn a string representation of this DTO suitable for use when debugging.The format of the string representation is not specified and subject to change.
-
getCapabilities
Deprecated.- Specified by:
getCapabilitiesin interfaceorg.osgi.resource.Resource
-
getRequirements
Deprecated.- Specified by:
getRequirementsin interfaceorg.osgi.resource.Resource
-
getData
@Deprecated public static PersistentResource.RCData getData(Map<String, Object> attributes, Map<String, String> directives) Deprecated.
-