public class TemplateAdapterFactory extends Object implements DocumentAdapterFactory
DocumentAdapterFactory
used to return the right TemplateBasedDocument
or
TemplateSourceDocument
implementation according to given DocumentModel
.Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
TemplateAdapterFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
getAdapter(DocumentModel doc,
Class adapterClass) |
static boolean |
isAdaptable(DocumentModel doc,
Class<?> adapterClass)
Checks if the document can be adapted.
|
protected static final org.apache.commons.logging.Log log
public TemplateAdapterFactory()
public static boolean isAdaptable(DocumentModel doc, Class<?> adapterClass)
public Object getAdapter(DocumentModel doc, Class adapterClass)
getAdapter
in interface DocumentAdapterFactory
Copyright © 2017 Nuxeo. All rights reserved.