Package aQute.bnd.osgi.resource
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 class
static enum
static class
class
Deprecated.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.RCData
Deprecated.List
<org.osgi.resource.Requirement> Deprecated.org.osgi.resource.Resource
toString()
Return a string representation of this DTO suitable for use when debugging.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
- Throws:
Exception
-
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.
-
getCapabilities
Deprecated.- Specified by:
getCapabilities
in interfaceorg.osgi.resource.Resource
-
getRequirements
Deprecated.- Specified by:
getRequirements
in interfaceorg.osgi.resource.Resource
-
getData
@Deprecated public static PersistentResource.RCData getData(Map<String, Object> attributes, Map<String, String> directives) Deprecated.
-