object BundleConfig
- Alphabetic
- By Inheritance
- BundleConfig
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(baseName: String, localeOption: Option[Locale] = None): Config[String, String]
- baseName
base name of the resource bundle, a fully qualified class name
- localeOption
optional locale for which a resource bundle is desired; for
None
, the default locale is used (as returned byLocale.getDefault
); defaults toNone
- returns
a
Config
with key/value pairs loaded from a resource bundle
- Note
The base name must identify a resource bundle according to the
,java.util.ResourceBundle
class.All values must be strings.
,If some I/O or other exception occurs when loading the bundle, the resulting
Config
is empty.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def forClass(c: Class[_], localeOption: Option[Locale] = None): Config[String, String]
Loads key/value pairs from a resource bundle associated with a class.
Loads key/value pairs from a resource bundle associated with a class.
The bundle is looked up under the modified package name of the given class (i.e., with '/' substituted for '.'). The base name of the bundle is equal to the the name of the given class. If the bundle consists of files, each must have an extension
.properties
.- c
the class for which the resource bundle shall be got
- localeOption
optional locale for which a resource bundle is desired; for
None
, the default locale is used (as returned byLocale.getDefault
); defaults toNone
- returns
a
Config
with key/value pairs loaded from a resource bundle
- Note
The base name must identify a resource bundle according to the
,java.util.ResourceBundle
class.All values must be strings.
,If some I/O or other exception occurs when loading the bundle, the resulting
Config
is empty.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])