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) throws Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic void deactivate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic void registerContribution(Object contrib, String xpoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contrib, String xpoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
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 © 2014 Nuxeo SA. All rights reserved.