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
FieldsModifier and TypeFieldDescription(package private) org.osgi.resource.Resource
byte[]
-
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 TypeMethodDescriptionprivate static PersistentResource.Attr
getAttributeAttr
(String key, Object value) List<org.osgi.resource.Capability>
Deprecated.private static PersistentResource.RCData
static PersistentResource.RCData
Deprecated.private static PersistentResource.Attr
getDirectiveAttr
(String key, String value) List<org.osgi.resource.Requirement>
Deprecated.org.osgi.resource.Resource
private static int
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
-
resource
transient org.osgi.resource.Resource resource -
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
-
getType
-
getDirectiveAttr
-
getAttributeAttr
-
getData
-
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.
-