Ryan Emerson created ISPN-12696:
-----------------------------------
Summary: SerializationContextRegistryImpl should automatically register
PERSISTENCE SCIs with Global context
Key: ISPN-12696
URL:
https://issues.redhat.com/browse/ISPN-12696
Project: Infinispan
Issue Type: Bug
Components: Marshalling
Affects Versions: 12.0.0.Final
Reporter: Ryan Emerson
Assignee: Ryan Emerson
The GlOBAL context is a superset of the PERSISTENCE context, therefore if an internal SCI
is registered with the PERSISTENCE context this should also be registered with the GLOBAL
conmtext.
Currently it's necessary for Infinispan modules to register with both manually. For
example the Query LifecycleManager has todo the following:
{code:java}
ctxRegistry.addContextInitializer(SerializationContextRegistry.MarshallerType.PERSISTENCE,
new PersistenceContextInitializerImpl());
ctxRegistry.addContextInitializer(SerializationContextRegistry.MarshallerType.GLOBAL,
MarshallerRegistration.INSTANCE);
{code}
--
This message was sent by Atlassian Jira
(v8.13.1#813001)