Class ContributionImpl<K,T>
java.lang.Object
org.nuxeo.runtime.contribution.impl.ContributionImpl<K,T>
- All Implemented Interfaces:
Iterable<T>,Contribution<K,T>
- Author:
- Bogdan Stefanescu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Set<Contribution<K, T>> protected final Set<Contribution<K, T>> protected booleanprotected final Kprotected final AbstractContributionRegistry<K, T> protected T -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFragment(T fragment, K... superKeys) protected booleanbooleanSet<Contribution<K, T>> Set<Contribution<K, T>> getFragment(int index) getId()Set<Contribution<K, T>> getValue()inthashCode()booleanisEmpty()booleanbooleanbooleaniterator()booleanremoveFragment(Object fragment) voidresolve()intsize()toString()voidvoidprotected voidupdate()Called each time a fragment is added or removed to update resolved state and to fire update notifications to the registry owning that contributionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
registry
-
-
mainFragments
-
fragments
-
dependencies
-
dependents
-
value
-
isResolved
protected boolean isResolved
-
-
Constructor Details
-
ContributionImpl
-
-
Method Details
-
getRegistry
- Specified by:
getRegistryin interfaceContribution<K,T>
-
getId
- Specified by:
getIdin interfaceContribution<K,T> - Returns:
- the primaryKey.
-
iterator
-
getDependencies
- Specified by:
getDependenciesin interfaceContribution<K,T>
-
getDependents
- Specified by:
getDependentsin interfaceContribution<K,T>
-
getUnresolvedDependencies
- Specified by:
getUnresolvedDependenciesin interfaceContribution<K,T>
-
checkIsResolved
protected boolean checkIsResolved() -
size
public int size()- Specified by:
sizein interfaceContribution<K,T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceContribution<K,T>
-
getFragment
- Specified by:
getFragmentin interfaceContribution<K,T>
-
removeFragment
- Specified by:
removeFragmentin interfaceContribution<K,T>
-
addFragment
- Specified by:
addFragmentin interfaceContribution<K,T>
-
getValue
- Specified by:
getValuein interfaceContribution<K,T>
-
isPhantom
public boolean isPhantom()- Specified by:
isPhantomin interfaceContribution<K,T>
-
isResolved
public boolean isResolved()- Specified by:
isResolvedin interfaceContribution<K,T>
-
isRegistered
public boolean isRegistered()- Specified by:
isRegisteredin interfaceContribution<K,T>
-
update
protected void update()Called each time a fragment is added or removed to update resolved state and to fire update notifications to the registry owning that contribution -
unregister
public void unregister()- Specified by:
unregisterin interfaceContribution<K,T>
-
unresolve
public void unresolve()- Specified by:
unresolvein interfaceContribution<K,T>
-
resolve
public void resolve()- Specified by:
resolvein interfaceContribution<K,T>
-
hashCode
public int hashCode() -
equals
-
toString
-