Class ApacheCommonsConfiguration2PropertySource

java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<org.apache.commons.configuration2.Configuration>
org.craftercms.commons.spring.ApacheCommonsConfiguration2PropertySource

public class ApacheCommonsConfiguration2PropertySource extends org.springframework.core.env.EnumerablePropertySource<org.apache.commons.configuration2.Configuration>
Implementation of EnumerablePropertySource where a source is an Apache Commons Configuration 2 Configuration.
Author:
avasquez
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource

    org.springframework.core.env.PropertySource.StubPropertySource
  • Field Summary

    Fields inherited from class org.springframework.core.env.PropertySource

    logger, name, source
  • Constructor Summary

    Constructors
    Constructor
    Description
    ApacheCommonsConfiguration2PropertySource(String name, org.apache.commons.configuration2.Configuration source)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    Methods inherited from class org.springframework.core.env.EnumerablePropertySource

    containsProperty

    Methods inherited from class org.springframework.core.env.PropertySource

    equals, getName, getSource, hashCode, named, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ApacheCommonsConfiguration2PropertySource

      public ApacheCommonsConfiguration2PropertySource(String name, org.apache.commons.configuration2.Configuration source)
  • Method Details

    • getPropertyNames

      public String[] getPropertyNames()
      Specified by:
      getPropertyNames in class org.springframework.core.env.EnumerablePropertySource<org.apache.commons.configuration2.Configuration>
    • getProperty

      public Object getProperty(String name)
      Specified by:
      getProperty in class org.springframework.core.env.PropertySource<org.apache.commons.configuration2.Configuration>