java.lang.Object
is.codion.common.rmi.server.SerializationWhitelist
Implements a serialization whitelist
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Configures a serialization whitelist, does nothing ifwhitelist
is null or empty.static void
configureDryRun
(String dryRunFile) Configures a serialization whitelist for a dry run, does nothing ifdryRunFile
is null or empty.static boolean
Returns true if a serialization dry-run is active.static void
Writes the class names collected during a dry-run to file.
-
Method Details
-
configure
Configures a serialization whitelist, does nothing ifwhitelist
is null or empty. Supports 'classpath:' prefix for a whitelist in the classpath root.- Parameters:
whitelistFile
- the path to the file containing the whitelisted class names
-
configureDryRun
Configures a serialization whitelist for a dry run, does nothing ifdryRunFile
is null or empty. Note that this will append to an existing file.- Parameters:
dryRunFile
- the dry-run results file to write to, appended to if it exists- Throws:
IllegalArgumentException
- in case of a classpath dry run file
-
serializationDryRun
public static boolean serializationDryRun()Returns true if a serialization dry-run is active.- Returns:
- true if a dry-run is active.
-
writeDryRunWhitelist
public static void writeDryRunWhitelist()Writes the class names collected during a dry-run to file. If dry-run was not active this method has no effect.
-