/** * Creates a new {@link EnricherSpec} instance with the given config, for an enricher of the given type. * * This is primarily for groovy code; equivalent to {@code EnricherSpec.create(type).configure(config)}. * * @param config The spec's configuration (see {@link EnricherSpec#configure(Map)}). * @param type An {@link Enricher} class */ public static <T extends Enricher> EnricherSpec<T> create(Map<?,?> config, Class<T> type) { return EnricherSpec.create(type).configure(config); }