object Profig extends Profig

Profig provides access to environment variables, properties, and other configuration all merged together into one powerful system. Uses JSON internally to provide merging and integration. Paths are dot-separated.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Profig
  2. Profig
  3. ProfigPath
  4. ProfigPathPlatform
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(): Value

    Returns a Json representation of this path.

    Returns a Json representation of this path. Works similar to get(), except will return an empty Json object if there is nothing at this level.

    returns

    Json

    Definition Classes
    ProfigPath
  5. def apply(path: Path): ProfigPath
    Definition Classes
    ProfigPath
  6. def apply(path: String*): ProfigPath

    Look up a deeper path below the current path.

    Look up a deeper path below the current path.

    returns

    ProfigPath

    Definition Classes
    ProfigPath
  7. def as[T](default: => T)(implicit arg0: Writer[T]): T

    Loads this path out as the defined type T.

    Loads this path out as the defined type T. If no value is set for this path, the default will be used.

    T

    the type to represent the current path

    default

    the default to be used if this path is empty

    returns

    T

    Definition Classes
    ProfigPath
  8. def as[T](implicit arg0: Writer[T]): T

    Loads this path out as the defined type T.

    Loads this path out as the defined type T.

    T

    the type to represent the current path

    returns

    T

    Definition Classes
    ProfigPath
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clear(): Unit
    Definition Classes
    Profig
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. def empty: Profig
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def exists(): Boolean

    True if this path exists in the config

    True if this path exists in the config

    Definition Classes
    ProfigPath
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. def get(): Option[Value]

    Returns a Json representation of this path if there is anything defined at this level.

    Returns a Json representation of this path if there is anything defined at this level.

    returns

    Option[Json]

    Definition Classes
    ProfigPath
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def init(loadProperties: Boolean = true, loadEnvironmentVariables: Boolean = true): Unit

    Initializes Profig

    Initializes Profig

    loadProperties

    whether to load system properties

    loadEnvironmentVariables

    whether to load environment variables

  21. def initConfiguration(startPath: Path = Paths.get("."), additionalPaths: List[Path] = Nil, recursiveParents: Boolean = true, includeClassPath: Boolean = true, fileNameMatcher: FileNameMatcher = FileNameMatcher.Default, errorHandler: Option[(Throwable) => Unit] = None): Unit
    Definition Classes
    ProfigPathPlatform
  22. def instance: Profig
    Definition Classes
    ProfigProfigPath
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def isLoaded: Boolean
  25. def json: Value
    Definition Classes
    Profig
  26. def lastModified: Long
    Definition Classes
    Profig
  27. def load(fileName: String, source: Source, mergeType: MergeType = MergeType.Overwrite, errorHandler: Option[(Throwable) => Unit] = None): Unit
    Definition Classes
    ProfigPathPlatform
  28. def loadConfiguration(startPath: Path = Paths.get("."), additionalPaths: List[Path] = Nil, recursiveParents: Boolean = true, includeClassPath: Boolean = true, fileNameMatcher: FileNameMatcher = FileNameMatcher.Default, errorHandler: Option[(Throwable) => Unit] = None): Unit
    Definition Classes
    ProfigPathPlatform
  29. def loadEnvironmentVariables(type: MergeType = MergeType.Add): Unit
    Definition Classes
    Profig
  30. def loadFile(file: File, mergeType: MergeType = MergeType.Overwrite, errorHandler: Option[(Throwable) => Unit] = None): Unit
    Definition Classes
    ProfigPathPlatform
  31. def loadProperties(type: MergeType = MergeType.Add): Unit
    Definition Classes
    Profig
  32. def merge(json: Value, type: MergeType = MergeType.Overwrite): Unit

    Merges a Json object to this path.

    Merges a Json object to this path.

    Definition Classes
    ProfigPath
  33. def modify(f: (Value) => Value): Unit
    Attributes
    protected[profig]
    Definition Classes
    Profig
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. def opt[T](implicit arg0: Writer[T]): Option[T]

    Convenience functionality similar to as but returns an option if set.

    Convenience functionality similar to as but returns an option if set.

    T

    the type to represent the current path

    returns

    T

    Definition Classes
    ProfigPath
  38. def path: Path
    Definition Classes
    ProfigProfigPath
  39. def remove(): Unit
    Definition Classes
    ProfigProfigPath
  40. def remove(field: String): Unit

    Removes a field from this path.

    Removes a field from this path.

    field

    the field below this path to remove

    Definition Classes
    ProfigPath
  41. def store[T](value: T)(implicit arg0: Reader[T]): Unit

    Stores the supplied value into this path.

    Stores the supplied value into this path.

    T

    the type of value

    value

    the value to store

    Definition Classes
    ProfigPath
  42. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  43. def toString(): String
    Definition Classes
    AnyRef → Any
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Profig

Inherited from ProfigPath

Inherited from ProfigPathPlatform

Inherited from AnyRef

Inherited from Any

Ungrouped