public class PersistentProperty extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PersistentProperty.InMemoryPersistentPropertyProvider
Default provider.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
propertyName
Property name.
|
protected String |
propertyValue |
protected static PersistentPropertyProvider |
provider
By default, we provide an in-memory "persistent" provider.
|
| Constructor and Description |
|---|
PersistentProperty() |
PersistentProperty(String propertyName,
String propertyValue) |
protected static PersistentPropertyProvider provider
protected String propertyName
protected String propertyValue
public static void setProvider(PersistentPropertyProvider p)
public String getPropertyName()
public String getPropertyValue()
public static <B,A extends PersistentPropertyKey<B>> String getProperty(A ns, B key, String defValue)
public static List<PersistentProperty> getAll()
public static String getProperty(String key) throws NoPersistentPropertyException
NoPersistentPropertyExceptionpublic static <B,A extends PersistentPropertyKey<B>> String getProperty(A ns, B key) throws NoPersistentPropertyException
NoPersistentPropertyExceptionpublic static <B,A extends PersistentPropertyKey<B>> String setProperty(A ns, B key, String value)
public static <B,A extends PersistentPropertyKey<B>> String removeProperty(A ns, B key)
public static <B,A extends PersistentPropertyKey<B>> String getPropertyWithFallback(A ns, B key)
public static <B,A extends PersistentPropertyKey<B>> String getPropertyWithFallback(A ns, B key, String def)
public static boolean getBooleanPropertyWithFallback(String key)
public static <B,A extends PersistentPropertyKey<B>> boolean getBooleanPropertyWithFallback(A ns, B key)
public static boolean getBooleanPropertyWithFallback(String key, boolean def)
public static <B,A extends PersistentPropertyKey<B>> boolean getBooleanPropertyWithFallback(A ns, B key, boolean def)
public static long getLongPropertyWithFallback(String key)
public static <B,A extends PersistentPropertyKey<B>> long getLongPropertyWithFallback(A ns, B key)
public static long getLongPropertyWithFallback(String key, long def)
public static <B,A extends PersistentPropertyKey<B>> long getLongPropertyWithFallback(A ns, B key, long def)
public static int getIntegerPropertyWithFallback(String key)
public static <B,A extends PersistentPropertyKey<B>> int getIntegerPropertyWithFallback(A ns, B key)
public static int getIntegerPropertyWithFallback(String key, int def)
public static <B,A extends PersistentPropertyKey<B>> int getIntegerPropertyWithFallback(A ns, B key, int def)
Copyright © 2018 Orbital Enterprises. All rights reserved.