Java 类org.springframework.boot.context.properties.ConfigurationPropertiesBinding 实例源码

项目:cas-5.1.0    文件:CasCoreBootstrapStandaloneConfiguration.java   
@ConfigurationPropertiesBinding
@Bean
public Converter<String, List<Class<? extends Throwable>>> commaSeparatedStringToThrowablesCollection() {
    return new Converter<String, List<Class<? extends Throwable>>>() {
        @Override
        public List<Class<? extends Throwable>> convert(final String source) {
            try {
                final List<Class<? extends Throwable>> classes = new ArrayList<>();
                for (final String className : StringUtils.commaDelimitedListToStringArray(source)) {
                    classes.add((Class<? extends Throwable>) ClassUtils.forName(className.trim(), getClass().getClassLoader()));
                }
                return classes;
            } catch (final Exception e) {
                throw new IllegalStateException(e);
            }
        }
    };
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:ConverterBindingTests.java   
@Bean
@ConfigurationPropertiesBinding
public Converter<String, Foo> converter() {
    return new Converter<String, ConverterBindingTests.Foo>() {

        @Override
        public Foo convert(String source) {
            return new Foo(source);
        }
    };
}
项目:spring-boot-concourse    文件:ConverterBindingTests.java   
@Bean
@ConfigurationPropertiesBinding
public Converter<String, Foo> converter() {
    return new Converter<String, ConverterBindingTests.Foo>() {

        @Override
        public Foo convert(String source) {
            return new Foo(source);
        }
    };
}
项目:contestparser    文件:ConverterBindingTests.java   
@Bean
@ConfigurationPropertiesBinding
public Converter<String, Foo> converter() {
    return new Converter<String, ConverterBindingTests.Foo>() {

        @Override
        public Foo convert(String source) {
            Foo foo = new Foo();
            foo.setName(source);
            return foo;
        }
    };
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:FlywayAutoConfiguration.java   
@Bean
@ConfigurationPropertiesBinding
public StringOrNumberToMigrationVersionConverter stringOrNumberMigrationVersionConverter() {
    return new StringOrNumberToMigrationVersionConverter();
}
项目:spring-cloud-deployer-mesos    文件:MesosAutoConfiguration.java   
@Bean
@ConfigurationPropertiesBinding
public ConstraintConverter constraintConverter() {
    return new ConstraintConverter();
}
项目:gemfire    文件:InetSocketAddressConverterConfiguration.java   
@Bean
@ConfigurationPropertiesBinding
public Converter<String, InetSocketAddress> inetSocketAddressConverter() {
    return new InetSocketAddressConverter();
}
项目:spring-cloud-deployer-cloudfoundry    文件:CloudFoundryDeployerAutoConfiguration.java   
@Bean
@ConfigurationPropertiesBinding
public DurationConverter durationConverter() {
    return new DurationConverter();
}
项目:spring-boot-concourse    文件:FlywayAutoConfiguration.java   
@Bean
@ConfigurationPropertiesBinding
public StringOrNumberToMigrationVersionConverter stringOrNumberMigrationVersionConverter() {
    return new StringOrNumberToMigrationVersionConverter();
}
项目:spring-cloud-stream-app-starters    文件:JdbcSinkConfiguration.java   
@Bean
@ConfigurationPropertiesBinding
public ShorthandMapConverter shorthandMapConverter() {
    return new ShorthandMapConverter();
}
项目:spring-cloud-stream-app-starters    文件:InetSocketAddressConverterConfiguration.java   
@Bean
@ConfigurationPropertiesBinding
public Converter<String, InetSocketAddress> inetSocketAddressConverter() {
    return new InetSocketAddressConverter();
}
项目:jsonwebtoken    文件:JwtAutoConfiguration.java   
@Bean
@ConfigurationPropertiesBinding
public SignatureAlgorithmConverter signatureAlgorithmConverter() {
    return new SignatureAlgorithmConverter();
}
项目:spring-cloud-stream    文件:SpelExpressionConverterConfiguration.java   
@Bean
@ConfigurationPropertiesBinding
@IntegrationConverter
public Converter<String, Expression> spelConverter() {
    return new SpelConverter();
}
项目:mandrel    文件:ThriftServerConfiguration.java   
@Bean
@ConfigurationPropertiesBinding
public StringToDurationConverter stringToDurationConverter() {
    return new StringToDurationConverter();
}
项目:mandrel    文件:UnitConversionConfiguration.java   
@Bean
@ConfigurationPropertiesBinding
public StringToHostAndPortConverter stringToHostAndPortConverter() {
    return new StringToHostAndPortConverter();
}
项目:mandrel    文件:UnitConversionConfiguration.java   
@Bean
@ConfigurationPropertiesBinding
public StringToTimeValueConverter stringToDurationConverter() {
    return new StringToTimeValueConverter();
}