public final class RTGovProperties extends Object
Modifier and Type | Method and Description |
---|---|
static Properties |
getProperties()
This method returns the Runtime Governance properties.
|
static RTGovPropertiesProvider |
getPropertiesProvider()
This method gets the Runtime Governance properties.
|
static String |
getProperty(String name)
This method returns the named property.
|
static String |
getProperty(String name,
String def)
This method returns the named property.
|
static Boolean |
getPropertyAsBoolean(String name)
This method returns the named property as a
boolean.
|
static Boolean |
getPropertyAsBoolean(String name,
Boolean def)
This method returns the named property as a
boolean.
|
static Integer |
getPropertyAsInteger(String name)
This method returns the named property as an
integer.
|
static Integer |
getPropertyAsInteger(String name,
Integer def)
This method returns the named property as an
integer.
|
static Long |
getPropertyAsLong(String name)
This method returns the named property as an
long.
|
static Long |
getPropertyAsLong(String name,
Long def)
This method returns the named property as an
long.
|
static void |
setPropertiesProvider(RTGovPropertiesProvider props)
This method sets the Runtime Governance properties.
|
public static void setPropertiesProvider(RTGovPropertiesProvider props)
props
- The propertiespublic static RTGovPropertiesProvider getPropertiesProvider()
public static String getProperty(String name)
name
- The property namepublic static String getProperty(String name, String def)
name
- The property namedef
- The optional defaultpublic static Boolean getPropertyAsBoolean(String name)
name
- The property namepublic static Boolean getPropertyAsBoolean(String name, Boolean def)
name
- The property namedef
- The optional defaultpublic static Integer getPropertyAsInteger(String name)
name
- The property namepublic static Integer getPropertyAsInteger(String name, Integer def)
name
- The property namedef
- The optional defaultpublic static Long getPropertyAsLong(String name)
name
- The property namepublic static Long getPropertyAsLong(String name, Long def)
name
- The property namedef
- The optional defaultpublic static Properties getProperties()
Copyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.