public String getProperty ( Property property , String defaultValue ) { String value = null ; List < String > systemProps = property . getSystemPropertyNames ( ) ; if ( systemProps != null ) { for ( String sp : systemProps ) { value = System . getProperty ( sp ) ; if ( value != null ) { break ; } } } if ( value == null ) { List < String > envVars = property . getEnvironmentVariableNames ( ) ; if ( envVars != null ) { for ( String ev : envVars ) { value = System . getenv ( ev ) ; if ( value != null ) { break ; } } } } if ( value == null && property . getPropertyName ( ) != null ) { value = implementationConfiguration . get ( property . getPropertyName ( ) ) ; } return value == null ? defaultValue : value ; }
Returns the value of the property .