Overview | Package | Class | Tree | Deprecated | Index | Help
| ContactCenters V. 0.9.9.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## umontreal.iro.lecuyer.util
Class ClassFinderWithBase<T>

    java.lang.Object
      umontreal.iro.lecuyer.util.ClassFinder
          umontreal.iro.lecuyer.util.ClassFinderWithBase<T>

Type Parameters:
  `T` - the type of the base class.

All Implemented Interfaces:
  Serializable, Cloneable

    public class ClassFinderWithBase<T>

extends ClassFinder

Extends the `ClassFinder` class to find classes extending a specified base class or implementing a given base interface. The overridden `findClass(String)` method ensures that the class found by `ClassFinder` is assignable to the base class.

See Also:
  Serialized Form

Constructor Summary
`ClassFinderWithBase(Class<T> baseClass)` Constructs a new class finder with base class `baseClass`.

Method Summary
`Class<? extends T>` | `findClass(String name)`
`Class<T>` | `getBaseClass()` Returns the base class for any class returned by the `findClass(String)` method.

Methods inherited from class umontreal.iro.lecuyer.util.ClassFinder
`clone, getImports, getSimpleName, restoreImports, saveImports`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ClassFinderWithBase

    public ClassFinderWithBase(Class<T> baseClass)

  Constructs a new class finder with base class `baseClass`.

  Parameters:
    `baseClass` - the base class.
  Throws:
    `NullPointerException` - if `baseClass` is `null`.

Method Detail

### getBaseClass

    public Class<T> getBaseClass()

  Returns the base class for any class returned by the `findClass(String)` method.

  Returns:
    the base class.

### findClass

    public Class<? extends T> findClass(String name)
                                 throws ClassNotFoundException,
                                        NameConflictException

  Overrides:
    `findClass` in class `ClassFinder`
  Throws:
    `ClassNotFoundException`
    `NameConflictException`

Overview | Package | Class | Tree | Deprecated | Index | Help
| ContactCenters V. 0.9.9.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

To submit a bug or ask questions, send an e-mail to Richard Simard.