Package org.wicketstuff.rest.annotations

Examples of org.wicketstuff.rest.annotations.ResourcePath


  }

  private static void mountAnnotatedResource(WebApplication application, Class<?> clazz)
      throws InstantiationException, IllegalAccessException
  {
    ResourcePath mountAnnotation = clazz.getAnnotation(ResourcePath.class);

    if (mountAnnotation == null || !IResource.class.isAssignableFrom(clazz))
    {
      return;
    }

    String path = mountAnnotation.value();
    final IResource resourceInstance = (IResource) clazz.newInstance();

    application.mountResource(path, new ResourceReference(clazz.getSimpleName())
    {
      /**
 
View Full Code Here

TOP

Related Classes of org.wicketstuff.rest.annotations.ResourcePath

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.