Uses of Class
com.mastfrog.giulius.DependenciesBuilder
Packages that use DependenciesBuilder
-
Uses of DependenciesBuilder in com.mastfrog.giulius
Methods in com.mastfrog.giulius that return DependenciesBuilderModifier and TypeMethodDescriptionDependenciesBuilder.add(com.google.inject.Module... modules) Add modules to be used when creating the InjectorAdd a Settings tied to the default namespace.Add a Settings tied to a specific namespace.DependenciesBuilder.addDefaultLocation(File loc) Add a folder on disk to look in for configuration filesDependenciesBuilder.addDefaultSettings()Add the default settings (see SettingsBuilder.createDefault()), and default settings for any namespaces found in /com/mastfrog/namespaces.list files anywhere on the classpath (these are generated from the @Defaults annotation).DependenciesBuilder.addNamespace(String name) Add a namespace, causing all of the default locations to be used.static DependenciesBuilderDependencies.builder()DependenciesBuilder.disableBindings(SettingsBindings... bindings) Disable binding of settings to some types if you know they will not be used, to save (minimal) memory.DependenciesBuilder.enableOnlyBindingsFor(SettingsBindings... bindings) Explicitly set the list of types that are bound to settings to save (minimal) memory.DependenciesBuilder.mergeNamespaces()Even if multiple namespaces are present, merge settings from all namespaces (with the default namespace as the lowest) layer.DependenciesBuilder.useMutableSettings()If called, bind a MutableSettings (has setters) rather than the default (mutable settings are bound, but are created on the fly and any changes are not shared with other code).DependenciesBuilder.withMinimumShutdownHookExecutorAwaitDuration(Duration dur) Set the minimum length of time that shutdown hooks (which are automatically bound and can be used to perform resource cleanup and orderly, graceful shutdown behavior, or restart-without-jvm-exit) should wait for all ExecutorServices where were added to the shutdown hooks to terminate before proceeding further with shutdown.DependenciesBuilder.withShutdownHookExecutorAwaitDuration(Duration dur) Set the length of time that shutdown hooks (which are automatically bound and can be used to perform resource cleanup and orderly, graceful shutdown behavior, or restart-without-jvm-exit) should wait for all ExecutorServices where were added to the shutdown hooks to terminate before proceeding further with shutdown.