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
Modifier and TypeFieldDescriptionprotected ProcessorRegistry
protected static final String
protected static final String
protected ResourceBundleRegistry
protected ResourceRegistry
protected static final String
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(ComponentContext context) Activates the component.protected void
computeResourceUri
(ResourceDescriptor resource, ComponentInstance contributor) getProcessor
(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) void
registerContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) void
registerResource
(Resource resource) Allows to dynamically register a resource.void
registerResourceBundle
(ResourceBundle bundle) Allows to dynamically register a bundle.void
unregisterContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) void
unregisterResource
(Resource resource) Allows to dynamically unregister a resource.void
Allows to dynamically unregister a bundle.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
Methods inherited from interface org.nuxeo.runtime.service.TimestampedService
getLastModified, setLastModified
-
Field Details
-
RESOURCES_ENDPOINT
- See Also:
-
resources
-
RESOURCE_BUNDLES_ENDPOINT
- See Also:
-
resourceBundles
-
PROCESSORS_ENDPOINT
- See Also:
-
processors
-
-
Constructor Details
-
WebResourceManagerImpl
public WebResourceManagerImpl()
-
-
Method Details
-
activate
Description copied from interface:Component
Activates the component.This method is called by the runtime when a component is activated.
- Specified by:
activate
in interfaceComponent
- Overrides:
activate
in classDefaultComponent
- Parameters:
context
- the runtime context
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContribution
in classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContribution
in classDefaultComponent
-
computeResourceUri
-
getResource
Description copied from interface:WebResourceManager
Returns a registered resource with given name, or null if not found.Referenced resource can either be a static resource or a style.
- Specified by:
getResource
in interfaceWebResourceManager
-
getResourceBundle
Description copied from interface:WebResourceManager
Returns a registered resource bundle with given name, or null if not found.- Specified by:
getResourceBundle
in interfaceWebResourceManager
-
getResourceBundles
Description copied from interface:WebResourceManager
Returns all resource bundles registered on the service.- Specified by:
getResourceBundles
in interfaceWebResourceManager
-
getProcessor
Description copied from interface:WebResourceManager
Returns the corresponding processor with given name, or null if not found.- Specified by:
getProcessor
in interfaceWebResourceManager
-
getProcessors
Description copied from interface:WebResourceManager
Returns all processors registered on the service, ordered.- Specified by:
getProcessors
in interfaceWebResourceManager
-
getProcessors
Description copied from interface:WebResourceManager
Returns all processors registered on the service, ordered, for given type.- Specified by:
getProcessors
in interfaceWebResourceManager
-
getResources
Description copied from interface:WebResourceManager
Returns the ordered list of resources for given bundle name, filtered using given type.- Specified by:
getResources
in interfaceWebResourceManager
-
getSubResources
-
registerResourceBundle
Description copied from interface:WebResourceManager
Allows to dynamically register a bundle.- Specified by:
registerResourceBundle
in interfaceWebResourceManager
-
unregisterResourceBundle
Description copied from interface:WebResourceManager
Allows to dynamically unregister a bundle.- Specified by:
unregisterResourceBundle
in interfaceWebResourceManager
-
registerResource
Description copied from interface:WebResourceManager
Allows to dynamically register a resource.- Specified by:
registerResource
in interfaceWebResourceManager
-
unregisterResource
Description copied from interface:WebResourceManager
Allows to dynamically unregister a resource.- Specified by:
unregisterResource
in interfaceWebResourceManager
-