public abstract class AbstractConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
immutable
Whether this config has been marked immutable.
|
protected org.slf4j.Logger |
logger
Logger for this class.
|
| Constructor and Description |
|---|
AbstractConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkImmutable()
Verifies if this config is immutable.
|
protected void |
checkStringInput(java.lang.String s,
boolean allowNull)
Verifies that a string is not null or empty.
|
void |
makeImmutable()
Make this config immutable.
|
protected final org.slf4j.Logger logger
private boolean immutable
public void makeImmutable()
public void checkImmutable()
java.lang.IllegalStateException - if this config is immutableprotected void checkStringInput(java.lang.String s,
boolean allowNull)
s - to verifyallowNull - whether null strings are validjava.lang.IllegalArgumentException - if the string is null or empty