public final class ClassLocator extends Object
UserCodeDeploymentClassLoader
when a class
is not found on a local classpath.
The current implementation can consult a 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 © 2018 Hazelcast, Inc.. All Rights Reserved.