Package org.kohsuke.stapler
Class MetaClass
java.lang.Object
org.kohsuke.stapler.TearOffSupport
org.kohsuke.stapler.MetaClass
Created one instance each for a
Klass
,
that retains some useful cache about a class and its views.- Author:
- Kohsuke Kawaguchi
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionfinal MetaClass
Base metaclass.final MetaClassLoader
MetaClassLoader
that wrapsclazz.getClassLoader()
.final Class
Deprecated.final List<Dispatcher>
final Klass<?>
static boolean
In case the breaking changes are not desired.static boolean
In case the breaking changes are not desired.static boolean
Don't cache anything in memory, so that any change will take effect instantly.final WebApp
WebApp
that owns this meta class. -
Method Summary
Modifier and TypeMethodDescriptionReturns all the methods in the ancestry chain annotated withPostConstruct
from those defined in the derived type toward those defined in the base type.toString()
Methods inherited from class org.kohsuke.stapler.TearOffSupport
getTearOff, loadTearOff, setTearOff
-
Field Details
-
clazz
Deprecated.as of 1.177 Useklass
. If you really want the Java class representation, useklass.toJavaClass()
.This meta class wraps this class -
klass
-
classLoader
MetaClassLoader
that wrapsclazz.getClassLoader()
. Null if the class is loaded by the bootstrap classloader. -
dispatchers
-
baseClass
Base metaclass. Note thatbaseClass.clazz==clazz.getSuperClass()
-
webApp
WebApp
that owns this meta class. -
NO_CACHE
public static boolean NO_CACHEDon't cache anything in memory, so that any change will take effect instantly. -
LEGACY_GETTER_MODE
public static boolean LEGACY_GETTER_MODEIn case the breaking changes are not desired. They are recommended for security reason. -
LEGACY_WEB_METHOD_MODE
public static boolean LEGACY_WEB_METHOD_MODEIn case the breaking changes are not desired. They are recommended for security reason.
-
-
Method Details
-
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
-
toString
-
klass
.