public static class Digester.EnvironmentPropertySource extends java.lang.Object implements IntrospectionUtils.SecurePropertySource
Constructor and Description |
---|
Digester.EnvironmentPropertySource() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProperty(java.lang.String key) |
java.lang.String |
getProperty(java.lang.String key,
java.lang.ClassLoader classLoader)
Obtain a property value, checking that code associated with the
provided class loader has permission to access the property.
|
public java.lang.String getProperty(java.lang.String key)
getProperty
in interface IntrospectionUtils.PropertySource
public java.lang.String getProperty(java.lang.String key, java.lang.ClassLoader classLoader)
IntrospectionUtils.SecurePropertySource
classLoader
is null
or if classLoader
does
not implement PermissionCheck
then the property value will be
looked up without a call to
PermissionCheck.check(java.security.Permission)
getProperty
in interface IntrospectionUtils.SecurePropertySource
key
- The key of the requested propertyclassLoader
- The class loader associated with the code that
trigger the property lookupnull
if it could not be found
or if PermissionCheck.check(java.security.Permission)
failsCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.