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 ProcessorRegistryprotected static final Stringprotected static final Stringprotected ResourceBundleRegistryprotected ResourceRegistryprotected static final StringFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(ComponentContext context) Activates the component.protected voidcomputeResourceUri(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) voidregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) voidregisterResource(Resource resource) Allows to dynamically register a resource.voidregisterResourceBundle(ResourceBundle bundle) Allows to dynamically register a bundle.voidunregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) voidunregisterResource(Resource resource) Allows to dynamically unregister a resource.voidAllows 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, 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:
-
resources
-
RESOURCE_BUNDLES_ENDPOINT
- See Also:
-
resourceBundles
-
PROCESSORS_ENDPOINT
- See Also:
-
processors
-
-
Constructor Details
-
WebResourceManagerImpl
public WebResourceManagerImpl()
-
-
Method Details
-
activate
Description copied from interface:ComponentActivates the component.This method is called by the runtime when a component is activated.
- Specified by:
activatein interfaceComponent- Overrides:
activatein classDefaultComponent- Parameters:
context- the runtime context
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContributionin classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContributionin classDefaultComponent
-
computeResourceUri
-
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
-