Package org.apache.beehive.netui.pageflow.handler

Examples of org.apache.beehive.netui.pageflow.handler.ReloadableClassHandler


                    {
                        _log.debug( "Creating form bean of type " + _outputFormBeanType );
                    }
                   
                    ServletContext servletContext = InternalUtils.getServletContext( request );
                    ReloadableClassHandler rch = Handlers.get( servletContext ).getReloadableClassHandler();
                    Object formBean = rch.newInstance( _outputFormBeanType );
                    ActionForm wrappedFormBean = InternalUtils.wrapFormBean( formBean );
                    addOutputForm( wrappedFormBean );
                    return wrappedFormBean;
                }
                catch ( Exception e )
View Full Code Here


    }

    private void cacheFormClasses()
    {
        FormBeanConfig[] formBeans = moduleConfig.findFormBeanConfigs();
        ReloadableClassHandler rch = _handlers.getReloadableClassHandler();

        for ( int i = 0; i < formBeans.length; i++ )
        {
            FormBeanConfig formBeanConfig = formBeans[i];
            String formType = InternalUtils.getFormBeanType( formBeanConfig );

            try
            {
                Class formBeanClass = rch.loadClass( formType );
                _formBeanClasses.put( formBeanConfig.getName(), formBeanClass );
            }
            catch ( ClassNotFoundException e )
            {
                _log.error( "Could not load class " + formType + " referenced from form bean config "
View Full Code Here

    }

    public static Class getReloadableClass( String className, ServletContext servletContext )
        throws ClassNotFoundException
    {
        ReloadableClassHandler handler = Handlers.get( servletContext ).getReloadableClassHandler();
        return handler.loadClass( className );
    }
View Full Code Here

    }
   
    private void cacheFormClasses()
    {
        FormBeanConfig[] formBeans = moduleConfig.findFormBeanConfigs();
        ReloadableClassHandler rch = _handlers.getReloadableClassHandler();
       
        for ( int i = 0; i < formBeans.length; i++ )
        {
            FormBeanConfig formBeanConfig = formBeans[i];
            String formType = InternalUtils.getFormBeanType( formBeanConfig );
           
            try
            {
                Class formBeanClass = rch.loadClass( formType );
                _formBeanClasses.put( formBeanConfig.getName(), formBeanClass );
            }
            catch ( ClassNotFoundException e )
            {
                _log.error( "Could not load class " + formType + " referenced from form bean config "
View Full Code Here

    }
   
    public static Class getReloadableClass( String className, ServletContext servletContext )
        throws ClassNotFoundException
    {
        ReloadableClassHandler handler = Handlers.get( servletContext ).getReloadableClassHandler();
        return handler.loadClass( className );
    }
View Full Code Here

                    {
                        _log.debug( "Creating form bean of type " + _returnFormType );
                    }
                   
                    ServletContext servletContext = InternalUtils.getServletContext( request );
                    ReloadableClassHandler rch = Handlers.get( servletContext ).getReloadableClassHandler();
                    Object formBean = rch.newInstance( _returnFormType );
                    ActionForm wrappedFormBean = InternalUtils.wrapFormBean( formBean );
                    addOutputForm( wrappedFormBean );
                    return wrappedFormBean;
                }
                catch ( Exception e )
View Full Code Here

            String formClass = ( ( PageFlowActionMapping ) mapping ).getFormClass();
            assert formClass != null;
           
            try
            {
                ReloadableClassHandler reloadableHandler =
                        Handlers.get( getServlet().getServletContext() ).getReloadableClassHandler();
                _bean = reloadableHandler.newInstance( formClass );
            }
            catch ( Exception e )
            {
                // Can be any exception -- not just the reflection-related exceptions...
                // because the exception could be thrown from the bean's constructor.
View Full Code Here

                    {
                        _log.debug( "Creating form bean of type " + _outputFormBeanType );
                    }
                   
                    ServletContext servletContext = InternalUtils.getServletContext( request );
                    ReloadableClassHandler rch = Handlers.get( servletContext ).getReloadableClassHandler();
                    Object formBean = rch.newInstance( _outputFormBeanType );
                    ActionForm wrappedFormBean = InternalUtils.wrapFormBean( formBean );
                    addOutputForm( wrappedFormBean );
                    return wrappedFormBean;
                }
                catch ( Exception e )
View Full Code Here

           
            if ( _outputFormBeanType != null )
            {
                try
                {
                    ReloadableClassHandler rch = Handlers.get(_servletContext).getReloadableClassHandler();
                    returnFormClass = rch.loadClass( _outputFormBeanType );
                }
                catch ( ClassNotFoundException e )
                {
                    // This should never happen -- the JPF compiler ensures that it's a valid class.
                    assert false : e;
View Full Code Here

                   
                    if ( expectedType == null )
                    {
                        try
                        {
                            ReloadableClassHandler rch = Handlers.get(_servletContext).getReloadableClassHandler();
                            expectedType = rch.loadClass( expectedTypeName );
                        }
                        catch ( ClassNotFoundException e )
                        {
                            _log.error( "Could not load expected action output type " + expectedTypeName
                                        + " for action output '" + actionOutput.getName() + "' on forward '"
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.pageflow.handler.ReloadableClassHandler

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.