Package com.sun.faces.spi

Examples of com.sun.faces.spi.ManagedBeanFactory.newInstance()


                }
            }
        } else {
            scopeIsRequest = (scope == Scope.REQUEST);
            try {
                bean = managedBean.newInstance(context);
                if (LOGGER.isLoggable(Level.FINE)) {
                    LOGGER.log(Level.FINE, MessageFormat.format("Created bean {0} successfully ", managedBeanName));
                }
            } catch (Exception ex) {
                Object[] params = {managedBeanName};
View Full Code Here


        if ((scopeIsApplication = (scope == Scope.APPLICATION)) ||
            ((scope == Scope.SESSION))) {
            if (scopeIsApplication) {
                synchronized (extContext.getContext()) {
                    try {
                        bean = managedBean.newInstance(context);
                        if (LOGGER.isLoggable(Level.FINE)) {
                            LOGGER.fine(MessageFormat.format("Created application scoped bean {0} successfully ", managedBeanName));
                        }
                    } catch (Exception ex) {
                        Object[] params = {managedBeanName};
View Full Code Here

                    extContext.getApplicationMap().put(managedBeanName, bean);
                }
            } else {
                synchronized (extContext.getSession(true)) {
                    try {
                        bean = managedBean.newInstance(context);
                        if (LOGGER.isLoggable(Level.FINE)) {
                            LOGGER.fine(MessageFormat.format("Created session scoped bean {0} successfully ", managedBeanName));
                        }
                    } catch (Exception ex) {
                        Object[] params = {managedBeanName};
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.