Revision 838 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/locator/AbstractLocator.java
AbstractLocator.java | ||
---|---|---|
61 | 61 |
} catch (Exception ex) { |
62 | 62 |
throw new LocatorReferenceException(ex, name, this); |
63 | 63 |
} |
64 |
if( instance == null ) { |
|
65 |
logger.info("Can't locate class of '" + name + "', may be it is not registered in this locator '"+this.getLocatorName() +"'."); |
|
66 |
throw new ReferenceNotRegisteredException(name, this); |
|
67 |
} |
|
64 | 68 |
instances.put(name, instance); |
65 | 69 |
if( logger.isInfoEnabled() ) { |
66 | 70 |
logger.info("Created and stored the instance of " + name + " in the singleton table (" + instance.getClass().getName() + "/" + instance.toString()+ ")."); |
Also available in: Unified diff