org.springframework.boot.context.config

Class RandomValuePropertySource

  • java.lang.Object
    • org.springframework.core.env.PropertySource<Random>
      • org.springframework.boot.context.config.RandomValuePropertySource


  • public class RandomValuePropertySource
    extends org.springframework.core.env.PropertySource<Random>
    PropertySource that returns a random value for any property that starts with "random.". Return a byte[] unless the property name ends with ".int or ".long".
    Author:
    Dave Syer
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource

        org.springframework.core.env.PropertySource.StubPropertySource
    • Field Summary

      • Fields inherited from class org.springframework.core.env.PropertySource

        logger, name, source
    • Constructor Detail

      • RandomValuePropertySource

        public RandomValuePropertySource(String name)
    • Method Detail

      • getProperty

        public Object getProperty(String name)
        Specified by:
        getProperty in class org.springframework.core.env.PropertySource<Random>
      • addToEnvironment

        public static void addToEnvironment(org.springframework.core.env.ConfigurableEnvironment environment)

Copyright © 2014 Pivotal Software, Inc.. All rights reserved.