public RestControllerProcessor(Log log,Swagger swagger,String restJavaPackage,String tagPatternTemplate,Class<?> modelErrorClass) throws MojoExecutionException {
  this.log=log;
  this.swagger=swagger;
  this.restJavaPackage=restJavaPackage;
  this.modelErrorClass=modelErrorClass;
  tagPattern=Pattern.compile(tagPatternTemplate);
  findAndProcessRestControllers();
}

public RestControllerProcessor ( Log log , Swagger swagger , String restJavaPackage , String tagPatternTemplate , Class < ? > modelErrorClass ) throws MojoExecutionException { this . log = log ; this . swagger = swagger ; this . restJavaPackage = restJavaPackage ; this . modelErrorClass = modelErrorClass ; tagPattern = Pattern . compile ( tagPatternTemplate ) ; findAndProcessRestControllers ( ) ; }
instantiates a rest controller process which finds and processes rest controllers .
