6.3.3. Linking Externalizers with Marshaller Classes
6.3.3. Linking Externalizers with Marshaller Classes
The Externalizer's readObject() and writeObject() methods link with the type classes they are configured to externalize by providing a getTypeClasses() implementation.
Copy to ClipboardCopied!Toggle word wrapToggle overflow
In the provided example, ReplicableCommandExternalizer indicates that it can externalize multiple commands.
There can be instances where the class instance to be externalized cannot be referenced because the source code is not available or cannot be modified. In this case, users can attempt to look up the class using the fully qualified class name. For example:
We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.
Making open source more inclusive
Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.
About Red Hat
We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.