public class LockManagerService extends DefaultComponent
Actual instantiation is done by storage backends.
Constructor and Description |
---|
LockManagerService() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
LockManager |
getLockManager(String name)
Returns the lock manager registered with the given name.
|
void |
registerContribution(Object contrib,
String xpoint,
ComponentInstance contributor) |
void |
registerLockManager(String name,
LockManager lockManager) |
void |
unregisterContribution(Object contrib,
String xpoint,
ComponentInstance contributor) |
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic void registerContribution(Object contrib, String xpoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contrib, String xpoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public LockManager getLockManager(String name)
Lazily constructs it if needed.
name
- the lock manager namenull
if none is registeredpublic void registerLockManager(String name, LockManager lockManager)
Copyright © 2015 Nuxeo SA. All rights reserved.