Class OptionsConfig
java.lang.Object
ru.vyarus.dropwizard.guice.debug.report.option.OptionsConfig
Options reporting configuration. By default, only user defined options are printed without not used options
indication. Configuration could be performed in chained fashion:
OptionsConfig config = new OptionsConfig()
.showNotUsedMarker()
.showNotDefinedOptions()
- Since:
- 22.08.2016
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal OptionsConfighideGroups(Class<Enum>... groups) Hide option groups from reporting.hideOptions(Enum... options) Hide exact options from reporting.booleanCUSTOM marker is shown only when option enabled.booleanShow options not customized by user (in other words show used options defaults).Show NOT_USED marker for not (yet) used options.
-
Constructor Details
-
OptionsConfig
public OptionsConfig()
-
-
Method Details
-
isShowNotUsedMarker
public boolean isShowNotUsedMarker()- Returns:
- true to show not used options marker, false otherwise
-
isShowNotDefinedOptions
public boolean isShowNotDefinedOptions()CUSTOM marker is shown only when option enabled.- Returns:
- true to show options with default values (not overridden by user), false otherwise
-
getHiddenGroups
- Returns:
- set of option classed to hide or empty set
-
getHiddenOptions
- Returns:
- set of options to hide or empty set
-
showNotUsedMarker
Show NOT_USED marker for not (yet) used options.- Returns:
- config instance for chained calls
-
showNotDefinedOptions
Show options not customized by user (in other words show used options defaults). When enabled, CUSTOM marker is shown for user defined options.- Returns:
- config instance for chained calls
-
hideGroups
Hide option groups from reporting.- Parameters:
groups- option enum classes to hide- Returns:
- config instance for chained calls
-
hideOptions
Hide exact options from reporting.- Parameters:
options- options to hide- Returns:
- config instance for chained calls
-