Revision 1169 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/library/AbstractLibrary.java
AbstractLibrary.java | ||
---|---|---|
216 | 216 |
if (this.library != null) { |
217 | 217 |
if (!Library.class.isAssignableFrom(library)) { |
218 | 218 |
throw new IllegalArgumentException( |
219 |
"Given class is not a Library: " + library);
|
|
219 |
"Invalid argument in registerAs(library:'"+library+"', type:"+type+") of class '"+this.getClass().getName()+"', the library argument don't implement the interface Library.");
|
|
220 | 220 |
} |
221 | 221 |
// Add default dependencies between services, implementation and API |
222 | 222 |
if (!Library.TYPE.API.equals(type)) { |
Also available in: Unified diff