Package it.tidalwave.util
Interface PreferencesHandler
-
public interface PreferencesHandler
- Author:
- Fabrizio Giudici
-
-
Field Summary
Fields Modifier and Type Field Description static AtomicReference<PreferencesHandler>
__INSTANCE
static String
PROP_APP_NAME
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Path
getAppFolder()
static PreferencesHandler
getInstance()
main() probably needs it and Spring has not booted yet, so this class can be accessed also by this factory method.Path
getLogFolder()
static void
setAppName(String name)
-
-
-
Field Detail
-
PROP_APP_NAME
static final String PROP_APP_NAME
-
__INSTANCE
static final AtomicReference<PreferencesHandler> __INSTANCE
-
-
Method Detail
-
getInstance
@Nonnull static PreferencesHandler getInstance()
main() probably needs it and Spring has not booted yet, so this class can be accessed also by this factory method. Note that Spring instantiates the bean by calling this method, so we really have a singleton.
-
-