public class SpringContextModule extends AbstractModule {
@Override
protected void configure() {
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("app-context.xml");
bind(BeanFactory.class).toInstance(applicationContext);
}
}
play.modules {
# By default, Play will load any class called service.core.PersistRawModuletRawModule that is defined
# in the root package (the "app" directory), or you can define them
# explicitly below.
# If there are any built-in modules that you want to disable, you can list them here.
#enabled += my.application.service.core.PersistRawModuletRawModule
enabled += "service.core.PersistRawModule"
enabled += "service.core.PersistModule"
enabled += "service.core.SpringContextModule"
# If there are any built-in modules that you want to disable, you can list them here.
#disabled += ""
}
public class UserAuthenticationHTTPBasicImp extends SupperEntityWithObjevtPersist<User>implements UserAuthenticationService {
private BeanFactory beanFactory;
private TokenService tokenService;
@Inject
public void setup(BeanFactory beanFactory,TokenService tokenService) {
this.tokenService = tokenService;
this.beanFactory = beanFactory;
}
--
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/c31599da-2a40-41fa-b4a6-82c163234231%40googlegroups.com.
--
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-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/2b0f0469-596f-4f29-b803-56c66eea4465%40googlegroups.com.