当前位置: 首页>>代码示例>>Java>>正文


Java ValueFactoryProvider类代码示例

本文整理汇总了Java中org.glassfish.jersey.server.spi.internal.ValueFactoryProvider的典型用法代码示例。如果您正苦于以下问题:Java ValueFactoryProvider类的具体用法?Java ValueFactoryProvider怎么用?Java ValueFactoryProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ValueFactoryProvider类属于org.glassfish.jersey.server.spi.internal包,在下文中一共展示了ValueFactoryProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
public boolean configure(FeatureContext context) {
    context.register(new AbstractBinder() {
        @Override
        public void configure() {
            bind(TokenAuthenticator.class)
                    .in(Singleton.class);
            bind(TokenFactory.class)
                    .in(Singleton.class);
            bind(TokenFactoryProvider.class)
                    .to(ValueFactoryProvider.class)
                    .in(Singleton.class);
            bind(TokenParamInjectionResolver.class)
                    .to(new TypeLiteral<InjectionResolver<RobeAuth>>() {
                    })
                    .in(Singleton.class);
        }
    });
    return true;
}
 
开发者ID:robeio,项目名称:robe,代码行数:21,代码来源:TokenFeature.java

示例2: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
protected void configure() {
    // bind default Configuration to DSLContext
    bindFactory(new DSLContextFactory(configurationMap.values().stream().findFirst().orElse(null)))
            .to(DSLContext.class)
            .in(RequestScoped.class);

    // bind multiple instances of Configuration and ConnectionProvider for Named DSLContext(s)
    for (final Configuration configuration : configurationMap.values()) {

        bind(configuration).to(Configuration.class);

        bind(configuration.connectionProvider())
                .to(ConnectionProvider.class);
    }

    // bind a ValueFactoryProvider for Named DSLContext(s)
    bind(new DSLContextValueFactoryProvider(configurationMap))
            .to(ValueFactoryProvider.class);
}
 
开发者ID:benjamin-bader,项目名称:droptools,代码行数:21,代码来源:JooqBinder.java

示例3: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
protected void configure() {
    bind(new RateLimiterFactoryProvider(requestRateLimiterFactory)).to(RateLimiterFactoryProvider.class);
    bind(RateLimitingFactoryProvider.class).to(ValueFactoryProvider.class).in(Singleton.class);
    bind(RateLimitingFactoryProvider.RateLimitingInjectionResolver.class)
            .to(new TypeLiteral<InjectionResolver<RateLimiting>>() {}).in(Singleton.class);
}
 
开发者ID:mokies,项目名称:ratelimitj,代码行数:8,代码来源:RateLimitBundle.java

示例4: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
protected void configure() {
    bind(TestRateLimitingFactoryProvider.class).to(ValueFactoryProvider.class).in(Singleton.class);
    bind(TestRateLimitingFactoryProvider.TestRateLimitingInjectionResolver.class).to(
            new TypeLiteral<InjectionResolver<RateLimiting>>() {
            }
    ).in(Singleton.class);
}
 
开发者ID:mokies,项目名称:ratelimitj,代码行数:9,代码来源:RateLimit429EnforcerFilterTest.java

示例5: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
protected void configure() {

    bind(JsonParamValueFactoryProvider.class).to(ValueFactoryProvider.class).in(Singleton.class);
    bind(JsonParamValueFactoryProvider.InjectionResolver.class).to(new TypeLiteral<InjectionResolver<JsonParam>>() {
    }).in(Singleton.class);

}
 
开发者ID:protoxme,项目名称:protox-webapp-archetype,代码行数:9,代码来源:JsonParamFeature.java

示例6: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
protected void configure() {
    bind(profile).to(ProfileFactoryBuilder.class);
    bind(optProfile).to(OptionalProfileFactoryBuilder.class);
    bind(manager).to(ProfileManagerFactoryBuilder.class);

    bind(Pac4JProfileValueFactoryProvider.class).to(ValueFactoryProvider.class).in(Singleton.class);

    bind(ProfileInjectionResolver.class).to(new TypeLiteral<InjectionResolver<Pac4JProfile>>() {
    }).in(Singleton.class);
    bind(ProfileManagerInjectionResolver.class).to(new TypeLiteral<InjectionResolver<Pac4JProfileManager>>() {
    }).in(Singleton.class);
}
 
开发者ID:pac4j,项目名称:jax-rs-pac4j,代码行数:14,代码来源:Pac4JValueFactoryProvider.java

示例7: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
protected void configure() {
	bind(CustomAnnotationProvider.class)
			.to(ValueFactoryProvider.class)
			.in(Singleton.class);

	bind(CustomAnnotationResolver.class)
			.to(new TypeLiteral<InjectionResolver<CustomAnnotation>>() {
			})
			.in(Singleton.class);
}
 
开发者ID:Maddoc42,项目名称:JaxRs2Retrofit,代码行数:12,代码来源:CustomAnnotationTest.java

