|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.common.util.DefaultClassUtilitiesImplementation
| Constructor Summary | |
DefaultClassUtilitiesImplementation()
Creates a new DefaultClassUtilitiesImplementation. |
|
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultClassUtilitiesImplementation()
DefaultClassUtilitiesImplementation.
| Method Detail |
public boolean fileExistsInClassPath(java.lang.String filename)
ClassUtilities.ClassUtilitiesImplementationClassLoader.getResourceAsStream(java.lang.String) method of the current thread class loader.
fileExistsInClassPath in interface ClassUtilities.ClassUtilitiesImplementationfilename - the filename
ClassUtilities.ClassUtilitiesImplementation.fileExistsInClassPath(java.lang.String)public java.lang.Class getClassForName(java.lang.String classname)
ClassUtilities.ClassUtilitiesImplementationClass for the class name specified.
getClassForName in interface ClassUtilities.ClassUtilitiesImplementationclassname - the full qualified class name (not null)
Class object for the class name givenClassUtilities.ClassUtilitiesImplementation.getClassForName(java.lang.String)public java.io.InputStream getResourceAsStream(java.lang.String resourcename)
ClassUtilities.ClassUtilitiesImplementationInputStream.
getResourceAsStream in interface ClassUtilities.ClassUtilitiesImplementationresourcename - the resource name
InputStream for the resourceClassUtilities.ClassUtilitiesImplementation.getResourceAsStream(java.lang.String)public java.lang.Object newInstance(java.lang.Class cls)
ClassUtilities.ClassUtilitiesImplementationClass.newInstance().
newInstance in interface ClassUtilities.ClassUtilitiesImplementationcls - the class to create an instance of (not null)
clsClassUtilities.ClassUtilitiesImplementation.newInstance(java.lang.Class)
public boolean isClassAssignableFrom(java.lang.Class superClassCandidate,
java.lang.Class subClassCandidate)
ClassUtilities.ClassUtilitiesImplementationsuperClassCandidate class is the same or
a superclass or superinterface of the subClassCandidate class.
This method should work according to Class.isAssignableFrom(Class)
isClassAssignableFrom in interface ClassUtilities.ClassUtilitiesImplementationsuperClassCandidate - 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 subClassCandidateClassUtilities.ClassUtilitiesImplementation.isClassAssignableFrom(java.lang.Class, java.lang.Class)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||