@Override
public <A> A getControllerInstance(Class<A> controllerClass) throws Exception {
return ctx.getBean(controllerClass);
}
ctx is Spring application context.
What is the best way to reimplement in 2.4? The migration documentation is unclear to me and refers to Guice. Switching from Spring to Guice is not feasible for our project at this time. Thanks in advance for your help.
Thanks,
Olja
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/d992c4ea-e148-49fc-88ca-f803614d8428%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/afeac527-254d-49e2-beb9-de7cd1328b04%40googlegroups.com.
bind[ActiveDirectoryService].to[DefaultActiveDirectoryService].in[Singleton]
bind[UserProfileRepository].to[HazelcastUserProfileRepository].in[Singleton]
bind[DashboardConfigRepository].to[HazelcastDashboardConfigRepository].in[Singleton]
bind[UserProfileService].to[DefaultUserProfileService].in[Singleton]
bind[DashboardConfigService].to[DefaultDashboardConfigService].in[Singleton]
I had been moving more of that to use @ImplementedBy
I've tried adding a ApplicationLoader with a modules, but the bindings just don't seem to work the same way. Or at least they don't get picked up.
I'm back to trying to figure out what I can do as a short term step without completely changing everything right now.
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/5d309298-7584-48d3-a669-6021cc5578b0%40googlegroups.com.
object Global extends WithFilters(new GzipFilter(), CSRFFilter(), AuditLoggingFilter) with GlobalSettings {
lazy val logger = Logger(this.getClass)
val shutdownHook = ShutdownHook()
override def onStart(app: Application): Unit = {
if (!Play.isTest) {
logger.info(s"Using Config: ${sys.props.get("config.resource").orElse(sys.props.get("config.file")).orElse(sys.props.get("config.url")).getOrElse("default")}")
}
application.global="settings.Global"
class AppModule(
environment: Environment,
config: Configuration
) extends AbstractModule with ScalaModule with AkkaGuiceSupport {
val playConfig = new PlayConfiguration(config)
override def configure(): Unit = {
//bind[Configuration].toInstance(config)
bind[SessionlessSecurityComponent].in[Singleton]
and slowly fixing issues that crop up.
One key problem for me was changing;
--
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/zLq7uCT6n08/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/CAA%3D11Hz7EJpC6Cmoi0a7B%3DbcQy5eLWZ8HUMyuRkJ6gjB8_6M6Q%40mail.gmail.com.