|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.croesch.micro_debug.properties.APropertiesProvider
public abstract class APropertiesProvider
Provides properties for different files.
| Constructor Summary | |
|---|---|
APropertiesProvider(char separator)
Constructs a new properties provider that can manage different files. |
|
| Method Summary | |
|---|---|
protected abstract java.util.Properties |
createNewProperties(java.lang.String file)
Create the properties for the given file. |
java.lang.String |
get(java.lang.String file,
java.lang.String key)
Returns the value for the given key in the given file. |
static java.lang.String |
replacePlaceholdersInString(java.lang.String str,
java.lang.Object... args)
Replaces all placeholders in the given string, with the given arguments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public APropertiesProvider(char separator)
separator - the character to separate different parts in the key.| Method Detail |
|---|
@NotNull
public static java.lang.String replacePlaceholdersInString(java.lang.String str,
java.lang.Object... args)
str - the string to replace the placeholders inargs - the arguments
@Nullable
public final java.lang.String get(java.lang.String file,
java.lang.String key)
file - the path of the file, without file extension!key - the key to fetch the value for
null if the given file path or key is null.@NotNull protected abstract java.util.Properties createNewProperties(java.lang.String file)
file - the path of the file, without file extension!
Properties that contain the content of the given file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||