Class TranscoderFactory


  • public final class TranscoderFactory
    extends java.lang.Object
    Creates value transcoders and stores them in a static map.
    Author:
    Middleware Services
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static ValueTranscoder<?> createValueTranscoder​(java.lang.String type)
      Creates a value transcoder for the supplied type.
      static ValueTranscoder<?> getInstance​(java.lang.String type)
      Returns a value transcoder for the supplied type.
      • Methods inherited from class java.lang.Object

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

      • getInstance

        public static ValueTranscoder<?> getInstance​(java.lang.String type)
        Returns a value transcoder for the supplied type. If the type cannot be found it is instantiated and cached for future use.
        Parameters:
        type - of value transcoder
        Returns:
        value transcoder
      • createValueTranscoder

        protected static ValueTranscoder<?> createValueTranscoder​(java.lang.String type)
        Creates a value transcoder for the supplied type.
        Parameters:
        type - to create value transcoder for
        Returns:
        value transcoder
        Throws:
        java.lang.IllegalArgumentException - if the supplied type cannot be instantiated