|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectaQute.bnd.util.dto.DTO
aQute.bnd.osgi.resource.PersistentResource
public class PersistentResource
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 | |
|---|---|
static class |
PersistentResource.Attr
|
static class |
PersistentResource.DataType
|
static class |
PersistentResource.Namespace
|
class |
PersistentResource.RC
Deprecated. |
static class |
PersistentResource.RCData
|
| Field Summary | |
|---|---|
PersistentResource.Namespace[] |
namespaces
|
byte[] |
sha
|
| Constructor Summary | |
|---|---|
PersistentResource()
|
|
PersistentResource(byte[] digest,
List<Capability> caps,
List<Requirement> reqs)
Deprecated. |
|
PersistentResource(Resource resource)
|
|
| Method Summary | |
|---|---|
List<Capability> |
getCapabilities(String ns)
Deprecated. |
static PersistentResource.RCData |
getData(Map<String,Object> attributes,
Map<String,String> directives)
Deprecated. |
List<Requirement> |
getRequirements(String ns)
Deprecated. |
Resource |
getResource()
|
String |
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 Detail |
|---|
public PersistentResource.Namespace[] namespaces
public byte[] sha
| Constructor Detail |
|---|
public PersistentResource()
public PersistentResource(Resource resource)
@Deprecated
public PersistentResource(byte[] digest,
List<Capability> caps,
List<Requirement> reqs)
| Method Detail |
|---|
public Resource getResource()
public String toString()
DTOThe format of the string representation is not specified and subject to change.
toString in class DTO@Deprecated public List<Capability> getCapabilities(String ns)
Resource
getCapabilities in interface Resourcens - The namespace of the declared capabilities to return or
null to return the declared capabilities from all
namespaces.
Capabilitys
from the specified namespace. The returned list will be empty if
this resource declares no capabilities in the specified
namespace.@Deprecated public List<Requirement> getRequirements(String ns)
Resource
getRequirements in interface Resourcens - The namespace of the declared requirements to return or
null to return the declared requirements from all
namespaces.
Requirement
s from the specified namespace. The returned list will be empty
if this resource declares no requirements in the specified
namespace.
@Deprecated
public static PersistentResource.RCData getData(Map<String,Object> attributes,
Map<String,String> directives)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||