org.picocontainer.defaults
Class ClassHierarchyIntrospector

java.lang.Object
  extended byorg.picocontainer.defaults.ClassHierarchyIntrospector

Deprecated. Use com.thoughtworks.proxy.toys.multicast.ClassHierarchyIntrospector instead. *

public class ClassHierarchyIntrospector
extends Object

Helper class for introspecting interface and class hierarchies.

Version:
$Revision: 1.3 $
Author:
Aslak Hellesøy, Jörg Schaible

Field Summary
static Method equals
          Deprecated. the Object.equals(Object) method.
static Method hashCode
          Deprecated. the Object.hashCode() method.
 
Method Summary
static Set getAllInterfaces(Class clazz)
          Deprecated. Get all interfaces of the given type.
static Set getAllInterfaces(List objects)
          Deprecated. Get all the interfaces implemented by a list of objects.
static Class getMostCommonSuperclass(Object[] objects)
          Deprecated. Get most common superclass for all given objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

equals

public static Method equals
Deprecated. 
the Object.equals(Object) method.


hashCode

public static Method hashCode
Deprecated. 
the Object.hashCode() method.

Method Detail

getAllInterfaces

public static Set getAllInterfaces(List objects)
Deprecated. 
Get all the interfaces implemented by a list of objects.

Parameters:
objects - the List of objects to consider.
Returns:
a Set of interfaces.

getAllInterfaces

public static Set getAllInterfaces(Class clazz)
Deprecated. 
Get all interfaces of the given type. If the type is a Class, the returned list contains any interface, that is implemented by the class. If the type is an interface, the all superinterfaces and the interface itself are included.

Parameters:
clazz - type to explore.
Returns:
a Set with all interfaces. The array may be empty.

getMostCommonSuperclass

public static Class getMostCommonSuperclass(Object[] objects)
Deprecated. 
Get most common superclass for all given objects.

Parameters:
objects - the array of objects to consider.
Returns:
the superclass or Void.class for an empty array.


Copyright © 2003-2004 Codehaus. All Rights Reserved.