Class BeanSourceFileProcessor
- java.lang.Object
-
- de.hybris.bootstrap.beangenerator.BeanSourceFileProcessor
-
public class BeanSourceFileProcessor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.log4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description BeanSourceFileProcessor(java.lang.String generateTargetDirName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<EnumValue>createEnumValues(EnumPrototype bean)protected java.util.List<java.lang.String>createImportList(BeanPrototype bean)protected java.util.List<MemberVariable>createMemberVariables(BeanPrototype bean, java.util.Collection<PropertyPrototype> properties)protected org.apache.velocity.VelocityContextcreateVelocityContext(ClassNameAware beanPrototype)protected org.apache.velocity.VelocityContextdecorateVelocityContext(org.apache.velocity.VelocityContext ctx, BeanPrototype bean)protected org.apache.velocity.VelocityContextdecorateVelocityContext(org.apache.velocity.VelocityContext ctx, EnumPrototype bean)voidgenerateBeanSourceFile(ClassNameAware bean, java.io.File velocityTemplateFile)protected java.io.FilegetFileFromClassName(java.lang.String className)
-
-
-
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)
-
createMemberVariables
protected java.util.List<MemberVariable> createMemberVariables(BeanPrototype bean, java.util.Collection<PropertyPrototype> properties)
-
createEnumValues
protected java.util.List<EnumValue> createEnumValues(EnumPrototype bean)
-
createImportList
protected java.util.List<java.lang.String> createImportList(BeanPrototype bean)
-
-