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

java.lang.Object
  extended by com.cedarsoft.serialization.generator.common.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 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(@Nonnull
                     com.cedarsoft.codegen.GeneratorConfiguration configuration)
              throws IOException,
                     com.sun.codemodel.JClassAlreadyExistsException
Specified by:
generate in interface com.cedarsoft.codegen.AbstractGenerator.Runner
Throws:
IOException
com.sun.codemodel.JClassAlreadyExistsException

createDecisionCallback

@Nonnull
protected abstract T createDecisionCallback()

instantiateTestGenerator

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

instantiateGenerator

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


Copyright © 2012 cedarsoft GmbH. All Rights Reserved.