Package com.sun.enterprise.deployment.annotation

Examples of com.sun.enterprise.deployment.annotation.ProcessingContext.pushHandler()


                    }
                }
                ResourceContainerContextImpl newContext = new ResourceContainerContextImpl(jndiContainer);
                ProcessingContext ctx = annInfo.getProcessingContext();
               
                ctx.pushHandler(newContext);
                // process the classes
                annInfo.getProcessingContext().getProcessor().process(
                        annInfo.getProcessingContext(),
                        handlerClasses.toArray(new Class[0]));
View Full Code Here


        // process resource related annotations
        EjbInterceptorContext ejbInterceptorContext =
            new EjbInterceptorContext(interceptor);
        ProcessingContext procContext = ainfo.getProcessingContext();
        procContext.pushHandler(ejbInterceptorContext);
        procContext.getProcessor().process(
            procContext, new Class[] { interceptorClass });
        return;
    }
View Full Code Here

            if (!scanner.getElements().isEmpty()) {
                AnnotationProcessor ap = SipHandlerFactory.getAnnotationProcessor();
                ProcessingContext ctx = ap.createContext();

                ctx.setProcessingInput(scanner);
                ctx.pushHandler(aeHandler);
                ap.process(ctx);
                postProcessAnnotations();
            }
        } catch (DeploymentException e) {
            throw e;
View Full Code Here

            if (!scanner.getElements().isEmpty()) {
                AnnotationProcessor ap = SipHandlerFactory.getAnnotationProcessor();
                ProcessingContext ctx = ap.createContext();

                ctx.setProcessingInput(scanner);
                ctx.pushHandler(aeHandler);
                ap.process(ctx);
               
                // Check if there are Servlets or Listeners. XXX: Should the check for Servlets alone be not
                // enough?
                if ((!dummySbd.getSipApplication().getAnnotatedServlets().isEmpty()) ||
View Full Code Here

            ProcessingContext ctx = ap.createContext();
            if (annotationErrorHandler != null) {
                ctx.setErrorHandler(annotationErrorHandler);
            }
            ctx.setProcessingInput(scanner);
            ctx.pushHandler(aeHandler);
           
            // Make sure there is a classloader available on the descriptor
            // during annotation processing.
            ClassLoader originalBundleClassLoader = null;
            try {
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.