Example usage for org.springframework.beans.factory FactoryBeanNotInitializedException FactoryBeanNotInitializedException

List of usage examples for org.springframework.beans.factory FactoryBeanNotInitializedException FactoryBeanNotInitializedException

Introduction

In this page you can find the example usage for org.springframework.beans.factory FactoryBeanNotInitializedException FactoryBeanNotInitializedException.

Prototype

public FactoryBeanNotInitializedException() 

Source Link

Document

Create a new FactoryBeanNotInitializedException with the default message.

Usage

From source file:com.mtgi.analytics.aop.config.TemplateBeanDefinitionFactory.java

public Object getObject() throws Exception {
    if (beanFactory == null || beanName == null)
        throw new FactoryBeanNotInitializedException();
    if (!initialized) {
        //give post-processors and the like a chance to run.
        initialized = true;//from ww  w. j a v a2 s .  c o m
        beanFactory.preInstantiateSingletons();
    }
    return beanFactory.getBean(beanName);
}

From source file:io.kamax.mxisd.storage.ormlite.OrmLiteSqliteStorageBeanFactory.java

@Override
public IStorage getObject() throws Exception {
    if (storage == null) {
        throw new FactoryBeanNotInitializedException();
    }/*  ww w . j av a 2  s. c  o m*/

    return storage;
}

From source file:com.helpinput.spring.proxy.OptimizeTransactionProxyFactoryBean.java

public Object getObject() {
    if (this.proxy == null) {
        throw new FactoryBeanNotInitializedException();
    }/*from  w  w  w. j  a  v a 2 s.  c om*/
    return this.proxy;
}