Examples of AnnotationInfo

  • org.apache.myfaces.orchestra.annotation.AnnotationInfo
    Holds information extracted out of a single bean using its annotations.
  • org.codehaus.aspectwerkz.annotation.AnnotationInfo
    Holds the annotation proxy instance and the name of the annotation. @author Jonas Bon�r
  • org.eclipse.wst.sse.ui.internal.reconcile.validator.AnnotationInfo
    Holds info to create a TemporaryAnnotation. @since 1.0
  • org.glassfish.apf.AnnotationInfo
    Instances encapsulate all information necessary for an AnnotationHandler to process an annotation. In particular, instances of this class provide access to :

  • the Annotation instance
  • the ProcessingContext of the tool
  • the AnnotatedElement which is a reference to the annotation element (Type, Method...).

    @see java.lang.annotation.Annotation, java.lang.reflect.AnnotatedElement @author Jerome Dochez
  • org.jboss.reflect.spi.AnnotationInfo
    Annotation Info @author Bill Burke @author Adrian Brock
  • org.restlet.engine.resource.AnnotationInfo
    Descriptor for method annotations. @author Jerome Louvel

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

         */
        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

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

         */
        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

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

         * @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

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

        }

        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

    Examples of org.apache.myfaces.orchestra.annotation.AnnotationInfo

            this.annotationInfoManager = annotationInfoManager;
        }

        public String mapViewId(String viewId)
        {
            AnnotationInfo annotationsInfo = annotationInfoManager.getAnnotationInfoByViewId(viewId);
            if (annotationsInfo != null)
            {
                return annotationsInfo.getBeanName();
            }

            return null;
        }
    View Full Code Here

    Examples of org.codehaus.aspectwerkz.annotation.AnnotationInfo

        public Object visit(ASTAttribute node, Object data) {
            boolean matchAnnotation = false;
            List annotations = (List) data;
            for (Iterator it = annotations.iterator(); it.hasNext();) {
                AnnotationInfo annotation = (AnnotationInfo) it.next();
                if (annotation.getName().equals(node.getName())) {
                    matchAnnotation = true;
                }
            }
            if (node.isNot()) {
                return Util.booleanValueOf(!matchAnnotation);
    View Full Code Here

    Examples of org.codehaus.aspectwerkz.annotation.AnnotationInfo

            List annotations = classInfo.getAnnotations();

            for (Iterator it = annotations.iterator(); it.hasNext();) {

                AnnotationInfo annotationInfo = (AnnotationInfo)it.next();

                if (annotationInfo.getName().equals(annotationName)) {

                    return annotationInfo.getAnnotation();

                }

            }
    View Full Code Here

    Examples of org.codehaus.aspectwerkz.annotation.AnnotationInfo

                } catch (Exception e) {
                    throw new WrappedRuntimeException(e);
                }
            }
            proxy.initialize(annotationName, annotationValues);
            return new AnnotationInfo(annotationName, proxy);
        }
    View Full Code Here

    Examples of org.codehaus.aspectwerkz.annotation.AnnotationInfo

            List annotations = methodInfo.getAnnotations();

            for (Iterator it = annotations.iterator(); it.hasNext();) {

                AnnotationInfo annotationInfo = (AnnotationInfo)it.next();

                if (annotationInfo.getName().equals(annotationName)) {

                    return annotationInfo.getAnnotation();

                }

            }
    View Full Code Here

    Examples of org.codehaus.aspectwerkz.annotation.AnnotationInfo

            List annotations = constructorInfo.getAnnotations();

            for (Iterator it = annotations.iterator(); it.hasNext();) {

                AnnotationInfo annotationInfo = (AnnotationInfo)it.next();

                if (annotationInfo.getName().equals(annotationName)) {

                    return annotationInfo.getAnnotation();

                }

            }
    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.