public void importVectors(Class<?> clazz){
  Field fields[]=clazz.getDeclaredFields();
  for (int i=0; i < fields.length; i++) {
    Field field=fields[i];
    Annotation annotation=field.getAnnotation(TraceVectorArgDesc.class);
    if (annotation == null)     continue;
    TraceVectorArgDesc argDesc=(TraceVectorArgDesc)annotation;
    try {
      int target=field.getInt(field);
      add(argDesc.component(),argDesc.category(),target,argDesc.description());
    }
 catch (    Exception e) {
      logger.warn(String.format("Failed to add vector for field '%s'",field.getName()));
    }
  }
}

public void importVectors ( Class < ? > clazz ) { Field fields [ ] = clazz . getDeclaredFields ( ) ; for ( int i = 0 ; i < fields . length ; i ++ ) { Field field = fields [ i ] ; Annotation annotation = field . getAnnotation ( TraceVectorArgDesc . class ) ; if ( annotation == null ) continue ; TraceVectorArgDesc argDesc = ( TraceVectorArgDesc ) annotation ; try { int target = field . getInt ( field ) ; add ( argDesc . component ( ) , argDesc . category ( ) , target , argDesc . description ( ) ) ; } catch ( Exception e ) { logger . warn ( String . format ( "Failed to add vector for field '%s'" , field . getName ( ) ) ) ; } } }
this method populates the local trace vector manager by using the tracevectorargdesc annotations that it finds on a given class
