public class ContributionImpl<K,T> extends Object implements Contribution<K,T>
Constructor and Description |
---|
ContributionImpl(AbstractContributionRegistry<K,T> reg,
K primaryKey) |
Modifier and Type | Method and Description |
---|---|
void |
addFragment(T fragment,
K... superKeys) |
boolean |
equals(Object obj) |
Set<Contribution<K,T>> |
getDependencies() |
Set<Contribution<K,T>> |
getDependents() |
T |
getFragment(int index) |
K |
getId() |
ContributionRegistry<K,T> |
getRegistry() |
Set<Contribution<K,T>> |
getUnresolvedDependencies() |
T |
getValue() |
boolean |
isEmpty() |
boolean |
isPhantom() |
boolean |
isRegistered() |
boolean |
isResolved() |
Iterator<T> |
iterator() |
boolean |
removeFragment(Object fragment) |
void |
resolve() |
int |
size() |
String |
toString() |
void |
unregister() |
void |
unresolve() |
public ContributionImpl(AbstractContributionRegistry<K,T> reg, K primaryKey)
public ContributionRegistry<K,T> getRegistry()
getRegistry
in interface Contribution<K,T>
public K getId()
getId
in interface Contribution<K,T>
public Set<Contribution<K,T>> getDependencies()
getDependencies
in interface Contribution<K,T>
public Set<Contribution<K,T>> getDependents()
getDependents
in interface Contribution<K,T>
public Set<Contribution<K,T>> getUnresolvedDependencies()
getUnresolvedDependencies
in interface Contribution<K,T>
public int size()
size
in interface Contribution<K,T>
public boolean isEmpty()
isEmpty
in interface Contribution<K,T>
public T getFragment(int index)
getFragment
in interface Contribution<K,T>
public boolean removeFragment(Object fragment)
removeFragment
in interface Contribution<K,T>
public void addFragment(T fragment, K... superKeys)
addFragment
in interface Contribution<K,T>
public T getValue()
getValue
in interface Contribution<K,T>
public boolean isPhantom()
isPhantom
in interface Contribution<K,T>
public boolean isResolved()
isResolved
in interface Contribution<K,T>
public boolean isRegistered()
isRegistered
in interface Contribution<K,T>
public void unregister()
unregister
in interface Contribution<K,T>
public void unresolve()
unresolve
in interface Contribution<K,T>
public void resolve()
resolve
in interface Contribution<K,T>
Copyright © 2011 Nuxeo SA. All Rights Reserved.