org.nuxeo.runtime.management
Class ResourcePublisherService
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.runtime.management.ResourcePublisherService
- All Implemented Interfaces:
- ResourcePublisher, ResourcePublisherMBean, Adaptable, Component, Extensible
public class ResourcePublisherService
- extends DefaultComponent
- implements ResourcePublisher, ResourcePublisherMBean
- Author:
- Stephane Lacoin (Nuxeo EP Software Engineer)
SERVICES_EXT_KEY
public static final String SERVICES_EXT_KEY
- See Also:
- Constant Field Values
FACTORIES_EXT_KEY
public static final String FACTORIES_EXT_KEY
- See Also:
- Constant Field Values
SHORTCUTS_EXT_KEY
public static final String SHORTCUTS_EXT_KEY
- See Also:
- Constant Field Values
NAME
public static final ComponentName NAME
ResourcePublisherService
public ResourcePublisherService()
registerContribution
public void registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
throws Exception
- Overrides:
registerContribution
in class DefaultComponent
- Throws:
Exception
unregisterContribution
public void unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor)
throws Exception
- Overrides:
unregisterContribution
in class DefaultComponent
- Throws:
Exception
registerResource
public void registerResource(String shortName,
String qualifiedName,
Class<?> managementClass,
Object instance)
- Specified by:
registerResource
in interface ResourcePublisher
unregisterResource
public void unregisterResource(String shortName,
String qualifiedName)
- Specified by:
unregisterResource
in interface ResourcePublisher
registerShortcut
public void registerShortcut(String shortName,
String qualifiedName)
unregisterShortcut
public void unregisterShortcut(String shortName)
getShortcutsName
public Set<String> getShortcutsName()
- Specified by:
getShortcutsName
in interface ResourcePublisher
getResourcesName
public Set<ObjectName> getResourcesName()
- Specified by:
getResourcesName
in interface ResourcePublisher
- Specified by:
getResourcesName
in interface ResourcePublisherMBean
lookupName
public ObjectName lookupName(String name)
- Specified by:
lookupName
in interface ResourcePublisher
bindResources
public void bindResources()
- Specified by:
bindResources
in interface ResourcePublisherMBean
unbindResources
public void unbindResources()
- Specified by:
unbindResources
in interface ResourcePublisherMBean
applicationStarted
public void applicationStarted(ComponentContext context)
throws Exception
- Description copied from interface:
Component
- Notify the component that Nuxeo Framework finished starting all Nuxeo
bundles.
- Specified by:
applicationStarted
in interface Component
- Overrides:
applicationStarted
in class DefaultComponent
- Throws:
Exception
activate
public void activate(ComponentContext context)
throws Exception
- Description copied from interface:
Component
- Activates the component.
This method is called by the runtime when a component is activated.
- Specified by:
activate
in interface Component
- Overrides:
activate
in class DefaultComponent
- Parameters:
context
- the runtime context
- Throws:
Exception
- if an error occurs during activation
deactivate
public void deactivate(ComponentContext context)
- Description copied from interface:
Component
- Deactivates the component.
This method is called by the runtime when a component is deactivated.
- Specified by:
deactivate
in interface Component
- Overrides:
deactivate
in class DefaultComponent
- Parameters:
context
- the runtime context
bindResource
public void bindResource(ObjectName name)
unbindResource
public void unbindResource(ObjectName name)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.