public final class ContextTreeConfig
extends java.lang.Object
TreeConfig config = new TreeConfig()
.hideScopes(CoreInstallersBundle.class)
.hideModules()
.hideDisables()
for usage
Constructor and Description |
---|
ContextTreeConfig() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ConfigItem> |
getHiddenItems() |
java.util.Set<java.lang.Class<?>> |
getHiddenScopes() |
ContextTreeConfig |
hideCommands()
Hide commands registrations (commands registered only by classpath scan).
|
ContextTreeConfig |
hideDisables()
Hide disable mentions.
|
ContextTreeConfig |
hideDuplicateRegistrations()
By default, duplicate registrations are shown with "IGNORED" marker.
|
ContextTreeConfig |
hideEmptyBundles()
By default, if bundle does not contain registrations (or all registrations were filtered by
config) bundle is still shown (as leaf, without subtree).
|
ContextTreeConfig |
hideExtensions()
Hide extensions registrations.
|
ContextTreeConfig |
hideInstallers()
Hide installers registrations.
|
ContextTreeConfig |
hideModules()
Hide guice modules registrations.
|
ContextTreeConfig |
hideNotUsedInstallers()
Hides installers, which was not used (no extensions installed by this installer).
|
ContextTreeConfig |
hideScopes(java.lang.Class<?>... avoid)
Hide some scopes from report.
|
boolean |
isHideDisables() |
boolean |
isHideDuplicateRegistrations() |
boolean |
isHideEmptyBundles() |
boolean |
isHideNotUsedInstallers() |
public java.util.Set<ConfigItem> getHiddenItems()
public java.util.Set<java.lang.Class<?>> getHiddenScopes()
public boolean isHideDisables()
public boolean isHideNotUsedInstallers()
public boolean isHideDuplicateRegistrations()
public boolean isHideEmptyBundles()
public ContextTreeConfig hideModules()
public ContextTreeConfig hideInstallers()
public ContextTreeConfig hideExtensions()
public ContextTreeConfig hideCommands()
public ContextTreeConfig hideScopes(java.lang.Class<?>... avoid)
Warning: this can remove entire subtrees (for example, by hiding bundle which installs other bundles)
For showing only one special scope use
ConfigScope.allExcept(
ru.vyarus.dropwizard.guice.module.context.ConfigScope)
.
avoid
- scopes to avoid printingfor more info about scopes
public ContextTreeConfig hideDisables()
public ContextTreeConfig hideNotUsedInstallers()
public ContextTreeConfig hideDuplicateRegistrations()
public ContextTreeConfig hideEmptyBundles()