[
https://issues.jboss.org/browse/ISPN-10609?page=com.atlassian.jira.plugin...
]
Tristan Tarrant updated ISPN-10609:
-----------------------------------
Sprint: DataGrid Sprint #34, DataGrid Sprint #35, DataGrid Sprint #36, DataGrid Sprint
#37 (was: DataGrid Sprint #34, DataGrid Sprint #35, DataGrid Sprint #36)
Extend Marshaller interface to expose configured ClassWhiteList to
implementation
---------------------------------------------------------------------------------
Key: ISPN-10609
URL:
https://issues.jboss.org/browse/ISPN-10609
Project: Infinispan
Issue Type: Enhancement
Components: Core
Affects Versions: 10.0.0.CR2
Reporter: Ryan Emerson
Assignee: Ryan Emerson
Priority: Major
Fix For: 10.0.0.Final
ClassWhiteList is a generic white list that can be configured via our XML, it doesn't
have anything specifc to Serialization. We should allow a user's marshaller
implementation, set via SerializationConfiguration#marshaller, to utilise the configured
values to limit what can/can't be marshalled.
For our internal code this is nice because it will prevent us from requiring hacky code
like the following in the PersistenceMarshallerImpl if the user wants to utilise our
provided JavaSerializationMarshaller:
{code:java}
if (userMarshaller instanceof JavaSerializationMarshaller) {
((JavaSerialzationMarshaller) userMarshaller).setWhiteList(whiteListImpl);
} else if (userMarshaller instanceof ...) {
...
}
{code}
Proposed change to the Marshaller interface:
{code:java}
default void initialize(ClassWhiteList whiteList) {
// no-op
}
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)