Skip to content

Commit 639b451

Browse files
authored
Merge pull request #494 from SpineEventEngine/entity-state-marker-interface
`EntityState` marker interface
2 parents 5b50025 + 03e931a commit 639b451

File tree

24 files changed

+465
-74
lines changed

24 files changed

+465
-74
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright 2019, TeamDev. All rights reserved.
3+
*
4+
* Redistribution and use in source and/or binary forms, with or without
5+
* modification, must retain the above copyright notice and the following
6+
* disclaimer.
7+
*
8+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
9+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
10+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
11+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
12+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
13+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
14+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
15+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
16+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
17+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
18+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19+
*/
20+
21+
package io.spine.base;
22+
23+
import com.google.errorprone.annotations.Immutable;
24+
25+
/**
26+
* A common interface for entity state messages.
27+
*
28+
* <p>Any message that defines an {@code (entity)} option with a valid {@code kind} is marked with
29+
* this interface by the Model Compiler.
30+
*
31+
* @see io.spine.code.proto.EntityStateOption
32+
*/
33+
@SuppressWarnings("InterfaceNeverImplemented") // Implemented in the dependent repos.
34+
@Immutable
35+
public interface EntityState extends SerializableMessage {
36+
}

config

license-report.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
# Dependencies of `io.spine:spine-base:1.1.11`
3+
# Dependencies of `io.spine:spine-base:1.2.0`
44

55
## Runtime
66
1. **Group:** com.google.code.findbugs **Name:** jsr305 **Version:** 3.0.2
@@ -321,12 +321,12 @@
321321
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
322322

323323

324-
This report was generated on **Thu Nov 07 12:00:47 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
324+
This report was generated on **Thu Nov 07 15:18:11 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
325325

326326

327327

328328

329-
# Dependencies of `io.spine.tools:spine-errorprone-checks:1.1.11`
329+
# Dependencies of `io.spine.tools:spine-errorprone-checks:1.2.0`
330330

