Code example for FactoryBeanNotInitializedException

0
    public Object getObject() throws Exception { 
        if (ldapOperations==null) { 
            throw new FactoryBeanNotInitializedException("contextSource ldapOperations property has not been set"); 
        } 
        if (managedClasses==null) {         
            throw new FactoryBeanNotInitializedException("managedClasses property has not been set"); 
        } 
        if (converterManager==null) {         
            throw new FactoryBeanNotInitializedException("converterManager property has not been set"); 
        } 
         
        return new OdmManagerImpl(converterManager, ldapOperations, managedClasses); 
    } 
 
    /* (non-Javadoc) 
     * @see org.springframework.beans.factory.FactoryBean#getObjectType() 
     */ 
    public Class<?> getObjectType() { 
        return OdmManagerImpl.class; 
    }