import com.google.inject.{Singleton, AbstractModule}
import com.mylib.{MonitorActor, Reporter}
import play.api.libs.concurrent.AkkaGuiceSupport
class MyModule extends AbstractModule with AkkaGuiceSupport {
def configure() = {
bindActor[MonitorActor]("monitor-actor")
bind(classOf[Reporter]).in(classOf[Singleton])
}
}
--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/9K2DNnZnDYU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/77d2844f-d63b-407c-8f93-077690728f29%40googlegroups.com.