Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Commit

Permalink
Use Spring Boot Configuration Metadata for auto-completion of app pro…
Browse files Browse the repository at this point in the history
…perties in IDE jmix-framework/jmix#224

JmixBuildPlugin adds annotationProcessor for Jmix modules;
Javadoc in existing ConfigurationProperties classes moved from getters to fields in order to be better displayed in IDE hints while application.properties file is being edited;
  • Loading branch information
gorbunkov committed Sep 30, 2021
1 parent 1791293 commit 872203e
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@
@ConstructorBinding
public class LimitationProperties {

/**
* Max allowed depth for query. Default value 0 means the client has no limit.
*/
int maxQueryDepth;

/**
* Number of rate-limit per minute from one client IP address. Default value 0 means the client has no limit.
*/
int operationRateLimitPerMinute;

public LimitationProperties(@DefaultValue("0") int operationRateLimitPerMinute, @DefaultValue("0") int maxQueryDepth) {
Expand All @@ -34,16 +40,14 @@ public LimitationProperties(@DefaultValue("0") int operationRateLimitPerMinute,
}

/**
* @return number of rate-limit per minute from one client IP address
* Default value 0 means the client has no limit
* @see #operationRateLimitPerMinute
*/
public int getOperationRateLimitPerMinute() {
return operationRateLimitPerMinute;
}

/**
* @return max allowed depth for query
* Default value 0 means the client has no limit
* @see #maxQueryDepth
*/
public int getMaxQueryDepth() {
return maxQueryDepth;
Expand Down

0 comments on commit 872203e

Please sign in to comment.