Project

General

Profile

Bug #1928

ComponentFactoryBean may keep null instance as valid value

Added by Henning Blohm about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
z2-addon-spring
Target version:
Start date:
07.10.2015
Due date:
% Done:

100%

Estimated time:
origin:

Description

If the load of the bean fails but the resource handle has successfully been retrieved, the component factory bean is in loaded state while no bean has been retrieved:

        if (this.rh == null) {
            if (logger.isLoggable(Level.FINE)) {
                logger.fine("Resolving Component Factory Bean: "+this);
            }
            if (this.componentName==null) {
                throw new IllegalArgumentException("Must specifc componentName in Component Factory Bean");
            }
            this.getObjectType();
            this.rh = IComponentsLookup.INSTANCE.lookup(this.componentName,IResourceHandle.class);
// ...
#1

Updated by Henning Blohm about 9 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF