Bug #1928
ComponentFactoryBean may keep null instance as valid value
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);
// ...