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
FieldsModifier and TypeFieldDescriptionfinal MetaClassBase metaclass.final MetaClassLoaderMetaClassLoaderthat wrapsclazz.getClassLoader().final ClassDeprecated.final List<Dispatcher> final Klass<?> static booleanIn case the breaking changes are not desired.static booleanIn case the breaking changes are not desired.static booleanDon't cache anything in memory, so that any change will take effect instantly.final WebAppWebAppthat owns this meta class. -
Method Summary
Modifier and TypeMethodDescriptionReturns all the methods in the ancestry chain annotated withPostConstructfrom 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
MetaClassLoaderthat wrapsclazz.getClassLoader(). Null if the class is loaded by the bootstrap classloader. -
dispatchers
-
baseClass
Base metaclass. Note thatbaseClass.clazz==clazz.getSuperClass() -
webApp
WebAppthat 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 withPostConstructfrom 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.