public class ExtensionFactory extends Object implements ContextExtensionFactory
| Constructor and Description |
|---|
ExtensionFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getExtension(DocumentModel doc,
DocumentWrapper wrapper,
Map<String,Object> ctx)
Called before redering to let you add objects inside the rendering context.
|
public ExtensionFactory()
public Object getExtension(DocumentModel doc, DocumentWrapper wrapper, Map<String,Object> ctx)
ContextExtensionFactoryIf 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
getExtension in interface ContextExtensionFactoryCopyright © 2016 Nuxeo SA. All rights reserved.