Class EmptyPropertySource

  • All Implemented Interfaces:
    PropertySource, io.micronaut.core.order.Ordered, java.lang.Iterable<java.lang.String>

    public class EmptyPropertySource
    extends java.lang.Object
    implements PropertySource

    An PropertySource that is empty when instantiated.

    Since:
    1.0
    • Field Summary

      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(java.lang.String key)
      Get a property value of the given key.
      java.lang.String getName()  
      java.util.Iterator<java.lang.String> iterator()  
      • 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.core.order.Ordered

        getOrder
    • Constructor Detail

      • EmptyPropertySource

        public EmptyPropertySource()
        Default constructor. Creates an empty property source.
      • EmptyPropertySource

        public EmptyPropertySource​(java.lang.String name)
        Creates a property source with a name.
        Parameters:
        name - The name
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface PropertySource
        Returns:
        The name of the property source
      • get

        public java.lang.Object get​(java.lang.String key)
        Description copied from interface: PropertySource
        Get a property value of the given key.
        Specified by:
        get in interface PropertySource
        Parameters:
        key - The key
        Returns:
        The value
      • iterator

        public java.util.Iterator<java.lang.String> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.String>