-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[java-vertx] Missing interface handlebars
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
src/main/resources/handlebars/JavaVertXServer/interface.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{{#jackson}} | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
{{/jackson}} | ||
/** | ||
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}} | ||
*/ | ||
{{#jackson}} | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.PROPERTY, | ||
property = "type") | ||
@JsonSubTypes({ | ||
{{#subTypes}} | ||
@JsonSubTypes.Type(value = {{classname}}.class, name = "{{classname}}"){{^@last}},{{/@last}} | ||
{{/subTypes}} | ||
}) | ||
{{/jackson}} | ||
public interface {{{classname}}} { | ||
{{#vendorExtensions}} | ||
{{#x-discriminator-type-getter}} | ||
{{x-discriminator-type}} {{x-discriminator-type-getter}}(); | ||
{{/x-discriminator-type-getter}} | ||
{{/vendorExtensions}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters