public class DescriptorRegistry extends Object
It handles (un)registering and merged retrieval.
Merge algorithm depends on Descriptor
implementations.
Modifier and Type | Field and Description |
---|---|
protected Map<String,Map<String,Map<String,List<Descriptor>>>> |
descriptors |
Constructor and Description |
---|
DescriptorRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
<T extends Descriptor> |
getDescriptor(String target,
String xp,
String id) |
<T extends Descriptor> |
getDescriptors(String target,
String xp) |
protected <T extends Descriptor> |
merge(Collection<T> descriptors) |
boolean |
register(String target,
String xp,
Descriptor descriptor) |
boolean |
unregister(String target,
String xp,
Descriptor descriptor) |
protected Map<String,Map<String,Map<String,List<Descriptor>>>> descriptors
public DescriptorRegistry()
public <T extends Descriptor> T getDescriptor(String target, String xp, String id)
public <T extends Descriptor> List<T> getDescriptors(String target, String xp)
public boolean register(String target, String xp, Descriptor descriptor)
public boolean unregister(String target, String xp, Descriptor descriptor)
protected <T extends Descriptor> T merge(Collection<T> descriptors)
public void clear()
Copyright © 2019 Nuxeo. All rights reserved.