Roberto Sánchez
2014-09-19 8d5386be38db25a2a41c3bf6c876adee21ca26cc
securis/src/main/java/net/curisit/securis/ioc/RequestsModule.java
....@@ -20,29 +20,28 @@
2020
2121 public class RequestsModule extends RequestScopeModule {
2222
23
- @Override
24
- protected void configure() {
25
- super.configure();
26
- // TODO: Make the bind using reflection dynamically
27
- bind(SecurityInterceptor.class);
28
- // bind(SecurityContextWrapper.class).in(RequestScoped.class);
23
+ @Override
24
+ protected void configure() {
25
+ super.configure();
26
+ // TODO: Make the bind using reflection dynamically
27
+ bind(SecurityInterceptor.class);
2928
30
- bind(BasicServices.class);
31
- bind(LicenseServices.class);
32
- bind(UserResource.class);
29
+ bind(BasicServices.class);
30
+ bind(LicenseServices.class);
31
+ bind(UserResource.class);
3332
34
- bind(ApplicationResource.class);
35
- bind(LicenseTypeResource.class);
36
- bind(OrganizationResource.class);
37
- bind(ApiResource.class);
38
- bind(LicenseResource.class);
39
- bind(PackResource.class);
40
- }
33
+ bind(ApplicationResource.class);
34
+ bind(LicenseTypeResource.class);
35
+ bind(OrganizationResource.class);
36
+ bind(ApiResource.class);
37
+ bind(LicenseResource.class);
38
+ bind(PackResource.class);
39
+ }
4140
42
- @Provides
43
- @RequestScoped
44
- public User provideUser() {
45
- return ResteasyProviderFactory.getContextData(User.class);
46
- }
41
+ @Provides
42
+ @RequestScoped
43
+ public User provideUser() {
44
+ return ResteasyProviderFactory.getContextData(User.class);
45
+ }
4746
4847 }