public class ResourcePublisherService extends DefaultComponent implements ResourcePublisher, ResourcePublisherMBean
| Modifier and Type | Class and Description |
|---|---|
protected class |
ResourcePublisherService.FactoriesRegistry |
protected class |
ResourcePublisherService.ResourcesRegistry |
protected class |
ResourcePublisherService.ShortcutsRegistry |
| Modifier and Type | Field and Description |
|---|---|
static String |
FACTORIES_EXT_KEY |
protected ResourcePublisherService.FactoriesRegistry |
factoriesRegistry |
static ComponentName |
NAME |
protected ResourcePublisherService.ResourcesRegistry |
resourcesRegistry |
protected ServerLocatorService |
serverLocatorService |
static String |
SERVICES_EXT_KEY |
static String |
SHORTCUTS_EXT_KEY |
protected ResourcePublisherService.ShortcutsRegistry |
shortcutsRegistry |
protected boolean |
started |
lastModified| Constructor and Description |
|---|
ResourcePublisherService() |
getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, 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
protected final ResourcePublisherService.ShortcutsRegistry shortcutsRegistry
protected final ResourcePublisherService.FactoriesRegistry factoriesRegistry
protected final ResourcePublisherService.ResourcesRegistry resourcesRegistry
protected ServerLocatorService serverLocatorService
protected boolean started
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 ResourcePublisherprotected void doBindResources()
public void bindResources()
bindResources in interface ResourcePublisherMBeanprotected void doUnbindResources()
public void unbindResources()
unbindResources in interface ResourcePublisherMBeanpublic void applicationStarted(ComponentContext context) throws Exception
applicationStarted in interface ComponentapplicationStarted in class DefaultComponentExceptionpublic void activate(ComponentContext context) throws Exception
activate in interface Componentactivate in class DefaultComponentExceptionpublic void deactivate(ComponentContext context)
deactivate in interface Componentdeactivate in class DefaultComponentpublic void bindResource(ObjectName name)
public void unbindResource(ObjectName name)
protected void bindForTest(MBeanServer server, ObjectName name, Object instance, Class<?> clazz) throws Exception
ExceptionCopyright © 2019 Nuxeo SA. All rights reserved.