Class SystemPropertySource
java.lang.Object
org.apache.tomcat.util.digester.SystemPropertySource
- All Implemented Interfaces:
IntrospectionUtils.PropertySource, IntrospectionUtils.SecurePropertySource
A
IntrospectionUtils.SecurePropertySource that uses system properties to resolve
expressions. This property source is always active by default.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String key) Returns the value of the property with the specified key.getProperty(String key, ClassLoader classLoader) Obtain a property value, checking that code associated with the provided class loader has permission to access the property.
-
Constructor Details
-
SystemPropertySource
public SystemPropertySource()Constructs a new SystemPropertySource.
-
-
Method Details
-
getProperty
Description copied from interface:IntrospectionUtils.PropertySourceReturns the value of the property with the specified key.- Specified by:
getPropertyin interfaceIntrospectionUtils.PropertySource- Parameters:
key- The property key- Returns:
- the property value, or
nullif not found
-
getProperty
Description copied from interface:IntrospectionUtils.SecurePropertySourceObtain a property value, checking that code associated with the provided class loader has permission to access the property. If theclassLoaderisnullor ifclassLoaderdoes not implementPermissionCheckthen the property value will be looked up without a call toPermissionCheck.check(java.security.Permission)- Specified by:
getPropertyin interfaceIntrospectionUtils.SecurePropertySource- Parameters:
key- The key of the requested propertyclassLoader- The class loader associated with the code that trigger the property lookup- Returns:
- The property value or
nullif it could not be found or ifPermissionCheck.check(java.security.Permission)fails
-