Class MetaClass


public class MetaClass extends TearOffSupport
Created one instance each for a Klass, that retains some useful cache about a class and its views.
Author:
Kohsuke Kawaguchi
See Also:
  • Field Details

    • clazz

      @Deprecated public final Class clazz
      Deprecated.
      as of 1.177 Use klass. If you really want the Java class representation, use klass.toJavaClass().
      This meta class wraps this class
    • klass

      public final Klass<?> klass
    • classLoader

      public final MetaClassLoader classLoader
      MetaClassLoader that wraps clazz.getClassLoader(). Null if the class is loaded by the bootstrap classloader.
    • dispatchers

      public final List<Dispatcher> dispatchers
    • baseClass

      public final MetaClass baseClass
      Base metaclass. Note that baseClass.clazz==clazz.getSuperClass()
    • webApp

      public final WebApp webApp
      WebApp that owns this meta class.
    • NO_CACHE

      public static boolean NO_CACHE
      Don't cache anything in memory, so that any change will take effect instantly.
    • LEGACY_GETTER_MODE

      public static boolean LEGACY_GETTER_MODE
      In case the breaking changes are not desired. They are recommended for security reason.
    • LEGACY_WEB_METHOD_MODE

      public static boolean LEGACY_WEB_METHOD_MODE
      In case the breaking changes are not desired. They are recommended for security reason.
  • Method Details

    • getPostConstructMethods

      public SingleLinkedList<MethodRef> getPostConstructMethods()
      Returns all the methods in the ancestry chain annotated with PostConstruct from those defined in the derived type toward those defined in the base type. Normally invocation requires visiting the list in the reverse order.
      Since:
      1.220
    • toString

      public String toString()
      Overrides:
      toString in class Object