Shortcut to build a descriptor from an existing annotated helper class. @param topBlock the top-level annotated class @return a new descriptor builder @see unquietcode.tools.flapi.annotations.AnnotationIntrospector
(Class<?> topBlock)
| 60 | * @see unquietcode.tools.flapi.annotations.AnnotationIntrospector |
| 61 | */ |
| 62 | public static DescriptorConfiguratorBuilder.Start create(Class<?> topBlock) { |
| 63 | checkNotNull(topBlock, "a starting block is required"); |
| 64 | |
| 65 | DescriptorOutline outline = AnnotationIntrospector.createDescriptor(topBlock); |
| 66 | DescriptorConfiguratorHelperImpl helper = new DescriptorConfiguratorHelperImpl(outline); |
| 67 | |
| 68 | return DescriptorConfiguratorGenerator.create(helper); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Set the JDK version that Flapi should use when generating source files. |