@CheckForNull
    public static Constructor getDataBoundConstructor(@NonNull Class type) {
        for (Constructor c : type.getConstructors()) {
            if (c.getAnnotation(DataBoundConstructor.class) != null) {
                return c;
            }
        }
        return null;
    }
A generic {@link Configurator} to configure components with a {@link org.kohsuke.stapler.DataBoundConstructor}.
Intended to replicate Stapler's request-to-instance lifecycle, including {@link PostConstruct} init methods.
Will rely on <a href="https://github.com/jenkinsci/jep/tree/master/jep/205">JEP-205</a> once implemented

@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
plugin/src/main/java/io/jenkins/plugins/casc/impl/configurators/DataBoundConfigurator.java