Package org.springframework.beans.factory

Examples of org.springframework.beans.factory.FactoryBeanNotInitializedException


   * circular reference. Not called in a non-circular scenario.
   */
  private Object getEarlySingletonInstance() throws Exception {
    Class[] ifcs = getEarlySingletonInterfaces();
    if (ifcs == null) {
      throw new FactoryBeanNotInitializedException(
          getClass().getName() + " does not support circular references");
    }
    if (this.earlySingletonInstance == null) {
      this.earlySingletonInstance = Proxy.newProxyInstance(getClass().getClassLoader(), ifcs,
        new InvocationHandler() {
View Full Code Here


      this.targetSource = freshTargetSource();
      if (this.autodetectInterfaces && getProxiedInterfaces().length == 0 && !isProxyTargetClass()) {
        // Rely on AOP infrastructure to tell us what interfaces to proxy.
        Class targetClass = getTargetClass();
        if (targetClass == null) {
          throw new FactoryBeanNotInitializedException("Cannot determine target class for proxy");
        }
        setInterfaces(ClassUtils.getAllInterfacesForClass(targetClass, this.beanClassLoader));
      }
      // Initialize the shared singleton instance.
      super.setFrozen(this.freezeProxy);
View Full Code Here

  }


  public Object getObject() {
    if (this.proxy == null) {
      throw new FactoryBeanNotInitializedException();
    }
    return this.proxy;
  }
View Full Code Here

  }


  public Object getObject() {
    if (this.proxy == null) {
      throw new FactoryBeanNotInitializedException();
    }
    return this.proxy;
  }
View Full Code Here

      if(curJobExecution != null) {
        jobExecution = curJobExecution;
      }

      if(jobExecution == null) {
        throw new FactoryBeanNotInitializedException("A JobExecution is required");
      }

      JsrJobContext jobContext = new JsrJobContext();
      jobContext.setJobExecution(jobExecution);
View Full Code Here

    if(StepSynchronizationManager.getContext() != null) {
      curStepExecution = StepSynchronizationManager.getContext().getStepExecution();
    }

    if(curStepExecution == null) {
      throw new FactoryBeanNotInitializedException("A StepExecution is required");
    }

    StepContext context = contextHolder.get();

    // If the current context applies to the current step, use it
View Full Code Here

    private Class<T> gatewayInterface;

    @Override
    public T getObject() throws Exception {
        if (gateway == null) {
            throw new FactoryBeanNotInitializedException();
        }
        return gateway;
    }
View Full Code Here


    @Override
    public StorageTree getObject() throws Exception {
        if (null == rundeckFramework) {
            throw new FactoryBeanNotInitializedException("'rundeckFramework' is required");
        }
        if (null == pluginRegistry) {
            throw new FactoryBeanNotInitializedException("'pluginRegistry' is required");
        }
        if (null == storagePluginProviderService) {
            throw new FactoryBeanNotInitializedException("'storagePluginProviderService' is required");
        }
        if (null == storageConverterPluginProviderService) {
            throw new FactoryBeanNotInitializedException("'storageConverterPluginProviderService' is required");
        }
        if (null == storageConfigPrefix) {
            throw new FactoryBeanNotInitializedException("'storageConfigPrefix' is required");
        }
        if (null == converterConfigPrefix) {
            throw new FactoryBeanNotInitializedException("'converterConfigPrefix' is required");
        }
        if (null == baseStorageType) {
            throw new FactoryBeanNotInitializedException("'baseStorageType' is required");
        }
        return StorageUtil.asStorageTree(buildTree(configuration));
    }
View Full Code Here

   *
   * @return managed OSGi service(s)
   */
  public Object getObject() {
    if (!initialized)
      throw new FactoryBeanNotInitializedException();

    if (proxy == null) {
      proxy = createProxy();
    }

View Full Code Here

TOP

Related Classes of org.springframework.beans.factory.FactoryBeanNotInitializedException

Copyright © 2018 www.massapicom. 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.