Package org.jboss.scanning.plugins

Examples of org.jboss.scanning.plugins.DefaultScanner


   {
      DeploymentResourceLoader loader = new VFSDeploymentResourceLoaderImpl(root);
      ClassLoader classLoader = new DeploymentResourceClassLoader(loader);
      try
      {
         DefaultScanner scanner = new DefaultScanner(classLoader, root.toURL());
         AnnotationsScanningPlugin plugin = new AnnotationsScanningPlugin(classLoader)
         {
            @Override
            public ResourceFilter getRecurseFilter()
            {
               return recurseFilter;
            }
         };
         scanner.addPlugin(plugin);
         scanner.setIncluded(included);
         scanner.setExcluded(excluded);

         scanner.scan();

         return (AnnotationRepository) scanner.getHandles().get(plugin);
      }
      catch (Exception e)
      {
         throw new RuntimeException("Cannot create annotation repository: " + e);
      }
View Full Code Here

TOP

Related Classes of org.jboss.scanning.plugins.DefaultScanner

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.