Helper routines for accessing properties.
More...
|
| static final boolean | isTrusted (final String propertyKey) |
| |
| static final int | getIntProperty (final String property, final boolean jnlpAlias, final int defaultValue) |
| |
| static final long | getLongProperty (final String property, final boolean jnlpAlias, final long defaultValue) |
| |
| static final boolean | getBooleanProperty (final String property, final boolean jnlpAlias) |
| |
| static final boolean | getBooleanProperty (final String property, final boolean jnlpAlias, final boolean defaultValue) |
| |
| static final boolean | isPropertyDefined (final String property, final boolean jnlpAlias) |
| |
| static final String | getProperty (final String propertyKey, final boolean jnlpAlias) throws SecurityException, NullPointerException, IllegalArgumentException |
| | Query the property with the name propertyKey. More...
|
| |
| static final String | getProperty (final String propertyKey, final boolean jnlpAlias, final String defaultValue) throws SecurityException, NullPointerException, IllegalArgumentException |
| | See getProperty(String, boolean), additionally allows a defaultValue if property value is null. More...
|
| |
|
| static final void | addTrustedPrefix (final String prefix) throws AccessControlException |
| |
Helper routines for accessing properties.
Definition at line 36 of file PropertyAccess.java.
◆ addTrustedPrefix()
| static final void com.jogamp.common.util.PropertyAccess.addTrustedPrefix |
( |
final String |
prefix | ) |
throws AccessControlException |
|
staticprotected |
- Parameters
-
| prefix | New prefix to be registered as trusted. |
- Exceptions
-
Definition at line 62 of file PropertyAccess.java.
◆ getBooleanProperty() [1/2]
| static final boolean com.jogamp.common.util.PropertyAccess.getBooleanProperty |
( |
final String |
property, |
|
|
final boolean |
jnlpAlias |
|
) |
| |
|
static |
◆ getBooleanProperty() [2/2]
| static final boolean com.jogamp.common.util.PropertyAccess.getBooleanProperty |
( |
final String |
property, |
|
|
final boolean |
jnlpAlias, |
|
|
final boolean |
defaultValue |
|
) |
| |
|
static |
◆ getIntProperty()
| static final int com.jogamp.common.util.PropertyAccess.getIntProperty |
( |
final String |
property, |
|
|
final boolean |
jnlpAlias, |
|
|
final int |
defaultValue |
|
) |
| |
|
static |
◆ getLongProperty()
| static final long com.jogamp.common.util.PropertyAccess.getLongProperty |
( |
final String |
property, |
|
|
final boolean |
jnlpAlias, |
|
|
final long |
defaultValue |
|
) |
| |
|
static |
◆ getProperty() [1/2]
| static final String com.jogamp.common.util.PropertyAccess.getProperty |
( |
final String |
propertyKey, |
|
|
final boolean |
jnlpAlias |
|
) |
| throws SecurityException, NullPointerException, IllegalArgumentException |
|
static |
Query the property with the name propertyKey.
If jnlpAlias is true and the plain propertyKey could not be resolved, an attempt to resolve the JNLP aliased trusted property is made.
Example: For the propertyName OneTwo, the jnlp alias name is jnlp.OneTwo, which is considered trusted.
- Parameters
-
| propertyKey | the property name to query. |
| jnlpAlias | true if a fallback attempt to query the JNLP aliased trusted property shall be made, otherwise false. |
- Returns
- the property value if exists, or null
- Exceptions
-
| NullPointerException | if the property name is null |
| IllegalArgumentException | if the property name is of length 0 |
| SecurityException | if access is not allowed to the given propertyKey |
- See also
- System::getProperty(String)
Definition at line 138 of file PropertyAccess.java.
◆ getProperty() [2/2]
| static final String com.jogamp.common.util.PropertyAccess.getProperty |
( |
final String |
propertyKey, |
|
|
final boolean |
jnlpAlias, |
|
|
final String |
defaultValue |
|
) |
| throws SecurityException, NullPointerException, IllegalArgumentException |
|
static |
◆ isPropertyDefined()
| static final boolean com.jogamp.common.util.PropertyAccess.isPropertyDefined |
( |
final String |
property, |
|
|
final boolean |
jnlpAlias |
|
) |
| |
|
static |
◆ isTrusted()
| static final boolean com.jogamp.common.util.PropertyAccess.isTrusted |
( |
final String |
propertyKey | ) |
|
|
static |
◆ javaws_prefix
| final String com.jogamp.common.util.PropertyAccess.javaws_prefix = "javaws." |
|
static |
◆ jnlp_prefix
| final String com.jogamp.common.util.PropertyAccess.jnlp_prefix = "jnlp." |
|
static |
The documentation for this class was generated from the following file: