Code example for FactoryBeanNotInitializedException

0
 
 
	@Override 
	public Object getObject() { 
		if (this.proxy == null) { 
			throw new FactoryBeanNotInitializedException(); 
		} 
		return this.proxy; 
	} 
 
	@Override 
	public Class<?> getObjectType() { 
		if (this.proxy != null) { 
			return this.proxy.getClass(); 
		} 
		return this.scopedTargetSource.getTargetClass(); 
	} 
 
	@Override 
	public boolean isSingleton() {