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

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


            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...");
      list.assertValid();
      JiBXUtils.marshallServices(list, ServiceUtils.servicesFile(dirs));
   }
View Full Code Here


    */
   public static Collection<Service> getServices(final String applicationName)
      throws FileNotFoundException, JiBXException {

      LOGGER.debug("getServices " + configPath + "/" + applicationName);
      Services services;

      File servicesConfigFile =
         new File(configPath + File.separator + applicationName
            + File.separator + "restdoc-services.xml");

      services =
         JiBXUtils.unmarshallServices(new FileInputStream(servicesConfigFile));

      for (Service service : services.getServices()) {
         service.setContext(applicationName);
      }

      servicesConfigFile = null;

      return services.getServices();

   }
View Full Code Here

                                            throws FileNotFoundException, JiBXException {

      LOGGER.debug("getServiceByUri " + configPath + " - " + applicationName
         + " - "
         + uri);
      Services services;

      File servicesConfigFile =
         new File(configPath + File.separator + applicationName
            + File.separator + "restdoc-services.xml");

      services =
         JiBXUtils.unmarshallServices(new FileInputStream(servicesConfigFile));

      for (Service service : services.getServices()) {
         LOGGER.debug(service.getContext() + " - " + service.getUris() + " - "
            + service.getIdentifier());
         for (Uri serviceUri : service.getUris()) {
            LOGGER.debug(serviceUri);
            if (serviceUri.getUri().equalsIgnoreCase(uri)) {
View Full Code Here

TOP

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

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.