public class ResourcePublisherService extends DefaultComponent implements ResourcePublisher, ResourcePublisherMBean
Modifier and Type | Field and Description |
---|---|
static String |
FACTORIES_EXT_KEY |
static ComponentName |
NAME |
static String |
SERVICES_EXT_KEY |
static String |
SHORTCUTS_EXT_KEY |
Constructor and Description |
---|
ResourcePublisherService() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo
bundles.
|
void |
bindResource(ObjectName name) |
void |
bindResources() |
void |
deactivate(ComponentContext context)
Deactivates the component.
|
Set<ObjectName> |
getResourcesName() |
Set<String> |
getShortcutsName() |
ObjectName |
lookupName(String name) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
registerResource(String shortName,
String qualifiedName,
Class<?> managementClass,
Object instance) |
void |
registerShortcut(String shortName,
String qualifiedName) |
void |
unbindResource(ObjectName name) |
void |
unbindResources() |
void |
unregisterContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unregisterResource(String shortName,
String qualifiedName) |
void |
unregisterShortcut(String shortName) |
getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterExtension
public static final String SERVICES_EXT_KEY
public static final String FACTORIES_EXT_KEY
public static final String SHORTCUTS_EXT_KEY
public static final ComponentName NAME
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution
in class DefaultComponent
Exception
public void registerResource(String shortName, String qualifiedName, Class<?> managementClass, Object instance)
registerResource
in interface ResourcePublisher
public void unregisterResource(String shortName, String qualifiedName)
unregisterResource
in interface ResourcePublisher
public void unregisterShortcut(String shortName)
public Set<String> getShortcutsName()
getShortcutsName
in interface ResourcePublisher
public Set<ObjectName> getResourcesName()
getResourcesName
in interface ResourcePublisher
getResourcesName
in interface ResourcePublisherMBean
public ObjectName lookupName(String name)
lookupName
in interface ResourcePublisher
public void bindResources()
bindResources
in interface ResourcePublisherMBean
public void unbindResources()
unbindResources
in interface ResourcePublisherMBean
public void applicationStarted(ComponentContext context) throws Exception
Component
applicationStarted
in interface Component
applicationStarted
in class DefaultComponent
Exception
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)
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 bindResource(ObjectName name)
public void unbindResource(ObjectName name)
Copyright © 2013 Nuxeo SA. All Rights Reserved.