Class 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 Detail

      • createInstance

        public static DataBindFactory createInstance​(org.dd4t.core.databind.DataBinder binder)
        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.
      • getRootElementName

        public static String getRootElementName​(Object componentNode)
        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.