331331
## Runtime
332332
1. **Group:** aopalliance **Name:** aopalliance **Version:** 1.0
@@ -852,12 +852,12 @@ This report was generated on **Thu Nov 07 12:00:47 EET 2019** using [Gradle-Lice
852852
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
853853

854854

855-
This report was generated on **Thu Nov 07 12:00:48 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
855+
This report was generated on **Thu Nov 07 15:18:20 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
856856

857857

858858

859859

860-
# Dependencies of `io.spine.tools:spine-javadoc-filter:1.1.11`
860+
# Dependencies of `io.spine.tools:spine-javadoc-filter:1.2.0`
861861

862862
## Runtime
863863
1. **Group:** com.google.android **Name:** annotations **Version:** 4.1.1.4
@@ -1240,12 +1240,12 @@ This report was generated on **Thu Nov 07 12:00:48 EET 2019** using [Gradle-Lice
12401240
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
12411241

12421242

1243-
This report was generated on **Thu Nov 07 12:00:49 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
1243+
This report was generated on **Thu Nov 07 15:18:27 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
12441244

12451245

12461246

12471247

1248-
# Dependencies of `io.spine.tools:spine-javadoc-prettifier:1.1.11`
1248+
# Dependencies of `io.spine.tools:spine-javadoc-prettifier:1.2.0`
12491249

12501250
## Runtime
12511251
1. **Group:** aopalliance **Name:** aopalliance **Version:** 1.0
@@ -1702,12 +1702,12 @@ This report was generated on **Thu Nov 07 12:00:49 EET 2019** using [Gradle-Lice
17021702
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
17031703

17041704

1705-
This report was generated on **Thu Nov 07 12:00:49 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
1705+
This report was generated on **Thu Nov 07 15:18:36 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
17061706

17071707

17081708

17091709

1710-
# Dependencies of `io.spine.tools:spine-model-compiler:1.1.11`
1710+
# Dependencies of `io.spine.tools:spine-model-compiler:1.2.0`
17111711

17121712
## Runtime
17131713
1. **Group:** aopalliance **Name:** aopalliance **Version:** 1.0
@@ -2180,12 +2180,12 @@ This report was generated on **Thu Nov 07 12:00:49 EET 2019** using [Gradle-Lice
21802180
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
21812181

21822182

2183-
This report was generated on **Thu Nov 07 12:00:50 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
2183+
This report was generated on **Thu Nov 07 15:18:44 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
21842184

21852185

21862186

21872187

2188-
# Dependencies of `io.spine.tools:spine-mute-logging:1.1.11`
2188+
# Dependencies of `io.spine.tools:spine-mute-logging:1.2.0`
21892189

21902190
## Runtime
21912191
1. **Group:** com.google.auto.value **Name:** auto-value-annotations **Version:** 1.6.3
@@ -2559,12 +2559,12 @@ This report was generated on **Thu Nov 07 12:00:50 EET 2019** using [Gradle-Lice
25592559
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
25602560

25612561

2562-
This report was generated on **Thu Nov 07 12:00:51 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
2562+
This report was generated on **Thu Nov 07 15:18:51 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
25632563

25642564

25652565

25662566

2567-
# Dependencies of `io.spine.tools:spine-plugin-base:1.1.11`
2567+
# Dependencies of `io.spine.tools:spine-plugin-base:1.2.0`
25682568

25692569
## Runtime
25702570
1. **Group:** aopalliance **Name:** aopalliance **Version:** 1.0
@@ -3021,12 +3021,12 @@ This report was generated on **Thu Nov 07 12:00:51 EET 2019** using [Gradle-Lice
30213021
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
30223022

30233023

3024-
This report was generated on **Thu Nov 07 12:00:52 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
3024+
This report was generated on **Thu Nov 07 15:18:59 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
30253025

30263026

30273027

30283028

3029-
# Dependencies of `io.spine.tools:spine-plugin-testlib:1.1.11`
3029+
# Dependencies of `io.spine.tools:spine-plugin-testlib:1.2.0`
30303030

30313031
## Runtime
30323032
1. **Group:** aopalliance **Name:** aopalliance **Version:** 1.0
@@ -3542,12 +3542,12 @@ This report was generated on **Thu Nov 07 12:00:52 EET 2019** using [Gradle-Lice
35423542
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
35433543

35443544

3545-
This report was generated on **Thu Nov 07 12:00:52 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
3545+
This report was generated on **Thu Nov 07 15:19:09 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
35463546

35473547

35483548

35493549

3550-
# Dependencies of `io.spine.tools:spine-proto-dart-plugin:1.1.11`
3550+
# Dependencies of `io.spine.tools:spine-proto-dart-plugin:1.2.0`
35513551

35523552
## Runtime
35533553
1. **Group:** aopalliance **Name:** aopalliance **Version:** 1.0
@@ -4004,12 +4004,12 @@ This report was generated on **Thu Nov 07 12:00:52 EET 2019** using [Gradle-Lice
40044004
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
40054005

40064006

4007-
This report was generated on **Thu Nov 07 12:00:53 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
4007+
This report was generated on **Thu Nov 07 15:19:17 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
40084008

40094009

40104010

40114011

4012-
# Dependencies of `io.spine.tools:spine-proto-js-plugin:1.1.11`
4012+
# Dependencies of `io.spine.tools:spine-proto-js-plugin:1.2.0`
40134013

40144014
## Runtime
40154015
1. **Group:** aopalliance **Name:** aopalliance **Version:** 1.0
@@ -4466,12 +4466,12 @@ This report was generated on **Thu Nov 07 12:00:53 EET 2019** using [Gradle-Lice
44664466
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
44674467

44684468

4469-
This report was generated on **Thu Nov 07 12:00:54 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
4469+
This report was generated on **Thu Nov 07 15:19:25 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
44704470

44714471

44724472

44734473

4474-
# Dependencies of `io.spine.tools:spine-protoc-api:1.1.11`
4474+
# Dependencies of `io.spine.tools:spine-protoc-api:1.2.0`
44754475

44764476
## Runtime
44774477
1. **Group:** com.google.code.findbugs **Name:** jsr305 **Version:** 3.0.2
@@ -4786,12 +4786,12 @@ This report was generated on **Thu Nov 07 12:00:54 EET 2019** using [Gradle-Lice
47864786
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
47874787

47884788

4789-
This report was generated on **Thu Nov 07 12:00:55 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
4789+
This report was generated on **Thu Nov 07 15:19:31 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
47904790

47914791

47924792

47934793

4794-
# Dependencies of `io.spine.tools:spine-protoc-plugin:1.1.11`
4794+
# Dependencies of `io.spine.tools:spine-protoc-plugin:1.2.0`
47954795

47964796
## Runtime
47974797
1. **Group:** com.google.code.findbugs **Name:** jsr305 **Version:** 3.0.2
@@ -5114,12 +5114,12 @@ This report was generated on **Thu Nov 07 12:00:55 EET 2019** using [Gradle-Lice
51145114
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
51155115

51165116

5117-
This report was generated on **Thu Nov 07 12:00:56 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
5117+
This report was generated on **Thu Nov 07 15:19:37 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
51185118

51195119

51205120

51215121

5122-
# Dependencies of `io.spine:spine-testlib:1.1.11`
5122+
# Dependencies of `io.spine:spine-testlib:1.2.0`
51235123

51245124
## Runtime
51255125
1. **Group:** com.google.auto.value **Name:** auto-value-annotations **Version:** 1.6.3
@@ -5493,12 +5493,12 @@ This report was generated on **Thu Nov 07 12:00:56 EET 2019** using [Gradle-Lice
54935493
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
54945494

54955495

5496-
This report was generated on **Thu Nov 07 12:00:57 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
5496+
This report was generated on **Thu Nov 07 15:19:43 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
54975497

54985498

54995499

55005500

5501-
# Dependencies of `io.spine.tools:spine-tool-base:1.1.11`
5501+
# Dependencies of `io.spine.tools:spine-tool-base:1.2.0`
55025502

55035503
## Runtime
55045504
1. **Group:** com.google.code.findbugs **Name:** jsr305 **Version:** 3.0.2
@@ -5821,4 +5821,4 @@ This report was generated on **Thu Nov 07 12:00:57 EET 2019** using [Gradle-Lice
58215821
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
58225822

58235823

5824-
This report was generated on **Thu Nov 07 12:00:57 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).
5824+
This report was generated on **Thu Nov 07 15:19:49 EET 2019** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE).

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ all modules and does not describe the project structure per-subproject.
1212

1313
<groupId>io.spine</groupId>
1414
<artifactId>spine-base</artifactId>
15-
<version>1.1.11</version>
15+
<version>1.2.0</version>
1616

1717
<inceptionYear>2015</inceptionYear>
1818

@@ -154,7 +154,7 @@ all modules and does not describe the project structure per-subproject.
154154
<dependency>
155155
<groupId>io.spine.tools</groupId>
156156
<artifactId>spine-protoc-plugin</artifactId>
157-
<version>1.1.11</version>
157+
<version>1.2.0</version>
158158
<scope>test</scope>
159159
</dependency>
160160
<dependency>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright 2019, TeamDev. All rights reserved.
3+
*
4+
* Redistribution and use in source and/or binary forms, with or without
5+
* modification, must retain the above copyright notice and the following
6+
* disclaimer.
7+
*
8+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
9+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
10+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
11+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
12+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
13+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
14+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
15+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
16+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
17+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
18+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19+
*/
20+
21+
package io.spine.tools.protoc;
22+
23+
import io.spine.code.java.ClassName;
24+
25+
/**
26+
* A selector which signalizes that the configuration should be applied to all messages that
27+
* represent an entity state.
28+
*
29+
* @see GeneratedInterfaces#mark(EntityState, ClassName)
30+
*/
31+
final class EntityState extends MessageSelector {
32+
33+
EntityState() {
34+
super();
35+
}
36+
}

0 commit comments

Comments
 (0)