Package org.jctools.channels.mapping
Class Mapper<S>
- java.lang.Object
-
- org.jctools.channels.mapping.Mapper<S>
-
public class Mapper<S> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private SimpleCompiler
compiler
private boolean
debugEnabled
private TypeInspector
inspector
private java.lang.Class<S>
structInterface
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkCompileFailures(java.lang.String templateFile, CompilationResult result)
private void
debugLogSource(java.lang.String source)
int
getSizeInBytes()
private java.lang.Class<?>[]
getTypes(java.lang.Object... args)
private <I> I
instantiateImplementation(java.lang.Class<?>[] constructorParameterTypes, java.lang.String name, CompilationResult result, java.lang.Object[] args)
<I> I
newFlyweight(java.lang.Class<I> implementationParent, java.lang.String templateFileName, java.lang.Object... args)
<I> I
newFlyweight(java.lang.Class<I> implementationParent, java.lang.String templateFileName, Template template, java.lang.Object... args)
-
-
-
Field Detail
-
debugEnabled
private final boolean debugEnabled
-
inspector
private final TypeInspector inspector
-
structInterface
private final java.lang.Class<S> structInterface
-
compiler
private final SimpleCompiler compiler
-
-
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)
-
-