public class DefaultSerializeClassChecker extends Object implements AllowClassNotifyListener
DEFAULT_STATUS| Constructor and Description |
|---|
DefaultSerializeClassChecker(FrameworkModel frameworkModel) |
| Modifier and Type | Method and Description |
|---|---|
static DefaultSerializeClassChecker |
getInstance() |
boolean |
isCheckSerializable() |
Class<?> |
loadClass(ClassLoader classLoader,
String className)
Try load class
|
void |
notifyCheckSerializable(boolean checkSerializable) |
void |
notifyCheckStatus(SerializeCheckStatus status) |
void |
notifyPrefix(Set<String> allowedList,
Set<String> disAllowedList) |
public DefaultSerializeClassChecker(FrameworkModel frameworkModel)
public void notifyPrefix(Set<String> allowedList, Set<String> disAllowedList)
notifyPrefix in interface AllowClassNotifyListenerpublic void notifyCheckStatus(SerializeCheckStatus status)
notifyCheckStatus in interface AllowClassNotifyListenerpublic void notifyCheckSerializable(boolean checkSerializable)
notifyCheckSerializable in interface AllowClassNotifyListenerpublic Class<?> loadClass(ClassLoader classLoader, String className) throws ClassNotFoundException
className - class nameIllegalArgumentException - if class is blockedClassNotFoundExceptionpublic static DefaultSerializeClassChecker getInstance()
public boolean isCheckSerializable()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.