Package com.sun.enterprise.deployment.annotation

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


        // process the method parameters...
        for (Annotation[] parameterAnnotations : parametersAnnotations) {
            logStart(ctx.getHandler(), ElementType.PARAMETER, null);
            if (parameterAnnotations!=null) {
                for (Annotation annotation : parameterAnnotations) {
                    AnnotationInfo info = new AnnotationInfo(ctx, null, annotation, ElementType.PARAMETER);
                    process(ctx, info, result);
                    dumpProcessingResult(result);
                }
            }
            logEnd(ctx.getHandler(), ElementType.PARAMETER, null);
View Full Code Here


   
        HandlerProcessingResultImpl result= new HandlerProcessingResultImpl();
       
        for (Annotation annotation : element.getAnnotations()) {
            // initialize the result...
            AnnotationInfo subElement = new AnnotationInfo(ctx, element, annotation, getTopElementType());
            if (!result.processedAnnotations().containsKey(annotation.annotationType())) {
                process(ctx, subElement, result);
            } else {
                if (AnnotationUtils.shouldLog("annotation")) {
                    logger.finer("Annotation " + annotation.annotationType() + " already processed");
View Full Code Here

                        Annotation depAnnotation = ae.getAnnotation(annotationType);
                        if (depAnnotation!=null) {                       
                            ResultType resultType = result.processedAnnotations().get(annotationType);
                            if (resultType==null || resultType==ResultType.UNPROCESSED){
                                // annotation is present, process it.
                                AnnotationInfo info = new AnnotationInfo(ctx, ae, depAnnotation, getTopElementType());
                                process(ctx, info, result);
                            }
                        }
                    }
                }
View Full Code Here

     */
    public void fine(AnnotationProcessorException ape) throws
            AnnotationProcessorException {
       
        if (logger.isLoggable(Level.FINE)){
            AnnotationInfo info = ape.getLocator();
            if (info==null){
                logger.fine(ape.getMessage());
            } else{
                logger.fine(AnnotationUtils.getLocalString(
                    "enterprise.deployment.annotation.error",
                    "{2}\n symbol: {0}\n location: {1}\n\n",
                    new Object[] { info.getElementType(), info.getAnnotatedElement(), ape.getMessage()}));           
            }
        }
       
    }
View Full Code Here

     */
    public void warning(AnnotationProcessorException ape) throws
            AnnotationProcessorException {
       
        if (logger.isLoggable(Level.WARNING)){
            AnnotationInfo info = ape.getLocator();
            if (info==null){
                logger.warning(ape.getMessage());
            } else{
                logger.warning(AnnotationUtils.getLocalString(
                    "enterprise.deployment.annotation.error",
                    "{2}\n symbol: {0}\n location: {1}\n\n",
                    new Object[] { info.getElementType(), info.getAnnotatedElement(), ape.getMessage()}));           
            }
        }
    }
View Full Code Here

     * @throws amy exception to stop the annotation processing
     */
    public void error(AnnotationProcessorException ape) throws
            AnnotationProcessorException {
       
        AnnotationInfo info = ape.getLocator();
        if (info==null){
            logger.severe(ape.getMessage());
        } else{
            logger.severe(AnnotationUtils.getLocalString(
                "enterprise.deployment.annotation.error",
                "{2}\n symbol: {0} location: {1}\n\n",
                new Object[] { info.getElementType(), info.getAnnotatedElement(), ape.getMessage()}));           
        }
    }
View Full Code Here

    }

    public void error(AnnotationProcessorException ape)
            throws AnnotationProcessorException {
        logger.fine("Error : " + ape); // NOI18N
        AnnotationInfo info = ape.getLocator();
        String msg = (info==null) ?
            ape.getMessage() :
            StringManagerHelper.getLocalStringsManager().getLocalString(
                "com.sun.enterprise.tools.verifier.annotation.error", // NOI18N
                "{3}\n annotation: {0}\n symbol: {1}\n location: {2}\n", // NOI18N
                new Object[] {info.getAnnotation(), info.getElementType(),
                    info.getAnnotatedElement(), ape.getMessage()});
        LogRecord logRecord = new LogRecord(Level.SEVERE, msg);
        resultManager.log(logRecord);
    }
View Full Code Here

TOP

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

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.