org.apache.tamaya.builder

## Class SimplePropertySource

- java.lang.Object
- - org.apache.tamaya.builder.SimplePropertySource

- All Implemented Interfaces:
    org.apache.tamaya.spi.PropertySource

      public class SimplePropertySource
      extends Object
      implements org.apache.tamaya.spi.PropertySource

  Simple property source implementation using a map.

- - ### Field Summary

    - ### Fields inherited from interface org.apache.tamaya.spi.PropertySource

      `EMPTY, TAMAYA_ORDINAL`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimplePropertySource(String name, Map<String,String> properties)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.apache.tamaya.spi.PropertyValue` | `get(String key)`
    `int` | `getDefaultOrdinal()`
    `String` | `getName()`
    `int` | `getOrdinal()`
    `Map<String,String>` | `getProperties()`
    `boolean` | `isScannable()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SimplePropertySource

          public SimplePropertySource(String name,
                              Map<String,String> properties)

  - ### Method Detail

    - #### getOrdinal

          public int getOrdinal()

      Specified by:
        `getOrdinal` in interface `org.apache.tamaya.spi.PropertySource`

    - #### getDefaultOrdinal

          public int getDefaultOrdinal()

    - #### getName

          public String getName()

      Specified by:
        `getName` in interface `org.apache.tamaya.spi.PropertySource`

    - #### get

          public org.apache.tamaya.spi.PropertyValue get(String key)

      Specified by:
        `get` in interface `org.apache.tamaya.spi.PropertySource`

    - #### getProperties

          public Map<String,String> getProperties()

      Specified by:
        `getProperties` in interface `org.apache.tamaya.spi.PropertySource`

    - #### isScannable

          public boolean isScannable()

      Specified by:
        `isScannable` in interface `org.apache.tamaya.spi.PropertySource`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2015–2016 Apache Software Foundation. All rights reserved.