Package org.jboss.forge.addon.angularjs.util

Examples of org.jboss.forge.addon.angularjs.util.RestResourceTypeVisitor


      {
         for (JavaClassSource klass : targets.getValue())
         {
            Project project = getSelectedProject(context.getUIContext());
            JavaSourceFacet javaSource = project.getFacet(JavaSourceFacet.class);
            RestResourceTypeVisitor restTypeVisitor = new RestResourceTypeVisitor();
            String entityTable = getEntityTable(klass);
            String proposedResourcePath = "/" + inflector.pluralize(entityTable.toLowerCase());
            restTypeVisitor.setProposedPath(proposedResourcePath);
            javaSource.visitJavaSources(restTypeVisitor);
            if (restTypeVisitor.isFound())
            {
               entitiesWithRestResources.add(klass.getQualifiedName());
            }
         }
      }
View Full Code Here

TOP

Related Classes of org.jboss.forge.addon.angularjs.util.RestResourceTypeVisitor

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.