Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

This is a basic proof-of-concept Scala template.
Scala is supposed to reduce boilerplate and so potentially allows for a better or improved solution.

Code Block
#if ($entity.packageName)
package $entity.packageName
#end

import org.apache.log4j.Logger

class ${entity.classNameWithoutPackage} extends ${entity.superclassPackageName}.${entity.classNameWithoutPackage} {
  private lazy val logger = Logger.getLogger(this.getClass.getName)
}

object ${entity.classNameWithoutPackage} extends ${entity.superclassPackageName}.${entity.classNameWithoutPackage} {
}