Examples of ClassFinder


Examples of org.apache.xbean.finder.ClassFinder

            namingFacesConfigs.add(annotationsFacesConfig);
        }
        namingFacesConfigs.addAll(contextSpecifiedFacesConfigs);
        namingFacesConfigs.addAll(metaInfFacesConfigs);

        ClassFinder classFinder = createMyFacesClassFinder(namingFacesConfigs, bundle);
        webModule.setClassFinder(classFinder);

        namingBuilders.buildNaming(webApp, jettyWebApp, webModule, buildingContext);

        AbstractName providerName = moduleContext.getNaming().createChildName(moduleName, "jsf-lifecycle", "jsf");
View Full Code Here

Examples of org.apache.xbean.finder.ClassFinder

                } catch (ClassNotFoundException e) {
                    log.warn("MyFacesModuleBuilderExtension: Could not load managed bean class: " + className);
                }
            }
        }
        return new ClassFinder(managedBeanClasses);
    }
View Full Code Here

Examples of org.apache.xbean.finder.ClassFinder

                    managedBeanClasses.add(clas);
                    clas = clas.getSuperclass();
                }
            }
        }
        return new ClassFinder(managedBeanClasses);
    }
View Full Code Here

Examples of org.apache.xbean.finder.ClassFinder

        WebApp webApp = webModule.getSpecDD();
        XmlObject geronimoWebApp = webModule.getVendorDD();

        AbstractFinder originalFinder = webModule.getClassFinder();
        ClassFinder classFinder = createOpenWebBeansClassFinder(webApp, webModule);
        webModule.setClassFinder(classFinder);
        namingBuilders.buildNaming(webApp, geronimoWebApp, webModule, buildingContext);
        webModule.setClassFinder(originalFinder);
       
View Full Code Here

Examples of org.apache.xbean.finder.ClassFinder

    }

    protected ClassFinder createOpenWebBeansClassFinder(WebApp webApp, WebModule webModule)
        throws DeploymentException {
        List<Class<?>> classes = getManagedClasses(webApp, webModule);
        return new ClassFinder(classes);
    }
View Full Code Here

Examples of org.apache.xbean.finder.ClassFinder

        Map<String, Bundle> tldLocationBundleMap = getTldFiles(webApp, webModule);
        LinkedHashSet<Class<?>> classes = getListenerClasses(webApp, webModule, tldLocationBundleMap, listenerNames);
       
        AbstractFinder originalClassFinder = webModule.getClassFinder();
        ClassFinder classFinder = new ClassFinder(new ArrayList<Class<?>>(classes));
        webModule.setClassFinder(classFinder);
        namingBuilders.buildNaming(webApp, jettyWebApp, webModule, buildingContext);
        webModule.setClassFinder(originalClassFinder);

        //only try to install it if reference will work.
View Full Code Here

Examples of org.apache.xbean.finder.ClassFinder

        try {
            tempClassLoader = new JarFileClassLoader(null, urls, parentClassLoader);
            List<Class<?>> classes = new ArrayList<Class<?>>();
            for (URL url : urlList) {
                try {
                    ClassFinder classFinder = new ClassFinder(tempClassLoader, Collections.singletonList(url));
                    classes.addAll(classFinder.findAnnotatedClasses(WebService.class));
                    classes.addAll(classFinder.findAnnotatedClasses(WebServiceProvider.class));
                } catch (Exception e) {
                    logger.warn("Fail to search Web Service in jar [" + url + "]", e);
                }
            }
            return classes;
View Full Code Here

Examples of org.apache.xbean.finder.ClassFinder

                addClass(bundle, classes, filter.getFilterClass());
            }
            for (Listener listener : webApp.getListener()) {
                addClass(bundle, classes, listener.getListenerClass());
            }
            return new ClassFinder(new ArrayList<Class<?>>(classes));
        } catch (Exception e) {
            throw new DeploymentException(e);
        }
    }
View Full Code Here

Examples of org.apache.xbean.finder.ClassFinder

        List<Class<?>> classes = new ArrayList<Class<?>>();
        while (clazz != Object.class) {
            classes.add(clazz);
            clazz = clazz.getSuperclass();
        }
        addWebServiceContextInjections(holder, new ClassFinder(classes));
    }
View Full Code Here

Examples of org.docx4j.finders.ClassFinder

    String inputfilepath = System.getProperty("user.dir") + "/checkbox.docx";
       
    WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new java.io.File(inputfilepath));   
    MainDocumentPart documentPart = wordMLPackage.getMainDocumentPart();
       
    ClassFinder finder = new ClassFinder(FldChar.class); // <----- change this to suit
    new TraversalUtil(documentPart.getContent(), finder);
   
    System.out.println("got " + finder.results.size()  );
   
    for (Object o : finder.results) {
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.