Package io.micronaut.context.env
Class EmptyPropertySource
java.lang.Object
io.micronaut.context.env.EmptyPropertySource
- All Implemented Interfaces:
PropertySource
,Ordered
,Iterable<String>
An PropertySource
that is empty when instantiated.
- Since:
- 1.0
- Author:
- James Kleeh
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.context.env.PropertySource
PropertySource.PropertyConvention
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Fields inherited from interface io.micronaut.context.env.PropertySource
CONTEXT
-
Constructor Summary
ConstructorDescriptionDefault constructor.EmptyPropertySource
(String name) Creates a property source with a name. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.micronaut.context.env.PropertySource
getConvention
-
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:
getName
in interfacePropertySource
- Returns:
- The name of the property source
-
get
Description copied from interface:PropertySource
Get a property value of the given key.- Specified by:
get
in interfacePropertySource
- Parameters:
key
- The key- Returns:
- The value
-
iterator
-