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

## com.sun.tdk.signaturetest.loaders
Class ReflClassDescrLoader

    java.lang.Object
      com.sun.tdk.signaturetest.loaders.ReflClassDescrLoader

All Implemented Interfaces:
  ClassDescriptionLoader, LoadingHints

    public class ReflClassDescrLoader

extends java.lang.Object
implements ClassDescriptionLoader, LoadingHints

ReflClassDescrLoader is intended to compile information about classes via reflections package. If available, the advanced method Class.`forName`(String,`boolean`,ClassLoader) is involved, which enables to do not initialize classes being loaded. (This helps to avoid irrelevant security problems.)

See Also:
  `ClassDescription`

Nested Class Summary

Nested classes/interfaces inherited from interface com.sun.tdk.signaturetest.loaders.LoadingHints
`LoadingHints.Hint`

Field Summary
`static boolean` | `debug`

Fields inherited from interface com.sun.tdk.signaturetest.loaders.LoadingHints
`DONT_READ_VALUES, READ_ANY_ANNOTATIONS, READ_BRIDGE, READ_SYNTETHIC`

Constructor Summary
`ReflClassDescrLoader()` Adjust new ReflClassDescLoader instance.

Method Summary
`void` | `addLoadingHint(LoadingHints.Hint hint)`
`ClassDescription` | `load(java.lang.String name)` Return new ClassDescription for that class found by the given `name`.

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

Field Detail

### debug

    public static boolean debug

Constructor Detail

### ReflClassDescrLoader

    public ReflClassDescrLoader()

  Adjust new ReflClassDescLoader instance. In particular, detect if advanced method Class.`forName()` is implemented, which enables to do not initialize the class being loaded. Otherwise, tune `this` instance to use simpler version of the method `forName()`, which must be available anyway.

  See Also:
    `Class.forName(String,boolean,ClassLoader)`, `Class.forName(String)`

Method Detail

### load

    public ClassDescription load(java.lang.String name)
                          throws java.lang.ClassNotFoundException

  Return new ClassDescription for that class found by the given `name`.

  Specified by:
    `load` in interface `ClassDescriptionLoader`
  Throws:
    `java.lang.ClassNotFoundException` - If Class.`forName(name)` fails to load the required class.
  See Also:
    `Class.forName(String)`

### addLoadingHint

    public void addLoadingHint(LoadingHints.Hint hint)

  Specified by:
    `addLoadingHint` in interface `LoadingHints`

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