texturesynthesis.util
Class RTSI

java.lang.Object
  extended by texturesynthesis.util.RTSI

public class RTSI
extends java.lang.Object

This utility class is looking for all the classes implementing or inheriting from a given interface or class. (RunTime Subclass Identification) Adapted from code by Daniel Le Berre. See http://www.javaworld.com/javaworld/javatips/jw-javatip113.html

Author:
Aki Koskinen

Constructor Summary
RTSI()
           
 
Method Summary
static java.lang.Object[] find(java.lang.String tosubclassname)
          Display all the classes inheriting or implementing a given class in the currently loaded packages.
static java.lang.Object[] find(java.lang.String pckgname, java.lang.Class tosubclass)
          Display all the classes inheriting or implementing a given class in a given package.
static java.lang.Object[] find(java.lang.String pckname, java.lang.String tosubclassname)
          Display all the classes inheriting or implementing a given class in a given package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTSI

public RTSI()
Method Detail

find

public static java.lang.Object[] find(java.lang.String tosubclassname)
Display all the classes inheriting or implementing a given class in the currently loaded packages.

Parameters:
tosubclassname - the name of the class to inherit from

find

public static java.lang.Object[] find(java.lang.String pckname,
                                      java.lang.String tosubclassname)
Display all the classes inheriting or implementing a given class in a given package.

Parameters:
pckname - the fully qualified name of the package
tosubclassname - the name of the class to inherit from

find

public static java.lang.Object[] find(java.lang.String pckgname,
                                      java.lang.Class tosubclass)
Display all the classes inheriting or implementing a given class in a given package.

Parameters:
pckgname - the fully qualified name of the package
tosubclass - the Class object to inherit from