public static void init ( ServletContext servletContext ) { PageFlowFactoriesConfig factoriesBean = ConfigUtil . getConfig ( ) . getPageFlowFactories ( ) ; FlowControllerFactory factory = null ; if ( factoriesBean != null ) { PageFlowFactoryConfig fcFactoryBean = factoriesBean . getPageFlowFactory ( ) ; factory = ( FlowControllerFactory ) FactoryUtils . getFactory ( servletContext , fcFactoryBean , FlowControllerFactory . class ) ; } if ( factory == null ) factory = new FlowControllerFactory ( ) ; factory . reinit ( servletContext ) ; servletContext . setAttribute ( CONTEXT_ATTR , factory ) ; }
Initialize an instance of this class in the ServletContext . This is a framework - invoked method and should not normally be called directly .