Package org.apache.beehive.netui.compiler.schema.annotations

Examples of org.apache.beehive.netui.compiler.schema.annotations.ProcessedAnnotation


            AnnotatedElement element = elements[i];
            if ( element.getElementName().equals( declarationName ) )
            {
                // For now, we can be sure that there's only one element in this array.
                assert element.getAnnotationArray().length == 1 : element.getAnnotationArray().length;
                ProcessedAnnotation pa = element.getAnnotationArray( 0 );
                return pa.getAnnotationName().equals( annotationTypeName ) ? pa : null;
            }
        }
       
        return null;
    }
View Full Code Here


        AnnotatedElement element = _doc.getProcessedAnnotations().addNewAnnotatedElement();
        String name = memberDecl instanceof TypeDeclaration
                      ? ( ( TypeDeclaration ) memberDecl ).getQualifiedName()
                      : memberDecl.getSimpleName();
        element.setElementName( name );
        ProcessedAnnotation xmlAnnotation = element.addNewAnnotation();
        include( xmlAnnotation, annotation );
    }
View Full Code Here

                ServletContext servletContext = ( ServletContext ) servletContextObject;
                Method method = _methodCache.getMethod( backingClass, _methodName, _params );
               
                if ( method == null ) throw new MethodNotFoundException( _methodName );
                AnnotationReader annReader = AnnotationReader.getAnnotationReader( backingClass, servletContext );
                ProcessedAnnotation ann = annReader.getJpfAnnotation( method, "CommandHandler" );
               
                if ( ann != null )
                {
                    ProcessedAnnotation[] raiseActions =
                            AnnotationReader.getAnnotationArrayAttribute( ann, "raiseActions" );
View Full Code Here

    private static void setOutputFormBeans( ProcessedAnnotation[] raiseActions, Class backingClass, Object backingBean,
                                            String action, HttpServletRequest httpRequest )
    {
        for ( int i = 0; i < raiseActions.length; i++ )
        {
            ProcessedAnnotation raiseAction = raiseActions[i];
            String actionAttr = AnnotationReader.getStringAttribute( raiseAction, "action" );
                               
            if ( actionAttr.equals( action ) )
            {
                String formBeanMember =
View Full Code Here

       
        for ( int i = 0; i < fields.length; i++ )
        {
            Field field = fields[i];
           
            ProcessedAnnotation sharedFlowFieldAnn = annReader.getJpfAnnotation( field, "SharedFlowField" );
           
            if ( sharedFlowFieldAnn != null )
            {
                field.setAccessible( true );
                if ( sharedFlowFields == null ) sharedFlowFields = new ArrayList/*< SharedFlowFieldInfo >*/();
 
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.compiler.schema.annotations.ProcessedAnnotation

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.