Package org.cruxframework.crux.core.server.rest.annotation

Examples of org.cruxframework.crux.core.server.rest.annotation.RestService


        for (String service : restServices)
        {
          try
          {
            Class<?> serviceClass = Class.forName(service);
            RestService annot = serviceClass.getAnnotation(RestService.class);
            if (cruxRest.containsKey(annot.value()))
            {
              throw new ServiceMapperException("Duplicated rest service [{"+annot.value()+"}]. Overiding previous registration...");
            }
            cruxRest.put(annot.value(), service);
          }
          catch (ClassNotFoundException e)
          {
            throw new ServiceMapperException("Error initializing rest service class.",e);
          }
View Full Code Here


      for (String service : restServices)
      {
        try
        {
          Class<?> serviceClass = Class.forName(service);
          RestService annot = serviceClass.getAnnotation(RestService.class);
          if (serviceNames.containsKey(annot.value()))
          {
            logger.error("Duplicated rest service [{"+annot.value()+"}]. Overiding previous registration...");
          }
          serviceNames.put(annot.value(), service);
        }
        catch (ClassNotFoundException e)
        {
          logger.error("Error initializing rest service class.",e);
        }
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.core.server.rest.annotation.RestService

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.