Class EmptyPropertySource
java.lang.Object
io.micronaut.context.env.EmptyPropertySource
- All Implemented Interfaces:
PropertySource, io.micronaut.core.order.Ordered, Iterable<String>
An PropertySource that is empty when instantiated.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface PropertySource
PropertySource.Origin, PropertySource.PropertyConvention -
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface PropertySource
CONTEXT -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EmptyPropertySource(String name) Creates a property source with a name. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface io.micronaut.core.order.Ordered
getOrderMethods inherited from interface PropertySource
getConvention, getOrigin
-
Constructor Details
-
EmptyPropertySource
public EmptyPropertySource()Default constructor. Creates an empty property source. -
EmptyPropertySource
Creates a property source with a name.- Parameters:
name- The name
-
-
Method Details
-
getName
- Specified by:
getNamein interfacePropertySource- Returns:
- The name of the property source
-
get
Description copied from interface:PropertySourceGet a property value of the given key.- Specified by:
getin interfacePropertySource- Parameters:
key- The key- Returns:
- The value
-
iterator
-