Class AbstractContributionRegistry<K,T>
java.lang.Object
org.nuxeo.runtime.contribution.impl.AbstractContributionRegistry<K,T>
- All Implemented Interfaces:
ContributionRegistry<K,T>
- Direct Known Subclasses:
LinkRegistry,TypeRegistry
public abstract class AbstractContributionRegistry<K,T>
extends Object
implements ContributionRegistry<K,T>
The parent provider is read only. It is never modified by the registry. It serves only to resolve dependencies. This
allows greater flexibility in managing dependencies. This registry may have a parent registry that can be used only
read only.
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<AbstractContributionRegistry<K, T>> protected final AbstractContributionRegistry<K, T> protected final Map<Object, Contribution<K, T>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionaddFragment(K key, T fragment, K... superKeys) protected voidapplyFragment(T object, T fragment) Applies fragment over the given object.protected voidapplySuperFragment(T object, T superFragment) protected abstract Tvoiddispose()voidfireResolved(Contribution<K, T> contrib) voidfireUnresolved(Contribution<K, T> contrib, T value) voidfireUpdated(T oldValue, Contribution<K, T> contrib) getContribution(K primaryKey) getOrCreateDependency(K key) protected voidimportContribution(Contribution<K, T> contrib) protected voidprotected abstract voidinstallContribution(K key, T object) protected booleanisMainFragment(T object) voidremoveContribution(K key) voidremoveFragment(K key, T fragment) protected abstract voiduninstallContribution(K key, T object) protected voidupdateContribution(K key, T object, T oldValue)
-
Field Details
-
registry
-
parent
-
listeners
-
-
Constructor Details
-
AbstractContributionRegistry
protected AbstractContributionRegistry() -
AbstractContributionRegistry
-
-
Method Details
-
getParent
- Specified by:
getParentin interfaceContributionRegistry<K,T>
-
importParentContributions
protected void importParentContributions() -
importContribution
-
getContribution
- Specified by:
getContributionin interfaceContributionRegistry<K,T>
-
getObject
-
removeContribution
- Specified by:
removeContributionin interfaceContributionRegistry<K,T>
-
removeFragment
- Specified by:
removeFragmentin interfaceContributionRegistry<K,T>
-
addFragment
- Specified by:
addFragmentin interfaceContributionRegistry<K,T>
-
getOrCreateDependency
-
fireUnresolved
-
fireResolved
-
fireUpdated
-
dispose
public void dispose()- Specified by:
disposein interfaceContributionRegistry<K,T>
-
clone
-
applyFragment
Applies fragment over the given object. -
applySuperFragment
-
installContribution
-
uninstallContribution
-
isMainFragment
-
updateContribution
-