public final class FactoryManagerUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Boolean |
getBoolean(FactoryManager manager,
String name) |
static Boolean |
getBoolean(Map<String,?> props,
String name) |
static Boolean |
getBoolean(Session session,
String name) |
static boolean |
getBooleanProperty(FactoryManager manager,
String name,
boolean defaultValue) |
static boolean |
getBooleanProperty(Map<String,?> props,
String name,
boolean defaultValue) |
static boolean |
getBooleanProperty(Session session,
String name,
boolean defaultValue) |
static Integer |
getInteger(FactoryManager manager,
String name) |
static Integer |
getInteger(Map<String,?> props,
String name) |
static Integer |
getInteger(Session session,
String name) |
static int |
getIntProperty(FactoryManager manager,
String name,
int defaultValue) |
static int |
getIntProperty(Map<String,?> props,
String name,
int defaultValue) |
static int |
getIntProperty(Session session,
String name,
int defaultValue) |
static Long |
getLong(FactoryManager manager,
String name) |
static Long |
getLong(Map<String,?> props,
String name) |
static Long |
getLong(Session session,
String name) |
static long |
getLongProperty(FactoryManager manager,
String name,
long defaultValue) |
static long |
getLongProperty(Map<String,?> props,
String name,
long defaultValue) |
static long |
getLongProperty(Session session,
String name,
long defaultValue) |
static String |
getString(FactoryManager manager,
String name) |
static String |
getString(Map<String,?> props,
String name) |
static String |
getString(Session session,
String name) |
static String |
getStringProperty(FactoryManager manager,
String name,
String defaultValue) |
static String |
getStringProperty(Map<String,?> props,
String name,
String defaultValue) |
static String |
getStringProperty(Session session,
String name,
String defaultValue) |
static Object |
updateProperty(FactoryManager manager,
String name,
boolean value) |
static Object |
updateProperty(FactoryManager manager,
String name,
int value) |
static Object |
updateProperty(FactoryManager manager,
String name,
long value) |
static Object |
updateProperty(FactoryManager manager,
String name,
Object value) |
static Object |
updateProperty(Map<String,Object> props,
String name,
boolean value) |
static Object |
updateProperty(Map<String,Object> props,
String name,
int value) |
static Object |
updateProperty(Map<String,Object> props,
String name,
long value) |
static Object |
updateProperty(Map<String,Object> props,
String name,
Object value) |
static Object |
updateProperty(Session session,
String name,
boolean value) |
static Object |
updateProperty(Session session,
String name,
int value) |
static Object |
updateProperty(Session session,
String name,
long value) |
static Object |
updateProperty(Session session,
String name,
Object value) |
public static long getLongProperty(Session session, String name, long defaultValue)
session - The Session instancename - The property namedefaultValue - The default value to return if the specified property
does not exist in the properties mapNumberFormatException - if malformed valuepublic static long getLongProperty(FactoryManager manager, String name, long defaultValue)
manager - The FactoryManager instancename - The property namedefaultValue - The default value to return if the specified property
does not exist in the properties mapNumberFormatException - if malformed valuepublic static long getLongProperty(Map<String,?> props, String name, long defaultValue)
props - The properties Map - ignored if null/emptyname - The property namedefaultValue - The default value to return if the specified property
does not exist in the properties map or is an empty stringNumberFormatException - if malformed valuepublic static Long getLong(Session session, String name)
session - The Session instancename - The property nameLong value or null if property not found or empty stringNumberFormatException - if malformed valuepublic static Long getLong(FactoryManager manager, String name)
manager - The FactoryManager instancename - The property nameLong value or null if property not foundNumberFormatException - if malformed valuepublic static Long getLong(Map<String,?> props, String name)
props - The properties Map - ignored if null/emptyname - The property nameLong value or null if property not found or
empty stringNumberFormatException - if malformed valuepublic static Object updateProperty(FactoryManager manager, String name, long value)
public static Object updateProperty(Map<String,Object> props, String name, long value)
public static int getIntProperty(FactoryManager manager, String name, int defaultValue)
public static Integer getInteger(FactoryManager manager, String name)
public static Object updateProperty(FactoryManager manager, String name, int value)
public static Object updateProperty(Map<String,Object> props, String name, int value)
public static boolean getBooleanProperty(Session session, String name, boolean defaultValue)
public static boolean getBooleanProperty(FactoryManager manager, String name, boolean defaultValue)
public static boolean getBooleanProperty(Map<String,?> props, String name, boolean defaultValue)
public static Boolean getBoolean(FactoryManager manager, String name)
public static Object updateProperty(FactoryManager manager, String name, boolean value)
public static Object updateProperty(Map<String,Object> props, String name, boolean value)
public static String getStringProperty(Session session, String name, String defaultValue)
public static String getString(FactoryManager manager, String name)
public static String getStringProperty(FactoryManager manager, String name, String defaultValue)
public static String getStringProperty(Map<String,?> props, String name, String defaultValue)
public static Object updateProperty(FactoryManager manager, String name, Object value)
public static Object updateProperty(Map<String,Object> props, String name, Object value)
props - The Map of properties to updatename - The property namevalue - The property value - if null/empty then the
specified property is removed from the properties mapCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.