Examples of ProcessedAnnotation


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

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

        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

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

                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

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

    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

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

       
        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

Examples of org.apache.beehive.netui.pageflow.internal.annotationreader.ProcessedAnnotation

               
                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

Examples of org.apache.beehive.netui.pageflow.internal.annotationreader.ProcessedAnnotation

    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

Examples of org.apache.beehive.netui.pageflow.internal.annotationreader.ProcessedAnnotation

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

Examples of org.apache.beehive.netui.pageflow.internal.annotationreader.ProcessedAnnotation

            if ( name.equals( declarationName ) )
            {
                // For now, we can be sure that there's only one element in this array.
                ProcessedAnnotation[] annotations = ( ProcessedAnnotation[] ) elements.get( name );
                assert annotations.length == 1 : annotations.length;
                ProcessedAnnotation pa = annotations[ 0 ];
                return pa.getAnnotationName().equals( annotationTypeName ) ? pa : null;
            }
        }

        return null;
    }
View Full Code Here

Examples of org.apache.beehive.netui.pageflow.internal.annotationreader.ProcessedAnnotation

        do {
            Field[] fields = clazz.getDeclaredFields();
            for (int i = 0; i < fields.length; i++) {
                Field field = fields[i];
                String fieldName = field.getName();
                ProcessedAnnotation sharedFlowFieldAnn = annReader.getJpfAnnotation(field, "SharedFlowField");
                if (! fieldNames.contains(fieldName)) {
                    if (sharedFlowFieldAnn != null) {
                        if (! Modifier.isPublic(field.getModifiers())) {
                            field.setAccessible(true);
                        }
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.