Package org.springframework.aot.agent
Class InstrumentedBridgeMethods
java.lang.Object
org.springframework.aot.agent.InstrumentedBridgeMethods
Deprecated.
This class should only be used by the runtime-hints agent when instrumenting bytecode
and is not considered public API.
Instrumented version of JDK methods to be used by bytecode rewritten by the
RuntimeHintsAgent
.
Methods implemented here follow a specific naming pattern "lowercase type name + bridged method name",
so that the agent can consistently rewrite calls to instrumented methods.
For example Class#forName(String)
will be here names classforName(String)
.
- Author:
- Brian Clozel
- See Also:
-
InstrumentedMethod
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>
classforName
(String className) Deprecated.static Class<?>
classforName
(String className, boolean initialize, ClassLoader loader) Deprecated.static Class<?>[]
classgetClasses
(Class<?> clazz) Deprecated.static Constructor<?>
classgetConstructor
(Class<?> clazz, Class<?>[] parameterTypes) Deprecated.static Constructor<?>[]
classgetConstructors
(Class<?> clazz) Deprecated.static Class<?>[]
classgetDeclaredClasses
(Class<?> clazz) Deprecated.static Constructor<?>
classgetDeclaredConstructor
(Class<?> clazz, Class<?>[] parameterTypes) Deprecated.static Constructor<?>[]
classgetDeclaredConstructors
(Class<?> clazz) Deprecated.static Field
classgetDeclaredField
(Class<?> clazz, String name) Deprecated.static Field[]
classgetDeclaredFields
(Class<?> clazz) Deprecated.static Method
classgetDeclaredMethod
(Class<?> clazz, String name, Class<?>... params) Deprecated.static Method[]
classgetDeclaredMethods
(Class<?> clazz) Deprecated.static Field
classgetField
(Class<?> clazz, String name) Deprecated.static Field[]
classgetFields
(Class<?> clazz) Deprecated.static Method
classgetMethod
(Class<?> clazz, String name, Class<?>... parameterTypes) Deprecated.static Method[]
classgetMethods
(Class<?> clazz) Deprecated.static URL
classgetResource
(Class<?> clazz, String name) Deprecated.static InputStream
classgetResourceAsStream
(Class<?> clazz, String name) Deprecated.static URL
classloadergetResource
(ClassLoader classLoader, String name) Deprecated.static InputStream
classloadergetResourceAsStream
(ClassLoader classLoader, String name) Deprecated.static Enumeration<URL>
classloadergetResources
(ClassLoader classLoader, String name) Deprecated.static Class<?>
classloaderloadClass
(ClassLoader classLoader, String name) Deprecated.classloaderresources
(ClassLoader classLoader, String name) Deprecated.static Object
constructornewInstance
(Constructor<?> constructor, Object... arguments) Deprecated.static Object
Deprecated.static void
Deprecated.static Annotation[]
methodgetAnnotations
(Method method) Deprecated.static Class<?>[]
methodgetParameterTypes
(Method method) Deprecated.static Object
methodinvoke
(Method method, Object object, Object... arguments) Deprecated.static InputStream
modulegetResourceAsStream
(Module module, String name) Deprecated.static Object
proxynewProxyInstance
(ClassLoader loader, Class<?>[] interfaces, InvocationHandler h) Deprecated.static ResourceBundle
resourcebundlegetBundle
(String baseName) Deprecated.static ResourceBundle
resourcebundlegetBundle
(String baseName, Module module) Deprecated.static ResourceBundle
resourcebundlegetBundle
(String baseName, Locale locale) Deprecated.static ResourceBundle
resourcebundlegetBundle
(String baseName, Locale locale, ClassLoader loader) Deprecated.static ResourceBundle
resourcebundlegetBundle
(String baseName, Locale targetLocale, ClassLoader loader, ResourceBundle.Control control) Deprecated.static ResourceBundle
resourcebundlegetBundle
(String baseName, Locale targetLocale, Module module) Deprecated.static ResourceBundle
resourcebundlegetBundle
(String baseName, Locale targetLocale, ResourceBundle.Control control) Deprecated.static ResourceBundle
resourcebundlegetBundle
(String baseName, ResourceBundle.Control control) Deprecated.
-
Method Details
-
classforName
Deprecated.- Throws:
ClassNotFoundException
-
classforName
public static Class<?> classforName(String className, boolean initialize, ClassLoader loader) throws ClassNotFoundException Deprecated.- Throws:
ClassNotFoundException
-
classgetConstructors
Deprecated.- Throws:
SecurityException
-
classgetConstructor
public static Constructor<?> classgetConstructor(Class<?> clazz, Class<?>[] parameterTypes) throws NoSuchMethodException Deprecated.- Throws:
NoSuchMethodException
-
classgetDeclaredConstructors
public static Constructor<?>[] classgetDeclaredConstructors(Class<?> clazz) throws SecurityException Deprecated.- Throws:
SecurityException
-
classgetDeclaredConstructor
public static Constructor<?> classgetDeclaredConstructor(Class<?> clazz, Class<?>[] parameterTypes) throws NoSuchMethodException Deprecated.- Throws:
NoSuchMethodException
-
classgetMethods
Deprecated.- Throws:
SecurityException
-
classgetMethod
public static Method classgetMethod(Class<?> clazz, String name, Class<?>... parameterTypes) throws NoSuchMethodException, SecurityException Deprecated. -
classgetDeclaredMethod
public static Method classgetDeclaredMethod(Class<?> clazz, String name, Class<?>... params) throws SecurityException, NoSuchMethodException Deprecated. -
classgetDeclaredMethods
Deprecated. -
classgetDeclaredClasses
Deprecated. -
classgetClasses
Deprecated. -
classgetDeclaredFields
Deprecated. -
classgetDeclaredField
Deprecated.- Throws:
NoSuchFieldException
-
classgetFields
Deprecated. -
classgetField
Deprecated.- Throws:
NoSuchFieldException
-
classgetResource
Deprecated. -
classgetResourceAsStream
Deprecated. -
classloaderloadClass
public static Class<?> classloaderloadClass(ClassLoader classLoader, String name) throws ClassNotFoundException Deprecated.- Throws:
ClassNotFoundException
-
classloadergetResource
Deprecated. -
classloadergetResourceAsStream
@Nullable public static InputStream classloadergetResourceAsStream(ClassLoader classLoader, String name) Deprecated. -
classloaderresources
Deprecated. -
classloadergetResources
public static Enumeration<URL> classloadergetResources(ClassLoader classLoader, String name) throws IOException Deprecated.- Throws:
IOException
-
constructornewInstance
public static Object constructornewInstance(Constructor<?> constructor, Object... arguments) throws InvocationTargetException, InstantiationException, IllegalAccessException Deprecated. -
methodgetAnnotations
Deprecated. -
methodgetParameterTypes
Deprecated. -
methodinvoke
public static Object methodinvoke(Method method, Object object, Object... arguments) throws InvocationTargetException, IllegalAccessException Deprecated. -
fieldget
public static Object fieldget(Field field, Object object) throws IllegalArgumentException, IllegalAccessException Deprecated. -
fieldset
public static void fieldset(Field field, Object object, Object value) throws IllegalArgumentException, IllegalAccessException Deprecated. -
modulegetResourceAsStream
Deprecated.- Throws:
IOException
-
resourcebundlegetBundle
Deprecated. -
resourcebundlegetBundle
public static ResourceBundle resourcebundlegetBundle(String baseName, ResourceBundle.Control control) Deprecated. -
resourcebundlegetBundle
Deprecated. -
resourcebundlegetBundle
Deprecated. -
resourcebundlegetBundle
public static ResourceBundle resourcebundlegetBundle(String baseName, Locale targetLocale, Module module) Deprecated. -
resourcebundlegetBundle
public static ResourceBundle resourcebundlegetBundle(String baseName, Locale targetLocale, ResourceBundle.Control control) Deprecated. -
resourcebundlegetBundle
public static ResourceBundle resourcebundlegetBundle(String baseName, Locale locale, ClassLoader loader) Deprecated. -
resourcebundlegetBundle
public static ResourceBundle resourcebundlegetBundle(String baseName, Locale targetLocale, ClassLoader loader, ResourceBundle.Control control) Deprecated. -
proxynewProxyInstance
public static Object proxynewProxyInstance(ClassLoader loader, Class<?>[] interfaces, InvocationHandler h) Deprecated.
-