Class CoreExtensionFactory
java.lang.Object
org.nuxeo.template.context.extensions.CoreExtensionFactory
- All Implemented Interfaces:
ContextExtensionFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetExtension
(DocumentModel currentDocument, DocumentWrapper wrapper, Map<String, Object> ctx) Called before redering to let you add objects inside the rendering context.
-
Constructor Details
-
CoreExtensionFactory
public CoreExtensionFactory()
-
-
Method Details
-
getExtension
public Object getExtension(DocumentModel currentDocument, 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
-