Package org.nuxeo.runtime.model
Class DescriptorRegistry
- java.lang.Object
-
- org.nuxeo.runtime.model.DescriptorRegistry
-
public class DescriptorRegistry extends Object
Default generic descriptor registry.It handles (un)registering and merged retrieval.
Merge algorithm depends on
Descriptor
implementations.- Since:
- 10.3
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Map<String,Map<String,List<Descriptor>>>>
descriptors
-
Constructor Summary
Constructors Constructor Description DescriptorRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
<T extends Descriptor>
TgetDescriptor(String target, String xp, String id)
<T extends Descriptor>
List<T>getDescriptors(String target, String xp)
protected <T extends Descriptor>
Tmerge(Collection<T> descriptors)
boolean
register(String target, String xp, Descriptor descriptor)
boolean
unregister(String target, String xp, Descriptor descriptor)
-
-
-
Method Detail
-
getDescriptor
public <T extends Descriptor> T getDescriptor(String target, String xp, String id)
-
getDescriptors
public <T extends Descriptor> List<T> getDescriptors(String target, String xp)
-
register
public boolean register(String target, String xp, Descriptor descriptor)
-
unregister
public boolean unregister(String target, String xp, Descriptor descriptor)
-
merge
protected <T extends Descriptor> T merge(Collection<T> descriptors)
-
clear
public void clear()
-
-