phax / phase4

phase4 - AS4 client and server for integration into existing systems. Specific support for Peppol and CEF eDelivery built-in.
Apache License 2.0
154 stars 47 forks source link

Make PMode class static #41

Closed phax closed 4 years ago

phax commented 4 years ago

Thanks Philip. FWIW, I think that it would be best if the PMode class and all of its subclasses were to be concrete. The reason I say this that PModes are something that we want to marshal/demarshal (serialize/deserialze). We want to store them on the file system, in databases, we want to pass them on Kafka streams and MQ queues, etc. Each of the ways that we want to store and/or transport PModes has well known utilities that can directly operate on concrete objects and marshal/demarshal (serialize/deserialze) them. Jackson data-bind, GSON, JAXB, JDBC, Java serialization, etc. If the class and/or its subclasses are not concrete, then it is more complicated and non-standard.

phax commented 4 years ago

Part of 0.12.0