Spring Framework FactoryBeanNotInitializedException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework FactoryBeanNotInitializedException class.

This code example shows how to use the following methods:
 
 
	@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() { 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
	 */ 
	@Override 
	public Object getObject() throws Exception {
		if (this.singleton) {
			if (!this.initialized) {
				throw new FactoryBeanNotInitializedException();
			} 
			// Singleton: return shared object. 
			return this.singletonObject;
		} 
		else { 
			// Prototype: new object on each call. 
			return invokeWithTargetException(); 
		} 
	} 
 
	/** 
	 * Return the type of object that this FactoryBean creates, 
	 * or {@code null} if not known in advance. 
	 */ 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 
 
	@Override 
	public Object getObject() throws IllegalAccessException {
		if (this.fieldObject == null) {
			throw new FactoryBeanNotInitializedException();
		} 
		ReflectionUtils.makeAccessible(this.fieldObject);
		if (this.targetObject != null) {
			// instance field 
			return this.fieldObject.get(this.targetObject);
		} 
		else{ 
			// class field 
			return this.fieldObject.get(null);
		} 
	} 
 
	@Override 
	public Class<?> getObjectType() {
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 
 
	@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();
		} 
		if (this.proxyInterfaces != null && this.proxyInterfaces.length == 1) {
			return this.proxyInterfaces[0];
		} 
		if (this.target instanceof TargetSource) {
			return ((TargetSource) this.target).getTargetClass();
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
		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 
		if(context != null && context.getStepExecutionId() == curStepExecution.getId()) {
			return context;
		} 
 
		Properties stepProperties = batchPropertyContext.getStepProperties(curStepExecution.getStepName());
 
		if(stepProperties != null) {
			context = new JsrStepContext(curStepExecution, stepProperties);
		} else { 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
			if(curJobExecution != null) {
				jobExecution = curJobExecution;
			} 
 
			if(jobExecution == null) {
				throw new FactoryBeanNotInitializedException("A JobExecution is required");
			} 
 
			JsrJobContext jobContext = new JsrJobContext();
			jobContext.setJobExecution(jobExecution);
 
			if(propertyContext != null) {
				jobContext.setProperties(propertyContext.getJobProperties());
			} else { 
				jobContext.setProperties(new Properties());
			} 
 
			contextHolder.set(jobContext);
		} 
 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
 
    public FlowConstruct getObject() throws Exception
    { 
        if (flowConstruct == null)
        { 
            throw new FactoryBeanNotInitializedException();
        } 
        return flowConstruct;
    } 
 
    protected AbstractFlowConstruct createFlowConstruct() throws MuleException 
    { 
        return getFlowConstructBuilder().build(muleContext);
    } 
} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
    @Override 
    public Object getObject() throws Exception {
 
        // make sure the factory is fully initialized 
        if (!initialized) {
            throw new FactoryBeanNotInitializedException();
        } 
 
        // create the invocation handler that switches between implementations 
        Feature namedFeature = new NamedFeature(feature);
        FeatureProxyInvocationHandler proxy = new FeatureProxyInvocationHandler(namedFeature, active, inactive);
 
        // obtain the interface for which to create the proxy 
        Class<?> proxyType = getEffectiveProxyType();
 
        // create the proxy 
        return Proxy.newProxyInstance(getSuitableClassLoader(), new Class<?>[] { proxyType }, proxy);
 
    } 
 
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
    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; 
    } 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
        } 
        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));
    } 
 
    @Override 
    public Class<?> getObjectType() {
        return StorageTree.class; 
    } 
 
    @Override 
    public boolean isSingleton() { 
2
CodeRank
Connect your IDE to all the code out there  Get Codota for Java