Posted on May 03, 2019
Spine 1.0.0-pre7
Core Java
API Changes in Core Modules
@Subscribemethods now should be package-private, notpublic;@Applymethods now should beprivate, not package-private;@Assignmethods cannot returnNothinganymore. This feature was kept in Process Managers for backward compatibility. Now, we recommend that clients create domain-specific events even if they are not to be handled;- many getter methods are renamed in order to remove the
getandisprefixes. This code style will be propagated to the components which are not yet affected in the nearest future; DefaultRepositoryis introduced in order to avoid creating empty repository classes;- Javadoc is revised and fixed.
API Changes in Non-Core Modules
- the new
ValidatingOptionFactorySPI allows users to configure custom Protobuf validating options; (when)option is moved tospine/time/time_options.proto. It is now applicable to alltimeoptions which capture time, not onlygoogle.protobuf.Timestamp;MethodFactoryallows to generate methods into specific Protobuf definitions. Generated methods are configured via themodelCompiler.methodsGradle config;modelCompiler.interfacesconfig allows to mark certain Protobuf definitions with a certain Java interface.
This version updates nearly all the dependency versions.
See config/gradle/dependencies.gradle for the details.