| .. | .. |
|---|
| 20 | 20 | |
|---|
| 21 | 21 | public class RequestsModule extends RequestScopeModule { |
|---|
| 22 | 22 | |
|---|
| 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); |
|---|
| 29 | 28 | |
|---|
| 30 | | - bind(BasicServices.class); |
|---|
| 31 | | - bind(LicenseServices.class); |
|---|
| 32 | | - bind(UserResource.class); |
|---|
| 29 | + bind(BasicServices.class); |
|---|
| 30 | + bind(LicenseServices.class); |
|---|
| 31 | + bind(UserResource.class); |
|---|
| 33 | 32 | |
|---|
| 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 | + } |
|---|
| 41 | 40 | |
|---|
| 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 | + } |
|---|
| 47 | 46 | |
|---|
| 48 | 47 | } |
|---|