Class PropertiesWrapper

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.String> properties  
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertiesWrapper​(java.util.Map<java.lang.String,​java.lang.String> properties)  
    • Field Detail

      • properties

        private final java.util.Map<java.lang.String,​java.lang.String> properties
    • Constructor Detail

      • PropertiesWrapper

        public PropertiesWrapper​(java.util.Map<java.lang.String,​java.lang.String> properties)
    • Method Detail

      • getProperties

        public java.util.Map<java.lang.String,​java.lang.String> getProperties()
      • setAsSystemProperties

        public void setAsSystemProperties()
      • getProperty

        public java.lang.String getProperty​(java.lang.String key)
      • getBooleanProperty

        public boolean getBooleanProperty​(java.lang.String propertyName)
      • getIntProperty

        public int getIntProperty​(java.lang.String propertyName)
      • getLongProperty

        public java.lang.Long getLongProperty​(java.lang.String propertyName)
      • getFileProperty

        public java.io.File getFileProperty​(java.lang.String key)
      • getStringList

        public java.util.List<java.lang.String> getStringList​(java.lang.String propertyPrefix)
      • getTypeEncodedValue

        public TypeEncodedValue getTypeEncodedValue​(java.lang.String key)
        Retrieves as single object that is persisted with type encoding
        Parameters:
        key - The key for the propery
        Returns:
        The object, of a supported type
      • getClasspath

        Classpath getClasspath​(java.lang.String prefix)
      • setClasspath

        public void setClasspath​(java.lang.String prefix,
                                 Classpath classpath)
      • setProperty

        public void setProperty​(java.lang.String key,
                                java.lang.String value)
      • addList

        public void addList​(java.util.List items,
                            java.lang.String propertyPrefix)
      • copyTo

        public void copyTo​(java.util.Map<java.lang.Object,​java.lang.Object> target)
        Specified by:
        copyTo in interface KeyValueSource