Class ASMFactoryUtils
java.lang.Object
com.gigaspaces.internal.reflection.fast.ASMFactoryUtils
Base class for all the ASM factories
- Since:
- 7.1
- Author:
- guy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassdefineClass(ClassLoader loader, String name, byte[] b) static ClassLoadergetClassTargetLoader(Class memberClass) static StringgetCreateClassNamePrefix(Class<?> clazz) A generated class must not be defined into a package of an explicit named module (e.g.static StringgetCreateClassNamePrefix(String className) static booleanisRelocated(Class<?> clazz) Whether a generated class for the given class is defined outside the class package (seegetCreateClassNamePrefix(Class)).
-
Constructor Details
-
ASMFactoryUtils
public ASMFactoryUtils()
-
-
Method Details
-
defineClass
- Throws:
Exception
-
getClassTargetLoader
-
getCreateClassNamePrefix
-
getCreateClassNamePrefix
A generated class must not be defined into a package of an explicit named module (e.g. JDK dynamic proxies live in module jdk.proxyN since JDK 16) - it would become a member of that module, which does not read the unnamed module holding the GigaSpaces ASM base classes. Such classes are relocated, the same as java.* classes. Automatic modules read all unnamed modules, so their classes are not relocated. -
isRelocated
Whether a generated class for the given class is defined outside the class package (seegetCreateClassNamePrefix(Class)). Such a generated class has only public access to the class.
-