Package com.iggroup.oss.restdoclet.doclet.type

Examples of com.iggroup.oss.restdoclet.doclet.type.Controller


         if (isAnnotated(classDoc,
            org.springframework.stereotype.Controller.class)) {
            LOG.info("Found controller.  Generating javadoc xml for "
               + classDoc.qualifiedName() + ".java");
            marshallController(
               new ControllerBuilder().build(new Controller(), classDoc),
               DocletUtils.documentationFile(classDoc));
            found = true;
         }
      }
      if (!found) {
View Full Code Here


            "No controller javadoc found.  Is the javadoc plugin configured correctly?");
      }
      for (final File file : cfiles) {
         LOG.debug(file.getAbsolutePath() + File.separatorChar
            + file.getName());
         final Controller cntrl = JiBXUtils.unmarshallController(file);
         LOG.info(cntrl.getType());
         for (Method m : cntrl.getMethods()) {
            LOG.info(m.toString());
         }
         if (!controllers.contains(cntrl)) {
            controllers.add(cntrl);
         }
View Full Code Here

      LOG.info("Processing controllers...");
      for (String uri : uriControllerMappings.keySet()) {
         LOG.info(new StringBuilder().append("Processing controllers for ")
            .append(uri).toString());
         Controller controller = uriControllerMappings.get(uri);
         LOG.info(new StringBuilder().append("Found controller ")
            .append(uriControllerMappings.get(uri).getType()).toString());
         ArrayList<Method> matches = uriMethodMappings.get(uri);
         LOG.info(new StringBuilder().append("Found methods ")
            .append(matches.toString()).append(" ").append(matches.size())
            .toString());

         Service service =
            new Service(identifier, multiUriMappings.get(uri), new Controller(
               controller.getType(), controller.getJavadoc(), matches));
         services.add(service);
         service.assertValid();
         JiBXUtils.marshallService(service,
            ServiceUtils.serviceFile(dirs, identifier));
         identifier++;
      }

      LOG.info("Processing services...");
      Services list = new Services();
      for (Service service : services) {
         org.apache.commons.collections.Predicate predicate =
            new ControllerTypePredicate(service.getController().getType());
         if (CollectionUtils.exists(list.getControllers(), predicate)) {
            ControllerSummary controller =
               (ControllerSummary) CollectionUtils.find(list.getControllers(),
                  predicate);
            controller.addService(service);
         } else {
            ControllerSummary controller =
               new ControllerSummary(service.getController().getType(),
                  service.getController().getJavadoc());
            controller.addService(service);
            list.addController(controller);
         }
      }

      LOG.info("Marshalling services...");
View Full Code Here

TOP

Related Classes of com.iggroup.oss.restdoclet.doclet.type.Controller

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.