|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the interface that implementors must implement.
| Method Summary | |
boolean |
fileExistsInClassPath(java.lang.String filename)
Tests, whether a file is accessible in the class path using the ClassLoader.getResourceAsStream(java.lang.String) method of the current thread class loader. |
java.lang.Class |
getClassForName(java.lang.String classname)
Creates a Class for the class name specified. |
java.io.InputStream |
getResourceAsStream(java.lang.String resourcename)
Returns the resource with the given name as InputStream. |
boolean |
isClassAssignableFrom(java.lang.Class superClassCandidate,
java.lang.Class subClassCandidate)
Checks, if the given superClassCandidate class is the same or
a superclass or superinterface of the subClassCandidate class.
|
java.lang.Object |
newInstance(java.lang.Class cls)
Creates a new instance for the class given. |
| Method Detail |
public boolean fileExistsInClassPath(java.lang.String filename)
ClassLoader.getResourceAsStream(java.lang.String) method of the current thread class loader.
filename - the filename
public java.lang.Class getClassForName(java.lang.String classname)
Class for the class name specified.
classname - the full qualified class name (not null)
Class object for the class name given
java.lang.IllegalArgumentException - if the class with that name could not be found
or if the class name is nullpublic java.lang.Object newInstance(java.lang.Class cls)
Class.newInstance().
cls - the class to create an instance of (not null)
cls
java.lang.IllegalArgumentException - if no instance could be created of the
given class or if the given class is null
public boolean isClassAssignableFrom(java.lang.Class superClassCandidate,
java.lang.Class subClassCandidate)
superClassCandidate class is the same or
a superclass or superinterface of the subClassCandidate class.
This method should work according to Class.isAssignableFrom(Class)
superClassCandidate - the super class or interface candidate to check (not null)subClassCandidate - the sub class or interface candidate to check (not null)
true if superClassCandidate is the same or
a super class or super interface of subClassCandidatepublic java.io.InputStream getResourceAsStream(java.lang.String resourcename)
InputStream.
resourcename - the resource name
InputStream for the resource
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||