Class RenderingServiceImpl
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.ecm.platform.rendering.impl.RenderingServiceImpl
-
- All Implemented Interfaces:
RenderingService
,Adaptable
,Component
,Extensible
,TimestampedService
public class RenderingServiceImpl extends DefaultComponent implements RenderingService
Implementation of RenderingService- Author:
- Dragos Mihalache
-
-
Field Summary
Fields Modifier and Type Field Description static String
EP_RENDER_ENGINES
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description RenderingServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RenderingEngine
getEngine(String name)
Collection<RenderingResult>
process(RenderingContext renderingCtx)
Processes the given context and returns a collection of results.void
registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
void
registerEngine(RenderingEngine engine)
void
unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
void
unregisterEngine(String name)
-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, 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
applicationStarted, getApplicationStartedOrder
-
-
-
-
Field Detail
-
EP_RENDER_ENGINES
public static final String EP_RENDER_ENGINES
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
getEngine
public RenderingEngine getEngine(String name)
- Specified by:
getEngine
in interfaceRenderingService
-
process
public Collection<RenderingResult> process(RenderingContext renderingCtx) throws RenderingException
Description copied from interface:RenderingService
Processes the given context and returns a collection of results.- Specified by:
process
in interfaceRenderingService
- Parameters:
renderingCtx
- the context- Returns:
- the result
- Throws:
RenderingException
-
registerEngine
public void registerEngine(RenderingEngine engine)
- Specified by:
registerEngine
in interfaceRenderingService
-
unregisterEngine
public void unregisterEngine(String name)
- Specified by:
unregisterEngine
in interfaceRenderingService
-
-