Examples of AnnotationProcessor


Examples of org.apache.AnnotationProcessor

    }

    public void destroy() {
        if (theServlet != null) {
            theServlet.destroy();
            AnnotationProcessor annotationProcessor = (AnnotationProcessor) config.getServletContext().getAttribute(AnnotationProcessor.class.getName());
            if (annotationProcessor != null) {
                try {
                    annotationProcessor.preDestroy(theServlet);
                } catch (Exception e) {
                    // Log any exception, since it can't be passed along
                    log.error(Localizer.getMessage("jsp.error.file.not.found",
                           e.getMessage()), e);
                }
View Full Code Here

Examples of org.apache.AnnotationProcessor

                    ClassLoader loader = context.getLoader().getClassLoader();
                    Object listener = event.getData();
                   
                    if(listener.getClass().getName().equals(WebBeansConfigurationListener.class.getName()))
                    {  
                        AnnotationProcessor processor = context.getAnnotationProcessor();
                        AnnotationProcessor custom = new TomcatAnnotProcessor(context.getLoader().getClassLoader(),processor);
                        context.setAnnotationProcessor(custom);
                       
                        context.getServletContext().setAttribute(AnnotationProcessor.class.getName(), custom);
                       
                        ContextAccessController.setReadOnly(context.getNamingContextListener().getName());
View Full Code Here

Examples of org.apache.AnnotationProcessor

                    final Servlet servlet;
                   
                    try {
                        servletClass = ctxt.load();
                        servlet = (Servlet) servletClass.newInstance();
                        AnnotationProcessor annotationProcessor = (AnnotationProcessor) config.getServletContext().getAttribute(AnnotationProcessor.class.getName());
                        if (annotationProcessor != null) {
                           annotationProcessor.processAnnotations(servlet);
                           annotationProcessor.postConstruct(servlet);
                        }
                    } catch (IllegalAccessException e) {
                        throw new JasperException(e);
                    } catch (InstantiationException e) {
                        throw new JasperException(e);
View Full Code Here

Examples of org.apache.AnnotationProcessor

    }

    public void destroy() {
        if (theServlet != null) {
            theServlet.destroy();
            AnnotationProcessor annotationProcessor = (AnnotationProcessor) config.getServletContext().getAttribute(AnnotationProcessor.class.getName());
            if (annotationProcessor != null) {
                try {
                    annotationProcessor.preDestroy(theServlet);
                } catch (Exception e) {
                    // Log any exception, since it can't be passed along
                    log.error(Localizer.getMessage("jsp.error.file.not.found",
                           e.getMessage()), e);
                }
View Full Code Here

Examples of org.apache.AnnotationProcessor

                    Servlet servlet = null;
                   
                    try {
                        servletClass = ctxt.load();
                        servlet = (Servlet) servletClass.newInstance();
                        AnnotationProcessor annotationProcessor = (AnnotationProcessor) config.getServletContext().getAttribute(AnnotationProcessor.class.getName());
                        if (annotationProcessor != null) {
                           annotationProcessor.processAnnotations(servlet);
                           annotationProcessor.postConstruct(servlet);
                        }
                    } catch (IllegalAccessException e) {
                        throw new JasperException(e);
                    } catch (InstantiationException e) {
                        throw new JasperException(e);
View Full Code Here

Examples of org.apache.beehive.netui.compiler.typesystem.env.AnnotationProcessor

            com.sun.mirror.declaration.AnnotationTypeDeclaration decl =
                    ( com.sun.mirror.declaration.AnnotationTypeDeclaration ) i.next();
            atds[ j++ ] = WrapperFactory.get().getAnnotationTypeDeclaration( decl );
        }
       
        AnnotationProcessor ap = getProcessorFor( atds, env );
        return ap != null ? new DelegatingAnnotationProcessor( ap ) : null;
    }
View Full Code Here

Examples of org.apache.cxf.common.annotation.AnnotationProcessor

        inject(o, o.getClass());
    }
   
    public void inject(Object o, Class<?> claz) {
        if (processable(claz, o)) {
            AnnotationProcessor processor = new AnnotationProcessor(o);
            processor.accept(this, claz);
        }
    }
View Full Code Here

Examples of org.apache.cxf.common.annotation.AnnotationProcessor

    }
   
   
    public void inject(Object o) {

        AnnotationProcessor processor = new AnnotationProcessor(o);
        processor.accept(this);

        invokePostConstruct();
    }
View Full Code Here

Examples of org.apache.cxf.common.annotation.AnnotationProcessor

    public void inject(Object o) {       
        inject(o, o.getClass());
    }
   
    public void inject(Object o, Class claz) {
        AnnotationProcessor processor = new AnnotationProcessor(o);
        processor.accept(this, claz);
    }
View Full Code Here

Examples of org.apache.felix.scrplugin.annotations.AnnotationProcessor

        // create a log
        this.iLog = new IssueLog(this.options.isStrictMode());

        // create the annotation processor manager
        final AnnotationProcessor aProcessor = new AnnotationProcessorManager(this.logger,
                        this.project.getClassLoader());

        // create the class scanner - and start scanning
        this.scanner = new ClassScanner(logger, iLog, project, aProcessor);
        final List<ClassDescription> scannedDescriptions = scanner.scanSources();
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.