Package org.apache.beehive.netui.pageflow.internal.annotationreader

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


    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 )
            {
                if ( ! Modifier.isPublic( field.getModifiers() ) ) field.setAccessible( true );
                if ( sharedFlowFields == null ) sharedFlowFields = new ArrayList/*< SharedFlowFieldInfo >*/();
 
View Full Code Here

            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

        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

            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

                    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

TOP

Related Classes of org.apache.beehive.netui.pageflow.internal.annotationreader.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.