To edit or add content to this Wiki, you can simply create a new account at http://wocommunity.org/account.

Skip to end of metadata
Go to start of metadata

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.

#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} {
}
  • No labels