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, unregisterExtensionpublic 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 DefaultComponentExceptionpublic void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
unregisterContribution in class DefaultComponentExceptionpublic void registerResource(String shortName, String qualifiedName, Class<?> managementClass, Object instance)
registerResource in interface ResourcePublisherpublic void unregisterResource(String shortName, String qualifiedName)
unregisterResource in interface ResourcePublisherpublic void unregisterShortcut(String shortName)
public Set<String> getShortcutsName()
getShortcutsName in interface ResourcePublisherpublic Set<ObjectName> getResourcesName()
getResourcesName in interface ResourcePublishergetResourcesName in interface ResourcePublisherMBeanpublic ObjectName lookupName(String name)
lookupName in interface ResourcePublisherpublic void bindResources()
bindResources in interface ResourcePublisherMBeanpublic void unbindResources()
unbindResources in interface ResourcePublisherMBeanpublic void applicationStarted(ComponentContext context) throws Exception
ComponentapplicationStarted in interface ComponentapplicationStarted in class DefaultComponentExceptionpublic void activate(ComponentContext context) throws Exception
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextException - if an error occurs during activationpublic void deactivate(ComponentContext context)
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextpublic void bindResource(ObjectName name)
public void unbindResource(ObjectName name)
Copyright © 2012 Nuxeo SA. All Rights Reserved.