public static final class SimplePropertySource.Builder extends Object
SimplePropertySource builder static inner class.| Modifier and Type | Method and Description |
|---|---|
SimplePropertySource |
build()
Returns a
SimplePropertySource built from the parameters previously set. |
SimplePropertySource.Builder |
withDefaultOrdinal(int val)
Sets the
defaultOrdinal and returns a reference to this Builder so that the methods
can be chained together. |
SimplePropertySource.Builder |
withName(String val)
Sets the
name and returns a reference to this Builder so that the methods
can be chained together. |
SimplePropertySource.Builder |
withOrdinal(int val)
Sets the
ordinal and returns a reference to this Builder so that the methods
can be chained together. |
SimplePropertySource.Builder |
withProperties(File file)
Reads the
properties from the given resource and returns a reference
to this Builder so that the methods can be chained together. |
SimplePropertySource.Builder |
withProperties(Map<String,String> val)
Sets the
properties and returns a reference to this Builder so that the methods can be chained together. |
SimplePropertySource.Builder |
withProperties(URL resource)
Reads the
properties from the given resource and returns a reference
to this Builder so that the methods can be chained together. |
SimplePropertySource.Builder |
withProperty(String key,
String val)
Sets the
properties and returns a reference to this Builder so that the methods can be chained together. |
SimplePropertySource.Builder |
withUuidName()
Sets the
name to a new UUID and returns a reference to this Builder so that the methods
can be chained together. |
public SimplePropertySource.Builder withUuidName()
name to a new UUID and returns a reference to this Builder so that the methods
can be chained together.public SimplePropertySource.Builder withName(String val)
name and returns a reference to this Builder so that the methods
can be chained together.val - the name to set, not null.public SimplePropertySource.Builder withOrdinal(int val)
ordinal and returns a reference to this Builder so that the methods
can be chained together.val - the ordinal to setpublic SimplePropertySource.Builder withDefaultOrdinal(int val)
defaultOrdinal and returns a reference to this Builder so that the methods
can be chained together.val - the defaultOrdinal to setpublic SimplePropertySource.Builder withProperties(URL resource)
properties from the given resource and returns a reference
to this Builder so that the methods can be chained together.resource - the resource to readpublic SimplePropertySource.Builder withProperties(File file)
properties from the given resource and returns a reference
to this Builder so that the methods can be chained together.file - the file to read from (xml or properties format).public SimplePropertySource.Builder withProperties(Map<String,String> val)
properties and returns a reference to this Builder so that the methods can be chained together.val - the properties to setpublic SimplePropertySource.Builder withProperty(String key, String val)
properties and returns a reference to this Builder so that the methods can be chained together.val - the properties to setpublic SimplePropertySource build()
SimplePropertySource built from the parameters previously set.SimplePropertySource built with parameters of this SimplePropertySource.BuilderCopyright © 2016–2017 Apache Software Foundation. All rights reserved.