Package org.exoplatform.management.rest.annotations

Examples of org.exoplatform.management.rest.annotations.RESTEndpoint


   public Object manage(ManagedResource managedResource)
   {
      Object resource = managedResource.getResource();

      //
      RESTEndpoint annotation = resource.getClass().getAnnotation(RESTEndpoint.class);

      //
      if (annotation != null)
      {
         String name = annotation.path();
         ResourceKey key = new ResourceKey(name);
         resourceMap.put(key, new RestResource(name, managedResource));
         return key;
      }
View Full Code Here


    public Object manage(ManagedResource managedResource) {
        Object resource = managedResource.getResource();

        //
        RESTEndpoint annotation = resource.getClass().getAnnotation(RESTEndpoint.class);

        //
        if (annotation != null) {
            String name = annotation.path();
            ResourceKey key = new ResourceKey(name);
            resourceMap.put(key, new RestResource(name, managedResource));
            return key;
        }
View Full Code Here

   public Object manage(ManagedResource managedResource)
   {
      Object resource = managedResource.getResource();

      //
      RESTEndpoint annotation = resource.getClass().getAnnotation(RESTEndpoint.class);

      //
      if (annotation != null)
      {
         String name = annotation.path();
         ResourceKey key = new ResourceKey(name);
         resourceMap.put(key, new RestResource(name, managedResource));
         return key;
      }
View Full Code Here

TOP

Related Classes of org.exoplatform.management.rest.annotations.RESTEndpoint

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.