Package io.github.toolfactory.jvm
Class DefaultDriver
- java.lang.Object
-
- io.github.toolfactory.jvm.DriverAbst
-
- io.github.toolfactory.jvm.DefaultDriver
-
- All Implemented Interfaces:
Driver
,java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
DynamicDriver
,HybridDriver
,NativeDriver
public class DefaultDriver extends DriverAbst
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.github.toolfactory.jvm.Driver
Driver.Factory, Driver.InitializeException, Driver.InstantiateException
-
-
Field Summary
-
Fields inherited from class io.github.toolfactory.jvm.DriverAbst
accessibleSetter, allocateInstanceInvoker, builtinClassLoaderClassSupplier, classByNameRetriever, classLoaderDelegateClassSupplier, classLoaderToBuiltinClassLoaderConverter, constructorInvoker, consulterRetriever, declaredConstructorsRetriever, declaredFieldsRetriever, declaredMethodsRetriever, exceptionThrower, fieldValueRetriever, fieldValueSetter, hookClassDefiner, loadedClassesRetrieverSupplier, loadedPackagesRetriever, methodInvoker, packageRetriever, resourcesRetriver, threadStopper
-
-
Constructor Summary
Constructors Constructor Description DefaultDriver()
-
Method Summary
-
Methods inherited from class io.github.toolfactory.jvm.DriverAbst
allocateInstance, close, convertToBuiltinClassLoader, defineHookClass, functionsToMap, getAccessibleSetter, getAllocateInstanceInvoker, getBuiltinClassLoaderClass, getBuiltinClassLoaderClassSupplier, getClassByName, getClassByNameRetriever, getClassLoaderDelegateClass, getClassLoaderDelegateClassSupplier, getClassLoaderToBuiltinClassLoaderConverter, getConstructorInvoker, getConsulter, getConsulterRetriever, getDeclaredConstructors, getDeclaredConstructorsRetriever, getDeclaredFields, getDeclaredFieldsRetriever, getDeclaredMethods, getDeclaredMethodsRetriever, getDeepConsulterRetriever, getExceptionThrower, getFieldValue, getFieldValueRetriever, getFieldValueSetter, getHookClassDefiner, getLoadedClassesRetriever, getLoadedClassesRetrieverFunction, getLoadedPackagesRetriever, getMethodInvoker, getOrBuildAccessibleSetter, getOrBuildAllocateInstanceInvoker, getOrBuildBuiltinClassLoaderClassSupplier, getOrBuildClassByNameRetriever, getOrBuildClassLoaderDelegateClassSupplier, getOrBuildClassLoaderToBuiltinClassLoaderConverter, getOrBuildConstructorInvoker, getOrBuildConsulterRetriever, getOrBuildDeclaredConstructorsRetriever, getOrBuildDeclaredFieldsRetriever, getOrBuildDeclaredMethodsRetriever, getOrBuildDeepConsulterRetriever, getOrBuildExceptionThrower, getOrBuildFieldValueRetriever, getOrBuildFieldValueSetter, getOrBuildHookClassDefiner, getOrBuildLoadedClassesRetrieverFunction, getOrBuildLoadedPackagesRetriever, getOrBuildMethodInvoker, getOrBuildPackageRetriever, getOrBuildResourcesRetriever, getOrBuildThreadStopper, getPackage, getPackageRetriever, getResources, getResources, getResourcesRetriever, getThreadStopper, init, invoke, isBuiltinClassLoader, isClassLoaderDelegate, newInstance, putIfNotNull, putNewObjectProviderIfAbsent, refresh, retrieveLoadedPackages, setAccessible, setFieldValue, stop, throwException, throwException
-
-
-
-
Method Detail
-
getThrowExceptionFunctionClass
protected java.lang.Class<? extends ThrowExceptionFunction> getThrowExceptionFunctionClass()
- Specified by:
getThrowExceptionFunctionClass
in classDriverAbst
-
getAllocateInstanceFunctionClass
protected java.lang.Class<? extends AllocateInstanceFunction> getAllocateInstanceFunctionClass()
- Specified by:
getAllocateInstanceFunctionClass
in classDriverAbst
-
getGetFieldValueFunctionClass
protected java.lang.Class<? extends GetFieldValueFunction> getGetFieldValueFunctionClass()
- Specified by:
getGetFieldValueFunctionClass
in classDriverAbst
-
getSetFieldValueFunctionClass
protected java.lang.Class<? extends SetFieldValueFunction> getSetFieldValueFunctionClass()
- Specified by:
getSetFieldValueFunctionClass
in classDriverAbst
-
getDefineHookClassFunctionClass
protected java.lang.Class<? extends DefineHookClassFunction> getDefineHookClassFunctionClass()
- Specified by:
getDefineHookClassFunctionClass
in classDriverAbst
-
getConsulterSupplyFunctionClass
protected java.lang.Class<? extends ConsulterSupplyFunction> getConsulterSupplyFunctionClass()
- Specified by:
getConsulterSupplyFunctionClass
in classDriverAbst
-
getGetDeclaredFieldsFunctionClass
protected java.lang.Class<? extends GetDeclaredFieldsFunction> getGetDeclaredFieldsFunctionClass()
- Specified by:
getGetDeclaredFieldsFunctionClass
in classDriverAbst
-
getGetDeclaredMethodsFunctionClass
protected java.lang.Class<? extends GetDeclaredMethodsFunction> getGetDeclaredMethodsFunctionClass()
- Specified by:
getGetDeclaredMethodsFunctionClass
in classDriverAbst
-
getGetDeclaredConstructorsFunctionClass
protected java.lang.Class<? extends GetDeclaredConstructorsFunction> getGetDeclaredConstructorsFunctionClass()
- Specified by:
getGetDeclaredConstructorsFunctionClass
in classDriverAbst
-
getSetAccessibleFunctionClass
protected java.lang.Class<? extends SetAccessibleFunction> getSetAccessibleFunctionClass()
- Specified by:
getSetAccessibleFunctionClass
in classDriverAbst
-
getConstructorInvokeFunctionClass
protected java.lang.Class<? extends ConstructorInvokeFunction> getConstructorInvokeFunctionClass()
- Specified by:
getConstructorInvokeFunctionClass
in classDriverAbst
-
getMethodInvokeFunctionClass
protected java.lang.Class<? extends MethodInvokeFunction> getMethodInvokeFunctionClass()
- Specified by:
getMethodInvokeFunctionClass
in classDriverAbst
-
getGetPackageFunctionClass
protected java.lang.Class<? extends GetPackageFunction> getGetPackageFunctionClass()
- Specified by:
getGetPackageFunctionClass
in classDriverAbst
-
getGetResourcesFunctionClass
protected java.lang.Class<? extends GetResourcesFunction> getGetResourcesFunctionClass()
- Specified by:
getGetResourcesFunctionClass
in classDriverAbst
-
getGetClassByNameFunctionClass
protected java.lang.Class<? extends GetClassByNameFunction> getGetClassByNameFunctionClass()
- Specified by:
getGetClassByNameFunctionClass
in classDriverAbst
-
getBuiltinClassLoaderClassSupplierClass
protected java.lang.Class<? extends BuiltinClassLoaderClassSupplier> getBuiltinClassLoaderClassSupplierClass()
- Specified by:
getBuiltinClassLoaderClassSupplierClass
in classDriverAbst
-
getClassLoaderDelegateClassSupplierClass
protected java.lang.Class<? extends ClassLoaderDelegateClassSupplier> getClassLoaderDelegateClassSupplierClass()
- Specified by:
getClassLoaderDelegateClassSupplierClass
in classDriverAbst
-
getDeepConsulterSupplyFunctionClass
protected java.lang.Class<? extends DeepConsulterSupplyFunction> getDeepConsulterSupplyFunctionClass()
- Specified by:
getDeepConsulterSupplyFunctionClass
in classDriverAbst
-
getGetLoadedClassesRetrieverFunctionClass
protected java.lang.Class<? extends GetLoadedClassesRetrieverFunction> getGetLoadedClassesRetrieverFunctionClass()
- Specified by:
getGetLoadedClassesRetrieverFunctionClass
in classDriverAbst
-
getGetLoadedPackagesFunctionClass
protected java.lang.Class<? extends GetLoadedPackagesFunction> getGetLoadedPackagesFunctionClass()
- Specified by:
getGetLoadedPackagesFunctionClass
in classDriverAbst
-
getConvertToBuiltinClassLoaderFunctionClass
protected java.lang.Class<? extends ConvertToBuiltinClassLoaderFunction> getConvertToBuiltinClassLoaderFunctionClass()
- Specified by:
getConvertToBuiltinClassLoaderFunctionClass
in classDriverAbst
-
getStopThreadFunctionClass
protected java.lang.Class<? extends StopThreadFunction> getStopThreadFunctionClass()
- Specified by:
getStopThreadFunctionClass
in classDriverAbst
-
-