1 18 package org.apache.beehive.netui.pageflow.internal; 19 20 import javax.servlet.ServletContext ; 21 import java.lang.reflect.Field ; 22 23 24 27 public class CachedFacesBackingInfo 28 extends CachedSharedFlowRefInfo 29 { 30 33 private Field _pageFlowMemberField; 34 35 36 public CachedFacesBackingInfo( Class facesBackingClass, ServletContext servletContext ) 37 { 38 Field [] fields = facesBackingClass.getDeclaredFields(); 39 AnnotationReader annReader = AnnotationReader.getAnnotationReader( facesBackingClass, servletContext ); 40 41 for ( int i = 0; i < fields.length; i++ ) 42 { 43 Field field = fields[i]; 44 45 if ( annReader.getJpfAnnotation( field, "PageFlowField" ) != null ) 46 { 47 _pageFlowMemberField = field; 48 _pageFlowMemberField.setAccessible( true ); 49 } 50 } 51 52 initSharedFlowFields( annReader, fields ); 53 } 54 55 public Field getPageFlowMemberField() 56 { 57 return _pageFlowMemberField; 58 } 59 } 60 61 | Popular Tags |