//
// Load/create Handlers.
//
NetuiConfigDocument.NetuiConfig netuiConfig = ConfigUtil.getConfig();
PageflowHandlers handlers = netuiConfig.getPageflowHandlers();
DefaultHandler defaultActionForwardHandler = new DefaultActionForwardHandler( servletContext );
DefaultHandler defaultExceptionsHandler = new DefaultExceptionsHandler( servletContext );
DefaultHandler defaultForwardRedirectHandler = new DefaultForwardRedirectHandler( servletContext );
DefaultHandler defaultLoginHandler = new DefaultLoginHandler( servletContext );
DefaultHandler defaultReloadableClassHandler = new DefaultReloadableClassHandler( servletContext );
_actionForwardHandler = ( ActionForwardHandler )
adaptHandler( handlers != null ? handlers.getActionForwardHandlerArray() : null,
defaultActionForwardHandler, ActionForwardHandler.class, servletContext );
_exceptionsHandler = ( ExceptionsHandler )
adaptHandler( handlers != null ? handlers.getExceptionsHandlerArray() : null, defaultExceptionsHandler,
ExceptionsHandler.class, servletContext );
_forwardRedirectHandler = ( ForwardRedirectHandler )
adaptHandler( handlers != null ? handlers.getForwardRedirectHandlerArray() : null,
defaultForwardRedirectHandler, ForwardRedirectHandler.class, servletContext );
_loginHandler = ( LoginHandler )
adaptHandler( handlers != null ? handlers.getLoginHandlerArray() : null, defaultLoginHandler,
LoginHandler.class, servletContext );
_reloadableClassHandler = ( ReloadableClassHandler )
adaptHandler( handlers != null ? handlers.getReloadableClassHandlerArray() : null,
defaultReloadableClassHandler, ReloadableClassHandler.class, servletContext );
}