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 |
defineClassFromClient(String name,
byte[] classDef) |
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 defineClassFromClient(String name, byte[] classDef)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.