Package org.glassfish.apf

Examples of org.glassfish.apf.Scanner


    }
   
    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


     * different version
     *
     */
    public ModuleScanner getScanner() {
       
        Scanner scanner = null;
        try {
            scanner = habitat.getComponent(Scanner.class, getModuleType().toString());
            if (scanner==null || !(scanner instanceof ModuleScanner)) {
                logger.log(Level.SEVERE, "Cannot find module scanner for " + this.getManifest());
            }
View Full Code Here

     * different version
     *
     */
    public ModuleScanner getScanner() {
       
        Scanner scanner = null;
        try {
            scanner = habitat.getComponent(Scanner.class, getModuleType().toString());
            if (scanner==null || !(scanner instanceof ModuleScanner)) {
                logger.log(Level.SEVERE, "Cannot find module scanner for " + this.getManifest());
            }
View Full Code Here

     * different version
     *
     */
    public ModuleScanner getScanner() {
       
        Scanner scanner = null;
        try {
            scanner = habitat.getService(Scanner.class, getModuleType().toString());
            if (scanner==null || !(scanner instanceof ModuleScanner)) {
                logger.log(Level.SEVERE, "Cannot find module scanner for " + this.getManifest());
            }
View Full Code Here

     * different version
     *
     */
    public ModuleScanner getScanner() {
       
        Scanner scanner = null;
        try {
            scanner = habitat.getService(Scanner.class, getModuleType().toString());
            if (scanner==null || !(scanner instanceof ModuleScanner)) {
                logger.log(Level.SEVERE, "Cannot find module scanner for " + this.getManifest());
            }
View Full Code Here

     * different version
     *
     */
    public ModuleScanner getScanner() {
       
        Scanner scanner = null;
        try {
            scanner = habitat.getService(Scanner.class, getModuleType().toString());
            if (scanner==null || !(scanner instanceof ModuleScanner)) {
                logger.log(Level.SEVERE, "Cannot find module scanner for " + this.getManifest());
            }
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

TOP

Related Classes of org.glassfish.apf.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.