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

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


         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);
         }
      }
View Full Code Here


                                    final String id)
                                       throws FileNotFoundException, JiBXException {

      LOGGER.debug("getService " + applicationName + " - " + id);

      Service service;

      File serviceConfigFile =
         new File(configPath + File.separator + applicationName
            + File.separator + "restdoc-service-" + id + ".xml");

      service =
         JiBXUtils.unmarshallService(new FileInputStream(serviceConfigFile));

      service.setContext(applicationName);

      serviceConfigFile = null;

      return service;
View Full Code Here

TOP

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

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.