rodionmoiseev / c10n

A Java library, focused on making internationalisation more modular, easier to evolve and maintain, robust-to-change and IDE-friendly without excess of external tools.
Apache License 2.0
67 stars 10 forks source link

Make call to `configure` a requirement, and throw exception otherwise #18

Closed rodionmoiseev closed 9 years ago

rodionmoiseev commented 11 years ago

It is sometimes easy to oversee a problem where C10N.configure() is not properly called before other c10n calls, especially when integrating c10n into other frameworks (see #17)

In order to prevent this, any call to C10N.get() should throw an exception if called prior to configure().

However, for compatibility reasons, there needs to be a way to suppress this behaviour (a system property should do for now)