Package org.nuxeo.ecm.core.storage.lock
Class LockManagerService.LockManagerDescriptorRegistry
- java.lang.Object
-
- org.nuxeo.runtime.model.ContributionFragmentRegistry<T>
-
- org.nuxeo.runtime.model.SimpleContributionRegistry<LockManagerDescriptor>
-
- org.nuxeo.ecm.core.storage.lock.LockManagerService.LockManagerDescriptorRegistry
-
- Enclosing class:
- LockManagerService
protected static class LockManagerService.LockManagerDescriptorRegistry extends SimpleContributionRegistry<LockManagerDescriptor>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuxeo.runtime.model.ContributionFragmentRegistry
ContributionFragmentRegistry.Fragment<T>, ContributionFragmentRegistry.FragmentList<T>
-
-
Field Summary
-
Fields inherited from class org.nuxeo.runtime.model.SimpleContributionRegistry
currentContribs
-
Fields inherited from class org.nuxeo.runtime.model.ContributionFragmentRegistry
contribs
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LockManagerDescriptorRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
LockManagerDescriptor
clone(LockManagerDescriptor orig)
CLone the given contribution objectString
getContributionId(LockManagerDescriptor contrib)
Returns the contribution ID given the contribution objectLockManagerDescriptor
getLockManagerDescriptor(String id)
boolean
isSupportingMerge()
Returns true if merge is supported.void
merge(LockManagerDescriptor src, LockManagerDescriptor dst)
Merge 'src' into 'dst'.-
Methods inherited from class org.nuxeo.runtime.model.SimpleContributionRegistry
contributionRemoved, contributionUpdated, getCurrentContribution
-
Methods inherited from class org.nuxeo.runtime.model.ContributionFragmentRegistry
addContribution, addFragment, getContribution, getFragments, removeContribution, removeContribution, removeFragment, toMap
-
-
-
-
Constructor Detail
-
LockManagerDescriptorRegistry
protected LockManagerDescriptorRegistry()
-
-
Method Detail
-
getContributionId
public String getContributionId(LockManagerDescriptor contrib)
Description copied from class:ContributionFragmentRegistry
Returns the contribution ID given the contribution object- Specified by:
getContributionId
in classContributionFragmentRegistry<LockManagerDescriptor>
-
clone
public LockManagerDescriptor clone(LockManagerDescriptor orig)
Description copied from class:ContributionFragmentRegistry
CLone the given contribution object- Overrides:
clone
in classSimpleContributionRegistry<LockManagerDescriptor>
-
merge
public void merge(LockManagerDescriptor src, LockManagerDescriptor dst)
Description copied from class:ContributionFragmentRegistry
Merge 'src' into 'dst'. When merging only the 'dst' object is modified.- Overrides:
merge
in classSimpleContributionRegistry<LockManagerDescriptor>
- Parameters:
src
- the object to copy over the 'dst' objectdst
- this object is modified
-
isSupportingMerge
public boolean isSupportingMerge()
Description copied from class:ContributionFragmentRegistry
Returns true if merge is supported.Hook method to be overridden if merge logics behind
Object.clone()
andContributionFragmentRegistry.merge(Object, Object)
cannot be implemented.- Overrides:
isSupportingMerge
in classSimpleContributionRegistry<LockManagerDescriptor>
-
clear
public void clear()
-
getLockManagerDescriptor
public LockManagerDescriptor getLockManagerDescriptor(String id)
-
-