Package org.exoplatform.services.rest.resource

Examples of org.exoplatform.services.rest.resource.AbstractResourceDescriptor.accept()


      }
      try
      {
         AbstractResourceDescriptor descriptor = new AbstractResourceDescriptorImpl(resourceClass, invokerFactory);
         // validate AbstractResourceDescriptor
         descriptor.accept(rdv);
         if (properties != null)
            descriptor.getProperties().putAll(properties);
         addResource(new PerRequestObjectFactory<AbstractResourceDescriptor>(descriptor));
      }
      catch (Exception e)
View Full Code Here


      }
      try
      {
         AbstractResourceDescriptor descriptor = new AbstractResourceDescriptorImpl(resource, invokerFactory);
         // validate AbstractResourceDescriptor
         descriptor.accept(rdv);
         if (properties != null)
            descriptor.getProperties().putAll(properties);
         addResource(new SingletonObjectFactory<AbstractResourceDescriptor>(descriptor, resource));
      }
      catch (Exception e)
View Full Code Here

   public void testAbstractResourceDescriptorValidator()
   {
      AbstractResourceDescriptor resource = new AbstractResourceDescriptorImpl(Resource2.class);
      try
      {
         resource.accept(new ResourceDescriptorValidator());
         fail("Exception should be here");
      }
      catch (RuntimeException e)
      {
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.