Package org.nuxeo.template.api.context
Interface ContextExtensionFactory
-
- All Known Implementing Classes:
AuditExtensionFactory
,CoreExtensionFactory
,ExtensionFactory
,FunctionsExtensionFactory
public interface ContextExtensionFactory
Factory used to register new Context Extensions The resturned Object will be directly accessible inside the Rendering context- Author:
- Tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getExtension(DocumentModel currentDocument, DocumentWrapper wrapper, Map<String,Object> ctx)
Called before redering to let you add objects inside the rendering context.
-
-
-
Method Detail
-
getExtension
Object getExtension(DocumentModel currentDocument, DocumentWrapper wrapper, Map<String,Object> ctx)
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
-
-