Package 

Class DataFormatFactory

  • All Implemented Interfaces:

    
    public final class DataFormatFactory
    
                        

    Simple factory that returns the DataFormat for the specified class.

    The DataFormat is cached to return only one per class and avoid IllegalArgumentException: DataFormat 'xxx' already exists.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static DataFormat getDataFormat(Object object) Static DataFormat loader for the specified class.
      static DataFormat getDataFormat(Class<out Object> clazz) Static DataFormat loader for the specified class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getDataFormat

         static DataFormat getDataFormat(Object object)

        Static DataFormat loader for the specified class.

        Parameters:
        object - the object you want the DataFormat for
      • getDataFormat

         static DataFormat getDataFormat(Class<out Object> clazz)

        Static DataFormat loader for the specified class.

        Parameters:
        clazz - the class you want the DataFormat for