< T > T getDefault ( String mpConfigPropName , T defaultValue ) { MPConfigAccessor accessor = cmProvider . mpConfigAccessor ; if ( accessor != null ) { Object mpConfig = mpConfigRef . get ( ) ; if ( mpConfig == Boolean . FALSE ) // not initialized yet if ( ! mpConfigRef . compareAndSet ( Boolean . FALSE , mpConfig = accessor . getConfig ( ) ) ) mpConfig = mpConfigRef . get ( ) ; if ( mpConfig != null ) defaultValue = accessor . get ( mpConfig , mpConfigPropName , defaultValue ) ; } return defaultValue ; }
Obtain a default value from MicroProfile Config if available .