@Override protected void configure() { jerseyToGuice(MultivaluedParameterExtractorProvider.class); jerseyToGuice(Application.class); jerseyToGuice(Providers.class); // request scoped objects, but hk will control their scope // must be used in guice only with Provider jerseyToGuice(UriInfo.class); jerseyToGuice(ResourceInfo.class); jerseyToGuice(HttpHeaders.class); jerseyToGuice(SecurityContext.class); jerseyToGuice(Request.class); jerseyToGuice(ContainerRequest.class); jerseyToGuice(AsyncContext.class); if (!guiceServletSupport) { // bind request and response objects when guice servlet module not registered // but this will work only for resources jerseyToGuice(HttpServletRequest.class); jerseyToGuice(HttpServletResponse.class); } }
@Inject public RateLimitingFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider, final ServiceLocator injector, final RateLimiterFactoryProvider rateLimiterFactoryProvider) { super(extractorProvider, injector, Parameter.Source.UNKNOWN); this.requestRateLimiterFactory = rateLimiterFactoryProvider.factory; }
@Inject protected Pac4JProfileValueFactoryProvider(ProfileManagerFactoryBuilder manager, OptionalProfileFactoryBuilder opt, ProfileFactoryBuilder profile, MultivaluedParameterExtractorProvider mpep, ServiceLocator locator) { super(mpep, locator, Parameter.Source.UNKNOWN); this.manager = manager; this.optProfile = opt; this.profile = profile; }
@Inject protected CustomAnnotationProvider( MultivaluedParameterExtractorProvider mpep, ServiceLocator locator) { super(mpep, locator, Parameter.Source.UNKNOWN); }
@Inject public AuthValueFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider, final ServiceLocator injector, ClientAuthFactory clientAuthFactory, AutomationClientAuthFactory automationClientAuthFactory, UserAuthFactory userAuthFactory) { super(extractorProvider, injector, Parameter.Source.UNKNOWN); this.clientAuthFactory = clientAuthFactory; this.automationClientAuthFactory = automationClientAuthFactory; this.userAuthFactory = userAuthFactory; }
@Inject protected ConfigurationFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider, final ServiceLocator injector, final ConfigurationFactoryInfo configInfo) { super(extractorProvider, injector, Parameter.Source.UNKNOWN); this.configuration = configInfo.configuration; this.dataSource = configInfo.dataSource; this.multiTenantConnectionProvider = configInfo.multiTenantConnectionProvider; }
@Inject public PropertiesValueFactoryProvider(MultivaluedParameterExtractorProvider mpep, ServiceLocator locator, Configuration configuration) { super(mpep, locator, Parameter.Source.UNKNOWN); this.serviceLocator = locator; this.i18nEnabled = PropertiesHelper.getValue(configuration.getProperties(), RuntimeType.SERVER, JerseyPropertiesFeature.ENABLE_I18N, false, null); }
@Inject public TokenFactoryProvider( final MultivaluedParameterExtractorProvider extractorProvider, ServiceLocator locator) { super(extractorProvider, locator, Parameter.Source.UNKNOWN); }
@Inject public PrincipalValueFactoryProvider(final MultivaluedParameterExtractorProvider mpep, final ServiceLocator locator, final PrincipalFactory<P> factory) { super(mpep, locator, UNKNOWN); notNull(factory, "factory cannot be null"); this.factory = factory; }
@javax.inject.Inject public SingularityAuthFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider, ServiceLocator locator, SingularityAuthedUserFactory authFactory) { super(extractorProvider, locator, Source.UNKNOWN); this.authFactory = authFactory; }
@Inject public TestRateLimitingFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider, final ServiceLocator injector) { super(extractorProvider, injector, Parameter.Source.UNKNOWN); }
@Inject protected JsonParamValueFactoryProvider(MultivaluedParameterExtractorProvider mpep, ServiceLocator locator) { super(mpep, locator, Parameter.Source.UNKNOWN); LOGGER.info("JsonParamValueFactoryProvider constructed"); }
@Inject protected AuthHeaderParamValueFactoryProvider(MultivaluedParameterExtractorProvider mpep, ServiceLocator locator) { super(mpep, locator, Parameter.Source.UNKNOWN); }
@Inject public SearchFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider, ServiceLocator locator) { super(extractorProvider, locator, Parameter.Source.UNKNOWN); }
@Inject public DummyAuth(MultivaluedParameterExtractorProvider mpep, ServiceLocator locator) { super(mpep, locator, Parameter.Source.UNKNOWN); }
@Inject public SessionHelperFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider, final ServiceLocator injector) { super(extractorProvider, injector, Parameter.Source.CONTEXT); }
@Inject public SecurityCheckFactoryProvider(final MultivaluedParameterExtractorProvider extractorProvider, final ServiceLocator injector) { super(extractorProvider, injector, Parameter.Source.UNKNOWN); }