Class BeanSourceFileProcessor


  • public class BeanSourceFileProcessor
    extends java.lang.Object
    • Field Detail

      • LOG

        protected static final org.apache.log4j.Logger LOG
    • Constructor Detail

      • BeanSourceFileProcessor

        public BeanSourceFileProcessor​(java.lang.String generateTargetDirName)
    • Method Detail

      • generateBeanSourceFile

        public void generateBeanSourceFile​(ClassNameAware bean,
                                           java.io.File velocityTemplateFile)
      • getFileFromClassName

        protected java.io.File getFileFromClassName​(java.lang.String className)
      • createVelocityContext

        protected org.apache.velocity.VelocityContext createVelocityContext​(ClassNameAware beanPrototype)
      • decorateVelocityContext

        protected org.apache.velocity.VelocityContext decorateVelocityContext​(org.apache.velocity.VelocityContext ctx,
                                                                              EnumPrototype bean)
      • decorateVelocityContext

        protected org.apache.velocity.VelocityContext decorateVelocityContext​(org.apache.velocity.VelocityContext ctx,
                                                                              BeanPrototype bean)
      • createImportList

        protected java.util.List<java.lang.String> createImportList​(BeanPrototype bean)