Examples of FactoryException


Examples of org.ow2.easybeans.api.FactoryException

        Class clazz = null;
        try {
            clazz = getContainer().getClassLoader().loadClass(getClassName());
        } catch (ClassNotFoundException e) {
            throw new FactoryException("Cannot load the class for class name '" + getClassName() + "'", e);
        }
        setBeanClass(clazz);
        setHashes(Hash.hashClass(clazz));

        // Use the container event dispatcher.
        this.dispatcher = ((JContainer3) this.container).getEventDispatcher();

        try {
            this.namingManager = NamingManager.getInstance();
        } catch (NamingException e) {
            throw new FactoryException("Cannot get instance of the naming manager", e);
        }

        this.injectors = container.getConfiguration().getInjectors();

        // Get a timer service if a timer component is present.
View Full Code Here

Examples of org.ow2.easybeans.api.FactoryException

        EasyBeansSingletonSB bean = null;
        if (getSessionBeanInfo().isStartup()) {
            try {
                bean = getBean(null);
            } catch (RuntimeException e) {
                throw new FactoryException("Cannot initialize Singleton bean", e);
            } finally {
                if (bean != null) {
                    try {
                        getPool().release(bean);
                    } catch (PoolException e) {
                        throw new FactoryException("Cannot release bean", e);
                    }
                }
            }

        }
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.