Package org.nuxeo.ecm.automation.context
Class ContextHelperRegistry
- java.lang.Object
-
- org.nuxeo.runtime.model.ContributionFragmentRegistry<T>
-
- org.nuxeo.runtime.model.SimpleContributionRegistry<ContextHelperDescriptor>
-
- org.nuxeo.ecm.automation.context.ContextHelperRegistry
-
public class ContextHelperRegistry extends SimpleContributionRegistry<ContextHelperDescriptor>
Registry forContextHelperDescriptor
descriptors.- Since:
- 7.3
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuxeo.runtime.model.ContributionFragmentRegistry
ContributionFragmentRegistry.Fragment<T>, ContributionFragmentRegistry.FragmentList<T>
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
RESERVED_VAR_NAMES
-
Fields inherited from class org.nuxeo.runtime.model.SimpleContributionRegistry
currentContribs
-
Fields inherited from class org.nuxeo.runtime.model.ContributionFragmentRegistry
contribs
-
-
Constructor Summary
Constructors Constructor Description ContextHelperRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContribution(ContextHelperDescriptor contextHelperDescriptor)
Add a new contribution.Map<String,ContextHelperDescriptor>
getContextHelperDescriptors()
String
getContributionId(ContextHelperDescriptor metadataMappingDescriptor)
Returns the contribution ID given the contribution object-
Methods inherited from class org.nuxeo.runtime.model.SimpleContributionRegistry
clone, contributionRemoved, contributionUpdated, getCurrentContribution, isSupportingMerge, merge
-
Methods inherited from class org.nuxeo.runtime.model.ContributionFragmentRegistry
addFragment, getContribution, getFragments, removeContribution, removeContribution, removeFragment, toMap
-
-
-
-
Field Detail
-
RESERVED_VAR_NAMES
public static final String[] RESERVED_VAR_NAMES
-
-
Method Detail
-
addContribution
public void addContribution(ContextHelperDescriptor contextHelperDescriptor)
Description copied from class:ContributionFragmentRegistry
Add a new contribution. This will start install the new contribution and will notify the implementation about the value to add. (the final value to add may not be the same object as the one added - but a merge between multiple contributions)- Overrides:
addContribution
in classContributionFragmentRegistry<ContextHelperDescriptor>
-
getContributionId
public String getContributionId(ContextHelperDescriptor metadataMappingDescriptor)
Description copied from class:ContributionFragmentRegistry
Returns the contribution ID given the contribution object- Specified by:
getContributionId
in classContributionFragmentRegistry<ContextHelperDescriptor>
-
getContextHelperDescriptors
public Map<String,ContextHelperDescriptor> getContextHelperDescriptors()
-
-