Package com.sun.enterprise.deployment.annotation

Examples of com.sun.enterprise.deployment.annotation.Scanner


    }

    public static Scanner createScanner(BundleDescriptor bundleDesc,
            Archivist archivist, AbstractArchive abstractArchive,
            ClassLoader classLoader) throws IOException {
        Scanner scanner = null;
        File f = new File(abstractArchive.getArchiveUri());

        if (ModuleType.EJB.equals(archivist.getModuleType())) {
            scanner = new EjbJarScanner(f, (EjbBundleDescriptor)bundleDesc,
                   classLoader);
View Full Code Here


     */   
    public ProcessingResult process(ProcessingContext ctx)
        throws AnnotationProcessorException
    {
       
        Scanner scanner = ctx.getProcessingInput();
        ProcessingResultImpl result = new ProcessingResultImpl();
        errorCount=0;
       
        for (Class c : scanner.getElements()) {
           
            result.add(process(ctx, c));         
        }
        return result;
    }
View Full Code Here

    }
   
    private ProcessingResult process(ProcessingContext ctx, Class c)
        throws AnnotationProcessorException {
       
        Scanner scanner = ctx.getProcessingInput();
        ProcessingResultImpl result = new ProcessingResultImpl();
       
        // let's see first if this package is new to us and annotated.
        Package classPackage = c.getPackage();
        if (classPackage != null && visitedPackages.add(classPackage)) {
            // new package
            result.add(classPackage,
                    processAnnotations(ctx, ElementType.PACKAGE, classPackage));
        }

        ComponentInfo info = null;
        try {
            info = scanner.getComponentInfo(c);
        } catch (NoClassDefFoundError err) {
            // issue 456: allow verifier to report this issue
            AnnotationProcessorException ape =
                    new AnnotationProcessorException(
                            AnnotationUtils.getLocalString(
View Full Code Here

        if (aeHandler == null) {
            return null;
        }
       
        Scanner scanner = ScannerFactory.createScanner(
                bundleDesc, this, abstractArchive, classLoader);
        if (!scanner.getElements().isEmpty()) {
            if (bundleDesc.isDDWithNoAnnotationAllowed()) {
                // if we come into this block, it means an old version
                // of deployment descriptor has annotation which is not correct
                // throw exception in this case
                String ddName =
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.annotation.Scanner

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.