6.4.5. Register Multiple Externalizers Programmatically
Multiple externalizers can be registered at the same time using JBoss Data Grid's programmatic configuration. This feature requires that the relevant identifiers have already been defined using the
@Marshalls
annotation.
The following is an example of registering multiple externalizers:
builder.serialization() .addAdvancedExternalizer(new Person.PersonExternalizer(), new Address.AddressExternalizer());