示例8: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override protected void configure() {
  bind(clientAuthFactory);
  bind(automationClientAuthFactory);
  bind(userAuthFactory);
  bind(AuthValueFactoryProvider.class).to(ValueFactoryProvider.class).in(Singleton.class);
  bind(AuthInjectionResolver.class).to(new TypeLiteral<InjectionResolver<Auth>>() {}).in(Singleton.class);
}
 
开发者ID:square,项目名称:keywhiz,代码行数:8,代码来源:AuthResolver.java

示例9: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
protected void configure() {
    bind(new ConfigurationFactoryInfo(configuration, dataSource, multiTenantConnectionProvider))
            .to(ConfigurationFactoryInfo.class);
    bind(ConfigurationFactoryProvider.class).to(ValueFactoryProvider.class).in(Singleton.class);
    bind(ConfigurationInjectionResolver.class).to(new TypeLiteral<InjectionResolver<JooqConfiguration>>() {
    }).in(Singleton.class);
}
 
开发者ID:tbugrara,项目名称:dropwizard-jooq,代码行数:9,代码来源:ConfigurationFactoryProvider.java

示例10: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
protected void configure()
{

  bind(AuthHeaderParamValueFactoryProvider.class)
      .to(ValueFactoryProvider.class)
      .in(Singleton.class);

  bind(UserAuthHeaderParamResolver.class)
      .to(new TypeLiteral<InjectionResolver<AuthParam>>() {
      })
      .in(Singleton.class);

}
 
开发者ID:zourzouvillys,项目名称:graphql,代码行数:15,代码来源:AuthContainerRequestFilter.java

示例11: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
protected void configure() {
    bindFactory(configPropertiesFactory).to(ConfigProperties.class);

    bind(PropertiesValueFactoryProvider.PropertyInjectionResolver.class)
            .to(new TypeLiteral<InjectionResolver<Prop>>() {
            }).in(Singleton.class);

    bind(PropertiesValueFactoryProvider.class)
            .to(ValueFactoryProvider.class)
            .in(Singleton.class);
}
 
开发者ID:psamsotha,项目名称:jersey-properties,代码行数:13,代码来源:JerseyPropertiesFeature.java

示例12: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
protected void configure() {
    bind(new PrincipalClassProvider<>(principalClass)).to(PrincipalClassProvider.class);
    bind(TokenFactoryProvider.class).to(ValueFactoryProvider.class).in(Singleton.class);
    bind(TokenParamInjectionResolver.class).to(new TypeLiteral<InjectionResolver<RobeAuth>>() {
    }).in(Singleton.class);
}
 
开发者ID:robeio,项目名称:robe,代码行数:8,代码来源:TokenFactoryProvider.java

示例13: bind

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
public void bind(DynamicConfiguration config) {
  Injections.addBinding(
          Injections.newFactoryBinder(this).to(type).in(Singleton.class),
          config);
  Injections.addBinding(
          Injections.newBinder(this).to(ValueFactoryProvider.class),
          config);
}
 
开发者ID:silb,项目名称:shiro-jersey,代码行数:10,代码来源:TypeFactory.java

示例14: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
protected void configure() {
    bind(PrincipalFactory.class)
            .to(PrincipalFactory.class)
            .to(new TypeLiteral<Factory<P>>() {})
            .in(Singleton.class);
    bind(PrincipalValueFactoryProvider.class)
            .to(AbstractValueFactoryProvider.class)
            .to(ValueFactoryProvider.class)
            .in(Singleton.class);
    bind(PrincipalInjectionResolver.class)
            .to(new TypeLiteral<ParamInjectionResolver<HmacAuth>>() {})
            .to(new TypeLiteral<InjectionResolver<HmacAuth>>() {})
            .in(Singleton.class);
}
 
开发者ID:bazaarvoice,项目名称:jersey-hmac-auth,代码行数:15,代码来源:HmacAuthFeature.java

示例15: configure

import org.glassfish.jersey.server.spi.internal.ValueFactoryProvider; //导入依赖的package包/类
@Override
public boolean configure(FeatureContext context) {
  context.register(new AbstractBinder() {
    @Override
    public void configure() {
      bind(SingularityMultiMethodAuthenticator.class).to(new TypeLiteral<Authenticator<ContainerRequestContext, SingularityUser>>() {}).in(Singleton.class);
      bind(SingularityAuthedUserFactory.class).to(SingularityAuthedUserFactory.class).in(Singleton.class);
      bind(SingularityAuthFactoryProvider.class).to(ValueFactoryProvider.class).in(Singleton.class);
      bind(SingularityAuthParamInjectionResolver.class).to(new TypeLiteral<InjectionResolver<Auth>>(){}).in(Singleton.class);
    }
  });
  return true;
}
 
开发者ID:HubSpot,项目名称:Singularity,代码行数:14,代码来源:SingularityAuthFeature.java


注:本文中的org.glassfish.jersey.server.spi.internal.ValueFactoryProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。