public class RandomValuePropertySource extends PropertySource<RandomSE>
PropertySource
。ここで、「修飾されていないプロパティ名」は、リクエストされたプロパティ名の「ランダム」を超えた部分です。接頭辞、この PropertySource
は次を返します:Integer
SE 値で、オプションで指定された範囲によって制限されます。Long
SE 値が指定され、オプションで指定された範囲によって制限されます。UUID
SE 値。byte[]
。OPEN value (,max) CLOSE
ここで、OPEN,CLOSE
は任意の文字であり、value,max
は整数です。max
が指定されていない場合、0 が下限として使用され、value
が上限として使用されます。max
が提供されている場合、value
が最小値であり、max
が最大値(排他的)です。
PropertySource.StubPropertySource
修飾子と型 | フィールドと説明 |
---|---|
static StringSE | RANDOM_PROPERTY_SOURCE_NAME ランダム PropertySource の名前。 |
name, source
コンストラクターと説明 |
---|
RandomValuePropertySource() |
RandomValuePropertySource(StringSE name) |
修飾子と型 | メソッドと説明 |
---|---|
static void | addToEnvironment(ConfigurableEnvironment environment) |
ObjectSE | getProperty(StringSE name) |
containsProperty, equals, getName, getSource, hashCode, named, toString
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public static final StringSE RANDOM_PROPERTY_SOURCE_NAME
PropertySource
の名前。public RandomValuePropertySource()
public RandomValuePropertySource(StringSE name)
public ObjectSE getProperty(StringSE name)
PropertySource<RandomSE>
の getProperty
public static void addToEnvironment(ConfigurableEnvironment environment)