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()
RunOnceinitialize in interface RunOncepublic boolean isTrue()
RunOncepublic void changeState(RunOnceState state)
RunOncechangeState in interface RunOnceprotected 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.