Package org.nuxeo.template.adapters
Class TemplateAdapterFactory
java.lang.Object
org.nuxeo.template.adapters.TemplateAdapterFactory
- All Implemented Interfaces:
DocumentAdapterFactory
Pluggable
DocumentAdapterFactory used to return the right TemplateBasedDocument or
TemplateSourceDocument implementation according to given DocumentModel.- Author:
- Tiry ([email protected])
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdapter(DocumentModel doc, Class adapterClass) static booleanisAdaptable(DocumentModel doc, Class<?> adapterClass) Checks if the document can be adapted.
-
Constructor Details
-
TemplateAdapterFactory
public TemplateAdapterFactory()
-
-
Method Details
-
isAdaptable
Checks if the document can be adapted. Also works on a ShallowDocumentModel. -
getAdapter
- Specified by:
getAdapterin interfaceDocumentAdapterFactory
-