Package org.jboss.scanning.hierarchy.spi

Examples of org.jboss.scanning.hierarchy.spi.HierarchyIndex


   {
      AnnotationIndex ai = unit.getAttachment(AnnotationIndex.class);
      if (ai == null)
         return;

      HierarchyIndex hi = unit.getAttachment(HierarchyIndex.class);
      if (hi == null)
         return;

      ResourcesIndex ri = new DefaultResourcesIndex(ai, hi);
      unit.addAttachment(ResourcesIndex.class, ri);
View Full Code Here


      }

      // look for Application class.  Don't scan for one if there is a declared one.
      if (declaredApplicationClass == null)
      {
         HierarchyIndex hier = du.getAttachment(HierarchyIndex.class);
         if (hier != null)
         {
            Set<Class<? extends Application>> applicationClass = hier.getSubClassesOf(null, Application.class);
            if (applicationClass != null)
            {
               if (applicationClass.size() > 1)
               {
                  StringBuilder builder = new StringBuilder("Only one JAX-RS Application Class allowed.");
View Full Code Here

TOP

Related Classes of org.jboss.scanning.hierarchy.spi.HierarchyIndex

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.