Package org.kohsuke.stapler
Class MetaClass
- java.lang.Object
-
- org.kohsuke.stapler.TearOffSupport
-
- org.kohsuke.stapler.MetaClass
-
public class MetaClass extends TearOffSupport
Created one instance each for aKlass
, that retains some useful cache about a class and its views.- Author:
- Kohsuke Kawaguchi
- See Also:
WebApp.getMetaClass(Klass)
-
-
Field Summary
Fields Modifier and Type Field Description MetaClass
baseClass
Base metaclass.MetaClassLoader
classLoader
MetaClassLoader
that wrapsclazz.getClassLoader()
.Class
clazz
Deprecated.as of 1.177 Useklass
.List<Dispatcher>
dispatchers
Klass<?>
klass
static boolean
LEGACY_GETTER_MODE
In case the breaking changes are not desired.static boolean
LEGACY_WEB_METHOD_MODE
In case the breaking changes are not desired.static boolean
NO_CACHE
Don't cache anything in memory, so that any change will take effect instantly.WebApp
webApp
WebApp
that owns this meta class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleLinkedList<MethodRef>
getPostConstructMethods()
Returns all the methods in the ancestry chain annotated withPostConstruct
from those defined in the derived type toward those defined in the base type.String
toString()
-
Methods inherited from class org.kohsuke.stapler.TearOffSupport
getTearOff, loadTearOff, setTearOff
-
-
-
-
Field Detail
-
clazz
@Deprecated public final Class clazz
Deprecated.as of 1.177 Useklass
. If you really want the Java class representation, useklass.toJavaClass()
.This meta class wraps this class
-
klass
public final Klass<?> klass
-
classLoader
public final MetaClassLoader classLoader
MetaClassLoader
that wrapsclazz.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 thatbaseClass.clazz==clazz.getSuperClass()
-
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 Detail
-
getPostConstructMethods
public SingleLinkedList<MethodRef> getPostConstructMethods()
Returns all the methods in the ancestry chain annotated withPostConstruct
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
-
-