cuba.webservice
Class AdapterClassCollector

java.lang.Object
  extended by cuba.webservice.AdapterClassCollector

public class AdapterClassCollector
extends java.lang.Object

Utility class to collect alle classes from the application's class path which represent client adapters for webservice tunneling. The lookup of components via a WebserviceClientContext is based on a naming convention which derives the adapter class name from the global component name. However, the packages of these classes cannot be derived from anything and therefore the classes must initially be searched for.


Constructor Summary
AdapterClassCollector()
           
 
Method Summary
static java.util.Map findSubClasses(java.lang.Class parentClass)
          Finds all subclasses of a given class or interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdapterClassCollector

public AdapterClassCollector()
Method Detail

findSubClasses

public static java.util.Map findSubClasses(java.lang.Class parentClass)
Finds all subclasses of a given class or interface. It will only search within the loaded packages and not the entire classpath.

Parameters:
parent - the class for which subclasses are searched
Returns:
a map of found Class objects with their (short) name as key.