public static void buildFieldProperties ( final Class < ? > aClass , final DescriptionBuilder builder ) { for ( final Field field : collectClassFields ( aClass ) ) { final PluginProperty annotation = field . getAnnotation ( PluginProperty . class ) ; if ( null == annotation ) { continue ; } final Property pbuild = propertyFromField ( field , annotation ) ; if ( null == pbuild ) { continue ; } builder . property ( pbuild ) ; } }
Add properties based on introspection of a class