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


Java UrlConfigurationSourceProvider类代码示例

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


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

示例1: initialize

import io.dropwizard.configuration.UrlConfigurationSourceProvider; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<RegisterConfiguration> bootstrap) {
    bootstrap.addBundle(new ViewBundle<>(ImmutableList.of(new ThymeleafViewRenderer("HTML5", "/templates/", ".html", false))));

    if (isRunningOnCloudFoundry()) {
        bootstrap.setConfigurationSourceProvider(new UrlConfigurationSourceProvider());
    }

    bootstrap.setConfigurationSourceProvider(
            new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(),
                    new EnvironmentVariableSubstitutor(false)
            ));
    bootstrap.addBundle(new AssetsBundle("/assets"));
    bootstrap.addBundle(new CorsBundle());
    bootstrap.addBundle(new LogstashBundle());

    System.setProperty("java.protocol.handler.pkgs", "uk.gov.register.protocols");
}
 
开发者ID:openregister,项目名称:openregister-java,代码行数:19,代码来源:RegisterApplication.java

示例2: SupportedMsaVersionsLoader

import io.dropwizard.configuration.UrlConfigurationSourceProvider; //导入依赖的package包/类
@Inject
public SupportedMsaVersionsLoader(
        final ConfigurationFactoryFactory<SupportedMsaVersions> supportedMsaVersionsFactoryFactory,
        final ObjectMapper objectMapper,
        final UrlConfigurationSourceProvider configurationSourceProvider) {

    this.supportedMsaVersionsFactoryFactory = supportedMsaVersionsFactoryFactory;
    this.objectMapper = objectMapper;
    this.configurationSourceProvider = configurationSourceProvider;
}
 
开发者ID:alphagov,项目名称:verify-hub,代码行数:11,代码来源:SupportedMsaVersionsLoader.java

示例3: configure

import io.dropwizard.configuration.UrlConfigurationSourceProvider; //导入依赖的package包/类
@Override
protected void configure() {
    bind(TrustStoreConfiguration.class).to(SamlSoapProxyConfiguration.class);
    bind(EventSinkProxy.class).to(EventSinkHttpProxy.class);
    bind(PublicKeyInputStreamFactory.class).toInstance(new PublicKeyFileInputStreamFactory());
    bind(InternalPublicKeyStore.class).to(HubMetadataPublicKeyStore.class);
    bind(RestfulClientConfiguration.class).to(SamlSoapProxyConfiguration.class);
    bind(Client.class).toProvider(DefaultClientProvider.class).asEagerSingleton();
    bind(new TypeLiteral<ConfigurationFactoryFactory<SupportedMsaVersions>>() {}).toInstance(new DefaultConfigurationFactoryFactory<SupportedMsaVersions>() {});
    bind(new TypeLiteral<SupportedMsaVersionsRepository>() {}).asEagerSingleton();
    bind(SupportedMsaVersionsBootstrap.class).asEagerSingleton();
    bind(SupportedMsaVersionsLoader.class).asEagerSingleton();
    bind(MetadataRefreshTask.class).asEagerSingleton();
    bind(ConfigServiceKeyStore.class).asEagerSingleton();
    bind(ExpiredCertificateMetadataFilter.class).toInstance(new ExpiredCertificateMetadataFilter());
    bind(UrlConfigurationSourceProvider.class).toInstance(new UrlConfigurationSourceProvider());
    bind(TrustStoreForCertificateProvider.class);
    bind(JsonResponseProcessor.class);
    bind(ObjectMapper.class).toInstance(new ObjectMapper());
    bind(X509CertificateFactory.class).toInstance(new X509CertificateFactory());
    bind(CertificateChainValidator.class);
    bind(CertificatesConfigProxy.class);
    bind(PKIXParametersProvider.class).toInstance(new PKIXParametersProvider());
    bind(KeyStoreCache.class);
    bind(KeyStoreLoader.class).toInstance(new KeyStoreLoader());
    bind(MatchingServiceHealthCheckHandler.class);
    bind(MatchingServiceHealthChecker.class);
    bind(MatchingServiceConfigProxy.class);
    bind(MatchingServiceHealthCheckClient.class);
    bind(HealthCheckEventLogger.class);
    bind(SamlEngineProxy.class);
    bind(HealthCheckSoapRequestClient.class);
    bind(AttributeQueryRequestRunnableFactory.class);
    bind(ExecuteAttributeQueryRequest.class);
    bind(AttributeQueryRequestClient.class);
    bind(ProtectiveMonitoringLogger.class).toInstance(new ProtectiveMonitoringLogger());
    bind(SoapRequestClient.class);
    bind(HubMatchingServiceResponseReceiverProxy.class);
    bind(ExternalCommunicationEventLogger.class);
    bind(SoapMessageManager.class).toInstance(new SoapMessageManager());
    bind(IpAddressResolver.class).toInstance(new IpAddressResolver());
    bind(TimeoutEvaluator.class).toInstance(new TimeoutEvaluator());
    bind(MetadataHealthCheckRegistry.class).asEagerSingleton();
}
 
开发者ID:alphagov,项目名称:verify-hub,代码行数:45,代码来源:SamlSoapProxyModule.java

示例4: initialize

import io.dropwizard.configuration.UrlConfigurationSourceProvider; //导入依赖的package包/类
@Override
public void initialize(Bootstrap<BounceDropWizardConfiguration> bootstrap) {
    bootstrap.addBundle(new AssetsBundle("/assets", "/", "views/index.html"));
    bootstrap.setConfigurationSourceProvider(new UrlConfigurationSourceProvider());
}
 
开发者ID:bouncestorage,项目名称:bouncestorage,代码行数:6,代码来源:BounceApplication.java


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