public final class PropertiesFileRunOnce extends Object implements RunOnce
Modifier and Type | Class and Description |
---|---|
static class |
PropertiesFileRunOnce.Builder |
Modifier and Type | Method and Description |
---|---|
static PropertiesFileRunOnce.Builder |
builder(File file,
String encoding,
String key) |
void |
changeState(RunOnceState state)
Update state in a way that persists across JVM restarts (eg database table, properties file, etc)
|
String |
getEncoding() |
File |
getFile() |
String |
getKey() |
protected Properties |
getProperties() |
void |
initialize()
Do whatever is needed for isTrue() to return the correct value
|
boolean |
isTrue()
Indicates it is safe to run something once.
|
protected void |
showConfig() |
public void initialize()
RunOnce
initialize
in interface RunOnce
public boolean isTrue()
RunOnce
public void changeState(RunOnceState state)
RunOnce
changeState
in interface RunOnce
protected void showConfig()
protected Properties getProperties()
public static PropertiesFileRunOnce.Builder builder(File file, String encoding, String key)
public String getEncoding()
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.