public String getStringValue ( String property ) { final List < JawrConfigManagerMBean > mBeans = getInitializedConfigurationManagers ( ) ; try { if ( mBeans . size ( ) == 3 ) { if ( areEquals ( getProperty ( jsMBean , property ) , getProperty ( cssMBean , property ) , getProperty ( binaryMBean , property ) ) ) { return getProperty ( jsMBean , property ) ; } else { return NOT_IDENTICAL_VALUES ; } } if ( mBeans . size ( ) == 2 ) { JawrConfigManagerMBean mBean1 = mBeans . get ( 0 ) ; JawrConfigManagerMBean mBean2 = mBeans . get ( 1 ) ; if ( areEquals ( getProperty ( mBean1 , property ) , getProperty ( mBean2 , property ) ) ) { return getProperty ( mBean1 , property ) ; } else { return NOT_IDENTICAL_VALUES ; } } JawrConfigManagerMBean mBean1 = mBeans . get ( 0 ) ; return getProperty ( mBean1 , property ) ; } catch ( NoSuchMethodException | IllegalAccessException | InvocationTargetException e ) { return ERROR_VALUE ; } }
Returns the string value of the configuration managers