You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gratipay.com/UnquietCode)[](https://blockchain.info/address/1Ec6mzLpJQvuzXqhxfJz1h9ZwJmoHMW9BX)**Bitcoin**
5
5
@@ -73,7 +73,7 @@ repository and dependency in your build script:
73
73
<dependency>
74
74
<groupId>unquietcode.tools.flapi</groupId>
75
75
<artifactId>flapi</artifactId>
76
-
<version>0.7.3</version>
76
+
<version>0.8</version>
77
77
<scope>test</scope>
78
78
</dependency>
79
79
```
@@ -89,18 +89,23 @@ repositories {
89
89
...
90
90
91
91
dependencies {
92
-
testCompile 'unquietcode.tools.flapi:flapi:0.7.3'
92
+
testCompile 'unquietcode.tools.flapi:flapi:0.8'
93
93
}
94
94
```
95
95
96
96
In a test define your `Descriptor` object and output the generated source code. (The
The latest version includes some new features for modifying the output
3
-
of the generated source code. As well, better type handling is availble
39
+
of the generated source code. As well, better type handling is available
4
40
for arrays and generics.
5
41
6
42
### Features and Improvements
@@ -57,6 +93,10 @@ You can now create descriptors from annotated helper classes and interfaces. See
57
93
### Bean Builders
58
94
Similar to annotations, you can provide a class with `setXYZ(..)` and `withXYZ(..)` methods, and these will be turned into a simple builder where each method can only be called at most one time, and where a bean will be returned at the end of the chain.
59
95
96
+
### BREAKING CHANGE - wrapper `Start` interface requires a type parameter
97
+
In order to enable proper nested blocks, all `Start` interfaces now require a
98
+
type parameter to be provided. In most cases, this value will simply be `Void`.
99
+
60
100
## Resolved Issues
61
101
Issues are now handled through GitHub, and historical issues have been migrated from JIRA.
62
102
@@ -73,10 +113,6 @@ Issues are now handled through GitHub, and historical issues have been migrated
73
113
+ [FLAPI-190 / #34]: Update docs and wiki with annotations info.
74
114
+ [FLAPI-189 / #17]: Move issues from JIRA to GitHub
75
115
76
-
### BREAKING CHANGE - wrapper `Start` interface requires a type parameter
77
-
In order to enable proper nested blocks, all `Start` interfaces now require a
78
-
type parameter to be provided. In most cases, this value will simply be `Void`.
79
-
80
116
The full list of tasks and issues included in the release is available on the project's
Flapi 0.2 contains several bugfixes, as well as a complete rearchitecture of the code generation
317
+
classes. More javadocs have been added, a few new features, and a few API changes. All of the examples
318
+
have been updated. As well, tests have been improved with a suite of in-memory compilation tests, as
319
+
well as the inclusion of example code as full-fledged tests.
279
320
280
-
Stable beta release. There are still some features to be added.
281
-
This version includes a few notable changes:
321
+
For clarity, the `once()` method when delaring methods and blocks has been replaced with `exactly(x)`.
322
+
`exactly(1)` is equivalent to using `between(1, 1)`.
323
+
324
+
The `@Generated` annotation is now added to classes when the JDK version is set to >= 6. You can set the target JDK version in Flapi by calling `Flapi.setJDKVersion(...)` and this setting will affect how the classes are generated.
325
+
326
+
The most important external change is that the 'support' classes and interfaces which comprise the
327
+
runtime dependencies of Flapi have been reduced. The required classes are written out with the
328
+
generated ones and can be dropped into your application.
329
+
330
+
A new feature, implicit terminals, allows a block to automatically exit when there are no more methods
331
+
left to call. See [this example](House-Builder-Example) for more information.
332
+
333
+
Key Features:
282
334
283
335
+ StateClass rearchitecture [FLAPI-83]
284
336
+ common interface for implementation classes [FLAPI-67]
@@ -301,10 +353,17 @@ The full list of tasks and issues included in the release is available on the pr
301
353
------------------------------------------------
302
354
303
355
# Version 0.1
304
-
Notes also available at: https://github.com/UnquietCode/Flapi/wiki/v0_1
0 commit comments