Revision 371 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/library/AbstractLibrary.java
AbstractLibrary.java | ||
---|---|---|
92 | 92 |
* @param type the library type. See {@link TYPE}. |
93 | 93 |
*/ |
94 | 94 |
protected AbstractLibrary(Class library, String type) { |
95 |
if (!Library.class.isAssignableFrom(library)) { |
|
96 |
throw new IllegalArgumentException("Given class is not a Library: " |
|
97 |
+ library); |
|
98 |
} |
|
95 | 99 |
this.library = library; |
96 | 100 |
this.type = type; |
97 | 101 |
if( this.type != null && this.library!= null ) { |
Also available in: Unified diff