*/
import org.apache.archiva.redback.system.check.EnvironmentCheck;
+import org.apache.commons.lang.time.StopWatch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
{
Collection<EnvironmentCheck> checkers = applicationContext.getBeansOfType( EnvironmentCheck.class ).values();
+ StopWatch stopWatch = new StopWatch();
+ stopWatch.reset();
+ stopWatch.start();
+
if ( checkers != null )
{
List<String> violations = new ArrayList<String>();
log.error( msg.toString() );
}
}
+
+ stopWatch.stop();
+ log.info( "time to execute all EnvironmentCheck: {} ms", stopWatch.getTime() );
}
}