public final class ClassLocator extends Object
UserCodeDeploymentClassLoader
when a class
is not found on local classpath.
The current implementation can consult the cache and when the class is not found then it consults
remote members.Constructor and Description |
---|
ClassLocator(ConcurrentMap<String,ClassSource> classSourceMap,
ConcurrentMap<String,ClassSource> clientClassSourceMap,
ClassLoader parent,
Filter<String> classNameFilter,
Filter<Member> memberFilter,
UserCodeDeploymentConfig.ClassCacheMode classCacheMode,
NodeEngine nodeEngine) |
Modifier and Type | Method and Description |
---|---|
void |
defineClassesFromClient(List<Map.Entry<String,byte[]>> bundledClassDefinitions) |
Class<?> |
defineClassFromClient(String name,
byte[] classDef,
Map<String,byte[]> bundledClassDefMap) |
Class<?> |
findLoadedClass(String name) |
Class<?> |
handleClassNotFoundException(String name) |
static void |
onFinishDeserialization() |
static void |
onStartDeserialization() |
public ClassLocator(ConcurrentMap<String,ClassSource> classSourceMap, ConcurrentMap<String,ClassSource> clientClassSourceMap, ClassLoader parent, Filter<String> classNameFilter, Filter<Member> memberFilter, UserCodeDeploymentConfig.ClassCacheMode classCacheMode, NodeEngine nodeEngine)
public static void onStartDeserialization()
public static void onFinishDeserialization()
public Class<?> handleClassNotFoundException(String name) throws ClassNotFoundException
ClassNotFoundException
public void defineClassesFromClient(List<Map.Entry<String,byte[]>> bundledClassDefinitions)
public Class<?> defineClassFromClient(String name, byte[] classDef, Map<String,byte[]> bundledClassDefMap)
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.