Class WebResourceManagerImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.web.resources.core.service.WebResourceManagerImpl
- All Implemented Interfaces:
WebResourceManager,Adaptable,Component,Extensible,TimestampedService
- Since:
- 7.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, ProcessorDescriptor> protected static final Stringprotected static final Stringprotected static final StringFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProcessor(String name) Returns the corresponding processor with given name, or null if not found.Returns all processors registered on the service, ordered.getProcessors(String type) Returns all processors registered on the service, ordered, for given type.getResource(String name) Returns a registered resource with given name, or null if not found.getResourceBundle(String name) Returns a registered resource bundle with given name, or null if not found.Returns all resource bundles registered on the service.getResources(ResourceContext context, String bundleName, String type) Returns the ordered list of resources for given bundle name, filtered using given type.getSubResources(org.codehaus.plexus.util.dag.DAG graph, Resource r, String type) voidregisterResource(Resource resource) Allows to dynamically register a resource.voidregisterResourceBundle(ResourceBundle bundle) Allows to dynamically register a bundle.voidstart(ComponentContext context) Start the component.voidstop(ComponentContext context) Stop the component.voidunregisterResource(Resource resource) Allows to dynamically unregister a resource.voidAllows to dynamically unregister a bundle.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrderMethods inherited from interface org.nuxeo.runtime.service.TimestampedService
getLastModified, setLastModified
-
Field Details
-
RESOURCES_ENDPOINT
- See Also:
-
RESOURCE_BUNDLES_ENDPOINT
- See Also:
-
PROCESSORS_ENDPOINT
- See Also:
-
processors
-
-
Constructor Details
-
WebResourceManagerImpl
public WebResourceManagerImpl()
-
-
Method Details
-
start
Description copied from interface:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
stop
Description copied from interface:ComponentStop the component.- Specified by:
stopin interfaceComponent- Overrides:
stopin classDefaultComponent
-
getResource
Description copied from interface:WebResourceManagerReturns a registered resource with given name, or null if not found.Referenced resource can either be a static resource or a style.
- Specified by:
getResourcein interfaceWebResourceManager
-
getResourceBundle
Description copied from interface:WebResourceManagerReturns a registered resource bundle with given name, or null if not found.- Specified by:
getResourceBundlein interfaceWebResourceManager
-
getResourceBundles
Description copied from interface:WebResourceManagerReturns all resource bundles registered on the service.- Specified by:
getResourceBundlesin interfaceWebResourceManager
-
getProcessor
Description copied from interface:WebResourceManagerReturns the corresponding processor with given name, or null if not found.- Specified by:
getProcessorin interfaceWebResourceManager
-
getProcessors
Description copied from interface:WebResourceManagerReturns all processors registered on the service, ordered.- Specified by:
getProcessorsin interfaceWebResourceManager
-
getProcessors
Description copied from interface:WebResourceManagerReturns all processors registered on the service, ordered, for given type.- Specified by:
getProcessorsin interfaceWebResourceManager
-
getResources
Description copied from interface:WebResourceManagerReturns the ordered list of resources for given bundle name, filtered using given type.- Specified by:
getResourcesin interfaceWebResourceManager
-
getSubResources
-
registerResourceBundle
Description copied from interface:WebResourceManagerAllows to dynamically register a bundle.- Specified by:
registerResourceBundlein interfaceWebResourceManager
-
unregisterResourceBundle
Description copied from interface:WebResourceManagerAllows to dynamically unregister a bundle.- Specified by:
unregisterResourceBundlein interfaceWebResourceManager
-
registerResource
Description copied from interface:WebResourceManagerAllows to dynamically register a resource.- Specified by:
registerResourcein interfaceWebResourceManager
-
unregisterResource
Description copied from interface:WebResourceManagerAllows to dynamically unregister a resource.- Specified by:
unregisterResourcein interfaceWebResourceManager
-