Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.management
Class ResourcePublisherService

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by 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)

Field Summary
static String FACTORIES_EXT_KEY
           
static ComponentName NAME
           
static String SERVICES_EXT_KEY
           
static String SHORTCUTS_EXT_KEY
           
 
Constructor Summary
ResourcePublisherService()
           
 
Method Summary
 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)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
getAdapter, registerExtension, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ResourcePublisherService

public ResourcePublisherService()
Method Detail

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)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.