Class Mapper<S>


  • public class Mapper<S>
    extends java.lang.Object
    • Field Detail

      • debugEnabled

        private final boolean debugEnabled
      • structInterface

        private final java.lang.Class<S> structInterface
    • Constructor Detail

      • Mapper

        public Mapper​(java.lang.Class<S> structInterface,
                      boolean debugEnabled)
    • Method Detail

      • getSizeInBytes

        public int getSizeInBytes()
        Returns:
        the size that each message takes up in bytes
      • newFlyweight

        public <I> I newFlyweight​(java.lang.Class<I> implementationParent,
                                  java.lang.String templateFileName,
                                  java.lang.Object... args)
      • newFlyweight

        public <I> I newFlyweight​(java.lang.Class<I> implementationParent,
                                  java.lang.String templateFileName,
                                  Template template,
                                  java.lang.Object... args)
      • debugLogSource

        private void debugLogSource​(java.lang.String source)
      • instantiateImplementation

        private <I> I instantiateImplementation​(java.lang.Class<?>[] constructorParameterTypes,
                                                java.lang.String name,
                                                CompilationResult result,
                                                java.lang.Object[] args)
      • checkCompileFailures

        private void checkCompileFailures​(java.lang.String templateFile,
                                          CompilationResult result)
      • getTypes

        private java.lang.Class<?>[] getTypes​(java.lang.Object... args)