Top Description Fields Constructors Methods
org.javamoney.moneta.spi

public final Class MonetaryConfig

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
javax.money.spi.Bootstrap, java.util.*, java.util.logging.Logger

Deprecated

Will be removed from the SPI. Implement and register an instance of MonetaryConfigProvider instead of.

Loader for the Java Money JSR configuration.
Author
Anatole Tresch
See Also
MonetaryConfigProvider

Field Summary

Modifier and TypeField and Description
private static final MonetaryConfig
INSTANCE

References Deprecated MonetaryConfig is deprecated or references (maybe indirectly) at least one deprecated element.
private static final Logger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Optional<Boolean>
public static Map<String, String>
public static Optional<Double>
public static Optional<Float>
public static Optional<Integer>
public static Optional<Long>
public static Optional<String>
public static String

Returns:

the previous value.
setValue
(String
the key to be set, not null.
key
,
String
the new value, or null.
value
)

Sets a new config value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final MonetaryConfig INSTANCE

References Deprecated

MonetaryConfig is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

LOGback to summary
private static final Logger LOG

Constructor Detail

MonetaryConfigback to summary
private MonetaryConfig()

Method Detail

getBooleanback to summary
public static Optional<Boolean> getBoolean(String key)
getConfigback to summary
public static Map<String, String> getConfig()
getDoubleback to summary
public static Optional<Double> getDouble(String key)
getFloatback to summary
public static Optional<Float> getFloat(String key)
getIntegerback to summary
public static Optional<Integer> getInteger(String key)
getLongback to summary
public static Optional<Long> getLong(String key)
getStringback to summary
public static Optional<String> getString(String key)
setValueback to summary
public static String setValue(String key, String value)

Sets a new config value. Note that when a custom MonetaryConfigProvider is registered, writing of configuration values is not supported. In this case a debug log (fine) is written.

Parameters
key:String

the key to be set, not null.

value:String

the new value, or null.

Returns:String

the previous value.