Package org.infinispan.marshall.core
Class ExternallyMarshallable
- java.lang.Object
-
- org.infinispan.marshall.core.ExternallyMarshallable
-
public final class ExternallyMarshallable extends Object
As much as possible, Infinispan consumers should provideExternalizer
orAdvancedExternalizer
instances for the types being marshalled, so that these types can be marshalled as efficiently as possible. Sometimes however, Infinispan consumers might rely on the fact that a certain type implements Java's standardSerializable
orExternalizable
. This class acts a test barrier which controls, provided assertions have been enabled, which types can be externally marshalled using JBoss Marshalling. The plan is for external marshalling is be morphed into user type marshalling, at which point this class won't be used any more.- Since:
- 9.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addToWhiteList(String type)
Adds package or class name to the externally marshallable white list.static boolean
isAllowed(Class<?> clazz)
static boolean
isAllowed(Object obj)
-