be.ac.ulg.montefiore.run.totem.util
Class RTSI

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.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)

Version:
1.0
Author:
Daniel Le Berre

Constructor Summary
RTSI()
           
 
Method Summary
static java.util.List<java.lang.Class> find(java.lang.String tosubclassname)
          Display all the classes inheriting or implementing a given class in the currently loaded packages.
static java.util.List<java.lang.Class> 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.util.List<java.lang.Class> find(java.lang.String pckname, java.lang.String tosubclassname)
          Display all the classes inheriting or implementing a given class in a given package.
static void main(java.lang.String[] args)
           
 
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.util.List<java.lang.Class> 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.util.List<java.lang.Class> 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.util.List<java.lang.Class> 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

main

public static void main(java.lang.String[] args)


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.