public class PropUtil extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
getBooleanProperty(Properties props,
String name,
boolean def)
Get a boolean valued property.
|
static boolean |
getBooleanSessionProperty(Session session,
String name,
boolean def)
Deprecated.
|
static boolean |
getBooleanSystemProperty(String name,
boolean def)
Get a boolean valued System property.
|
static int |
getIntProperty(Properties props,
String name,
int def)
Get an integer valued property.
|
static int |
getIntSessionProperty(Session session,
String name,
int def)
Deprecated.
|
public static int getIntProperty(Properties props, String name, int def)
props
- the propertiesname
- the property namedef
- default value if property not foundpublic static boolean getBooleanProperty(Properties props, String name, boolean def)
props
- the propertiesname
- the property namedef
- default value if property not found@Deprecated public static int getIntSessionProperty(Session session, String name, int def)
session
- the Sessionname
- the property namedef
- default value if property not found@Deprecated public static boolean getBooleanSessionProperty(Session session, String name, boolean def)
session
- the Sessionname
- the property namedef
- default value if property not foundpublic static boolean getBooleanSystemProperty(String name, boolean def)
name
- the property namedef
- default value if property not foundCopyright © 2018 JBoss by Red Hat. All rights reserved.