Package org.nuxeo.template.jaxrs.context
Class ExtensionFactory
- java.lang.Object
-
- org.nuxeo.template.jaxrs.context.ExtensionFactory
-
- All Implemented Interfaces:
ContextExtensionFactory
public class ExtensionFactory extends Object implements ContextExtensionFactory
-
-
Constructor Summary
Constructors Constructor Description ExtensionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getExtension(DocumentModel doc, DocumentWrapper wrapper, Map<String,Object> ctx)
Called before redering to let you add objects inside the rendering context.
-
-
-
Method Detail
-
getExtension
public Object getExtension(DocumentModel doc, DocumentWrapper wrapper, Map<String,Object> ctx)
Description copied from interface:ContextExtensionFactory
Called before redering to let you add objects inside the rendering context.If the method returns an object, it will be automatically pushed inside the context using the name defined in the contribution.
you can also directly push in the provided ctx map
- Specified by:
getExtension
in interfaceContextExtensionFactory
-
-