Class CachedClassForNameResolver<T>

java.lang.Object
kieker.common.util.classpath.CachedClassForNameResolver<T>
Type Parameters:
T - the type that is used to cast a type that was found in the class path

public class CachedClassForNameResolver<T> extends Object
Since:
1.11
Author:
Christian Wulf
  • Constructor Details

    • CachedClassForNameResolver

      public CachedClassForNameResolver(ClassForNameResolver<T> classForNameResolver)
      Create a cached class name resolver.
      Parameters:
      classForNameResolver - plain class name resolver
  • Method Details

    • classForName

      public final Class<? extends T> classForName(String classname) throws ClassNotFoundException
      This method tries to find a class with the given name.
      Parameters:
      classname - The name of the class.
      Returns:
      A Class instance corresponding to the given name, if it exists.
      Throws:
      ClassNotFoundException - when the specified classname does not refer to a known class