public static String get ( String name , String def ) { String val = null ; final String fname = name ; if ( System . getSecurityManager ( ) != null ) { try { val = AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { @ Override public String run ( ) { return System . getProperty ( fname ) ; } } ) ; } catch ( AccessControlException e ) { // ignore // TODO log this message } } else { val = System . getProperty ( name ) ; } if ( val == null ) { val = CONFIG_PROPS . getProperty ( name , def ) ; } return val ; }
Get ICU configuration property value for the given name .