Package org.dd4t.databind
Class DataBindFactory
- java.lang.Object
-
- org.dd4t.databind.DataBindFactory
-
@Deprecated public class DataBindFactory extends Object
Deprecated.Singleton entry point for all DD4T classes.This Factory Class will be removed in future versions. Use Spring configuration instead.
- Author:
- R. Kempees
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T extends org.dd4t.contentmodel.Component>
TbuildComponent(Object source, Class<T> aClass)Deprecated.static <T extends org.dd4t.contentmodel.ComponentPresentation>
TbuildDynamicComponentPresentation(String source, Class<T> aClass)Deprecated.static org.dd4t.contentmodel.ComponentPresentationbuildDynamicComponentPresentation(org.dd4t.contentmodel.ComponentPresentation componentPresentation, Class<? extends org.dd4t.contentmodel.Component> aClass)Deprecated.static <T extends org.dd4t.core.databind.BaseViewModel>
TbuildModel(Object rawData, Class<T> model, String currentTemplateUri)Deprecated.static <T extends org.dd4t.core.databind.BaseViewModel>
TbuildModel(Object rawData, String modelName, String currentTemplateUri)Deprecated.static Map<String,org.dd4t.core.databind.BaseViewModel>buildModels(Object rawData, Set<String> modelNames, String currentTemplateUri)Deprecated.static <T extends org.dd4t.contentmodel.Page>
TbuildPage(String source, Class<T> aClass)Deprecated.static booleanclassHasViewModelDerivatives(String className)Deprecated.static DataBindFactorycreateInstance(org.dd4t.core.databind.DataBinder binder)Deprecated.static StringfindComponentTemplateViewName(org.dd4t.contentmodel.ComponentTemplate template)Deprecated.static DataBindFactorygetInstance()Deprecated.static Class<? extends org.dd4t.core.databind.BaseViewModel>getModelClassesForInterfaceOrAbstractField(String className, String rootElementName)Deprecated.static StringgetRootElementName(Object componentNode)Deprecated.static booleanrenderDefaultComponentsIfNoModelFound()Deprecated.static booleanrenderGenericComponentsOnly()Deprecated.
-
-
-
Method Detail
-
createInstance
public static DataBindFactory createInstance(org.dd4t.core.databind.DataBinder binder)
Deprecated.
-
getInstance
public static DataBindFactory getInstance()
Deprecated.
-
buildPage
public static <T extends org.dd4t.contentmodel.Page> T buildPage(String source, Class<T> aClass) throws org.dd4t.core.exceptions.SerializationException
Deprecated.- Throws:
org.dd4t.core.exceptions.SerializationException
-
buildDynamicComponentPresentation
public static <T extends org.dd4t.contentmodel.ComponentPresentation> T buildDynamicComponentPresentation(String source, Class<T> aClass) throws org.dd4t.core.exceptions.SerializationException
Deprecated.- Throws:
org.dd4t.core.exceptions.SerializationException
-
buildDynamicComponentPresentation
@Deprecated public static org.dd4t.contentmodel.ComponentPresentation buildDynamicComponentPresentation(org.dd4t.contentmodel.ComponentPresentation componentPresentation, Class<? extends org.dd4t.contentmodel.Component> aClass) throws org.dd4t.core.exceptions.SerializationException
Deprecated.- Throws:
org.dd4t.core.exceptions.SerializationException
-
buildComponent
public static <T extends org.dd4t.contentmodel.Component> T buildComponent(Object source, Class<T> aClass) throws org.dd4t.core.exceptions.SerializationException
Deprecated.- Throws:
org.dd4t.core.exceptions.SerializationException
-
buildModels
public static Map<String,org.dd4t.core.databind.BaseViewModel> buildModels(Object rawData, Set<String> modelNames, String currentTemplateUri) throws org.dd4t.core.exceptions.SerializationException
Deprecated.- Throws:
org.dd4t.core.exceptions.SerializationException
-
buildModel
public static <T extends org.dd4t.core.databind.BaseViewModel> T buildModel(Object rawData, Class<T> model, String currentTemplateUri) throws org.dd4t.core.exceptions.SerializationException
Deprecated.- Throws:
org.dd4t.core.exceptions.SerializationException
-
buildModel
public static <T extends org.dd4t.core.databind.BaseViewModel> T buildModel(Object rawData, String modelName, String currentTemplateUri) throws org.dd4t.core.exceptions.SerializationException
Deprecated.- Throws:
org.dd4t.core.exceptions.SerializationException
-
findComponentTemplateViewName
public static String findComponentTemplateViewName(org.dd4t.contentmodel.ComponentTemplate template)
Deprecated.
-
getModelClassesForInterfaceOrAbstractField
public static Class<? extends org.dd4t.core.databind.BaseViewModel> getModelClassesForInterfaceOrAbstractField(String className, String rootElementName)
Deprecated.
-
classHasViewModelDerivatives
public static boolean classHasViewModelDerivatives(String className)
Deprecated.
-
renderGenericComponentsOnly
public static boolean renderGenericComponentsOnly()
Deprecated.
-
renderDefaultComponentsIfNoModelFound
public static boolean renderDefaultComponentsIfNoModelFound()
Deprecated.
-
-