com.cedarsoft.serialization.generator
Class Generator.AbstractGeneratorRunner<T extends com.cedarsoft.codegen.DecisionCallback>

java.lang.Object
  extended by com.cedarsoft.serialization.generator.Generator.AbstractGeneratorRunner<T>
All Implemented Interfaces:
com.cedarsoft.codegen.AbstractGenerator.Runner
Enclosing class:
Generator

public abstract static class Generator.AbstractGeneratorRunner<T extends com.cedarsoft.codegen.DecisionCallback>
extends java.lang.Object
implements com.cedarsoft.codegen.AbstractGenerator.Runner

Static inner class that is necessary due to ClassLoader issues. We want to be sure that everything works in the context off the APTClassLoader


Constructor Summary
Generator.AbstractGeneratorRunner()
           
 
Method Summary
protected abstract  T createDecisionCallback()
           
 void generate(com.cedarsoft.codegen.GeneratorConfiguration configuration)
           
protected abstract  AbstractGenerator<T> instantiateGenerator(com.cedarsoft.codegen.CodeGenerator serializerCodeGenerator)
           
protected abstract  AbstractGenerator<T> instantiateTestGenerator(com.cedarsoft.codegen.CodeGenerator testCodeGenerator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generator.AbstractGeneratorRunner

public Generator.AbstractGeneratorRunner()
Method Detail

generate

public void generate(@NotNull
                     com.cedarsoft.codegen.GeneratorConfiguration configuration)
              throws java.io.IOException,
                     com.sun.codemodel.JClassAlreadyExistsException
Specified by:
generate in interface com.cedarsoft.codegen.AbstractGenerator.Runner
Throws:
java.io.IOException
com.sun.codemodel.JClassAlreadyExistsException

createDecisionCallback

@NotNull
protected abstract T createDecisionCallback()

instantiateTestGenerator

@NotNull
protected abstract AbstractGenerator<T> instantiateTestGenerator(@NotNull
                                                                         com.cedarsoft.codegen.CodeGenerator testCodeGenerator)

instantiateGenerator

@NotNull
protected abstract AbstractGenerator<T> instantiateGenerator(@NotNull
                                                                     com.cedarsoft.codegen.CodeGenerator serializerCodeGenerator)


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.