void prepare ( ) { if ( getMeasures ( ) == null || getMeasures ( ) . isEmpty ( ) ) setMeasureObjects ( Arrays . asList ( HLAMeasure . values ( ) ) ) ; else setMeasureObjects ( HLAMeasure . convert ( getMeasures ( ) ) ) ; if ( getUserName ( ) != null && ! getUserName ( ) . isEmpty ( ) ) setExtractor ( SonarHLAFactory . getExtractor ( getHostUrl ( ) , getUserName ( ) , getPassword ( ) ) ) ; else setExtractor ( SonarHLAFactory . getExtractor ( getHostUrl ( ) ) ) ; setConverter ( SonarHLAFactory . getConverterInstance ( ) ) ; LOG . info ( "Initialized " + getMeasureObjects ( ) . size ( ) + " measures." ) ; }
Prepare and initialize necessary internal values before actually accessing Sonar - HLA .