All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hudson.model.JobDescriptor Maven / Gradle / Ivy

package hudson.model;

import org.kohsuke.stapler.StaplerRequest;

/**
 * {@link Descriptor} for {@link Job}s.
 *
 * @author Kohsuke Kawaguchi
 */
public abstract class JobDescriptor,R extends Run> extends Descriptor> {
    protected JobDescriptor(Class> clazz) {
        super(clazz);
    }

    /**
     * @deprecated
     *      This is not a valid operation for {@link Job}s.
     */
    @Deprecated
    public Job newInstance(StaplerRequest req) throws FormException {
        throw new UnsupportedOperationException();
    }

    /**
     * Creates a new {@link Job}.
     */
    public abstract Job newInstance(String name);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy