public static DynamicProperty getInstance ( String propName ) { // This is to ensure that a configuration source is registered with // DynamicProperty if ( dynamicPropertySupportImpl == null ) { DynamicPropertyFactory . getInstance ( ) ; } DynamicProperty prop = ALL_PROPS . get ( propName ) ; if ( prop == null ) { prop = new DynamicProperty ( propName ) ; DynamicProperty oldProp = ALL_PROPS . putIfAbsent ( propName , prop ) ; if ( oldProp != null ) { prop = oldProp ; } } return prop ; }
Gets the DynamicProperty for a given property name . This may be a previously constructed object or an object constructed on - demand to satisfy the request .