[
https://issues.jboss.org/browse/JGRP-987?page=com.atlassian.jira.plugin.s...
]
Bela Ban updated JGRP-987:
--------------------------
Description:
Currently, a lot of classes could be immutable if it wasn't for the readFrom() method
to initialize itself from an input stream.
However, if we had a factory, which reads and constructs immutable instances of classes,
then we could turn a lot of classes into immutable classes, for example all headers should
be immutable.
The code for marshalling and unmarshalling could be generated, e.g. based on an XML
description of the data layout of a class, or via annotations.
was:
Currently, a lot of classes could be immutable if it wasn't for the readFrom() method
to initialize itself from an input stream.
However, if we had a factory, which reads and constructs immutable instances of classes,
then we could turn a lot of classes into immutable classes, for example all headers should
be immutable.
The code for marshalling and unmarshalling could be generated, e.g. based on an XML
description of the data layout of a class.
Make many classes immutable
---------------------------
Key: JGRP-987
URL:
https://issues.jboss.org/browse/JGRP-987
Project: JGroups
Issue Type: Feature Request
Reporter: Bela Ban
Assignee: Bela Ban
Priority: Major
Fix For: Future
Currently, a lot of classes could be immutable if it wasn't for the readFrom() method
to initialize itself from an input stream.
However, if we had a factory, which reads and constructs immutable instances of classes,
then we could turn a lot of classes into immutable classes, for example all headers should
be immutable.
The code for marshalling and unmarshalling could be generated, e.g. based on an XML
description of the data layout of a class, or via annotations.
--
This message was sent by Atlassian Jira
(v7.13.5#713005)