Permalink
Browse files

Defining parametric fields.

  • Loading branch information...
1 parent a5ce27f commit 115b551ec0fd900d98fa02fdbec60a5cb5442c03 Tiago committed Jan 7, 2010
@@ -3,9 +3,7 @@ package bazooka.server.persistence
import com.google.inject._
import com.wideplay.warp.persist.jpa._
-class PersistenceModule(persistenceUnitName: String) extends AbstractModule {
-
- val unitName = persistenceUnitName
+class PersistenceModule(val unitName: String) extends AbstractModule {
override def configure() {
bindConstant.annotatedWith(classOf[JpaUnit]).to(unitName)
@@ -5,9 +5,7 @@ import org.apache.commons.lang.builder._
import javax.script._
import java.util._
-class GroovyScript(scriptCode: String) {
-
- var code: String = scriptCode
+class GroovyScript(val code: String) {
val parameters: Map[String, Object] = new HashMap[String, Object]

0 comments on commit 115b551

Please sign in to comment.