Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- add(Module...) - Method in class com.mastfrog.giulius.DependenciesBuilder
-
Add modules to be used when creating the Injector
- add(Settings) - Method in class com.mastfrog.giulius.DependenciesBuilder
-
Add a Settings tied to the default namespace.
- add(Settings, String) - Method in class com.mastfrog.giulius.DependenciesBuilder
-
Add a Settings tied to a specific namespace.
- add(AutoCloseable) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- add(AutoCloseable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add an AutoCloseable to be cancelled to the default batch; the AutoCloseable will be weakly referenced.
- add(Runnable) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- add(Runnable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add a Runnable to the default batch.
- add(Callable<?>) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- add(Callable<?>) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.
- add(ExecutorService) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- add(ExecutorService) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add an executor service to the default batch; the executor service will be strongly referenced; when hooks are run, all executors are first shut down, and then in a separate pass, awaited for termination en-banc up to the expiration of a timeout.
- add(Timer) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- add(Timer) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add a timer to be cancelled to the default batch; the timer will be weakly referenced.
- addDefaultLocation(File) - Method in class com.mastfrog.giulius.DependenciesBuilder
-
Add a folder on disk to look in for configuration files
- addDefaultSettings() - Method in class com.mastfrog.giulius.DependenciesBuilder
-
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).
- addFirst(AutoCloseable) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addFirst(AutoCloseable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add an AutoCloseable to be cancelled to the batch which runs first; the AutoCloseable will be weakly referenced.
- addFirst(Runnable) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addFirst(Runnable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add a Runnable to the batch which runs first.
- addFirst(Callable<?>) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addFirst(Callable<?>) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.
- addFirst(ExecutorService) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addFirst(ExecutorService) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add an executor service to the batch which runs first; the executor service will be strongly referenced; when hooks are run, all executors are first shut down, and then in a separate pass, awaited for termination en-banc up to the expiration of a timeout.
- addFirst(Timer) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addFirst(Timer) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add a timer to be cancelled to the batch which runs first; the timer will be weakly referenced.
- addFirstThrowing(ThrowingRunnable) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addFirstThrowing(ThrowingRunnable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.
- addFirstWeak(Runnable) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addFirstWeak(Runnable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add a Runnable to the batch which runs first, without keeping it strongly referenced.
- addFirstWeak(Callable<?>) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addFirstWeak(Callable<?>) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.
- addFirstWeakThrowing(ThrowingRunnable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.
- addLast(AutoCloseable) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addLast(AutoCloseable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add an AutoCloseable to be cancelled to the batch which runs last; the AutoCloseable will be weakly referenced.
- addLast(Runnable) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addLast(Runnable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add a Runnable to the batch which runs last.
- addLast(Callable<?>) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addLast(Callable<?>) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.
- addLast(ExecutorService) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addLast(ExecutorService) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add an executor service to the batch which runs last; the executor service will be strongly referenced; when hooks are run, all executors are first shut down, and then in a separate pass, awaited for termination en-banc up to the expiration of a timeout.
- addLast(Timer) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addLast(Timer) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add a timer to be cancelled to the batch which runs last; the timer will be weakly referenced.
- addLastThrowing(ThrowingRunnable) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addLastThrowing(ThrowingRunnable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.
- addLastWeak(Runnable) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addLastWeak(Runnable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add a Runnable to the batch which runs first, without keeping it strongly referenced.
- addLastWeak(Callable<?>) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addLastWeak(Callable<?>) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.
- addLastWeakThrowing(ThrowingRunnable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.
- addNamespace(String) - Method in class com.mastfrog.giulius.DependenciesBuilder
-
Add a namespace, causing all of the default locations to be used.
- addThrowing(ThrowingRunnable) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addThrowing(ThrowingRunnable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.
- addWeak(Runnable) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addWeak(Runnable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Add a Runnable to the default batch, without keeping it strongly referenced.
- addWeak(Callable<?>) - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- addWeak(Callable<?>) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.
- addWeakThrowing(ThrowingRunnable) - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.
- alsoShutdown(Dependencies) - Method in class com.mastfrog.giulius.Dependencies
- autoShutdownRefresh(SettingsBuilder) - Method in class com.mastfrog.giulius.Dependencies
B
- BIG_DECIMAL - Enum constant in enum com.mastfrog.giulius.SettingsBindings
- BIG_INTEGER - Enum constant in enum com.mastfrog.giulius.SettingsBindings
- BOOLEAN - Enum constant in enum com.mastfrog.giulius.SettingsBindings
- build() - Method in class com.mastfrog.giulius.DependenciesBuilder
-
Build a dependencies object.
- builder() - Static method in class com.mastfrog.giulius.Dependencies
- BYTE - Enum constant in enum com.mastfrog.giulius.SettingsBindings
C
- CHARACTER - Enum constant in enum com.mastfrog.giulius.SettingsBindings
- com.mastfrog.giulius - package com.mastfrog.giulius
- com.mastfrog.giulius.util - package com.mastfrog.giulius.util
- compare(Class<?>, Class<?>) - Method in class com.mastfrog.giulius.Ordered.OrderedTypeComparator
- compare(Object, Object) - Method in class com.mastfrog.giulius.Ordered.OrderedObjectComparator
- create(Module...) - Static method in class com.mastfrog.giulius.Dependencies
-
Create a Dependencies with the classpath contents used to look up properties files and named properties, and the default settings.
- createBindings() - Method in class com.mastfrog.giulius.Dependencies
-
Create a module which binds @Named properties appropriately.
- createBindings(Settings) - Static method in class com.mastfrog.giulius.Dependencies
-
For use with frameworks that insist on creating the injector
- current() - Static method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
D
- deinstall() - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- Dependencies - Class in com.mastfrog.giulius
-
A wrapper around Guice's injector which enforces a few things such as how configuration information is loaded, and binds @Named injections to values from system properties, environment variables, any default values specified using the @Defaults annotation, any com/mastfrom/defaults.properties files on the classpath,
- Dependencies(Module...) - Constructor for class com.mastfrog.giulius.Dependencies
- Dependencies(Settings, Module...) - Constructor for class com.mastfrog.giulius.Dependencies
-
Create a dependency using the passed Configuration, bypassing any loading from the classpath or elsewhere.
- DependenciesBuilder - Class in com.mastfrog.giulius
-
Builder for Dependencies.
- DependenciesBuilder() - Constructor for class com.mastfrog.giulius.DependenciesBuilder
- DeploymentMode - Enum in com.mastfrog.giulius
-
Determine if we are in development mode or production mode.
- DEVELOPMENT - Enum constant in enum com.mastfrog.giulius.DeploymentMode
- disableBindings(SettingsBindings...) - Method in class com.mastfrog.giulius.DependenciesBuilder
-
Disable binding of settings to some types if you know they will not be used, to save (minimal) memory.
- DOUBLE - Enum constant in enum com.mastfrog.giulius.SettingsBindings
- DURATION - Enum constant in enum com.mastfrog.giulius.SettingsBindings
E
- enableOnlyBindingsFor(SettingsBindings...) - Method in class com.mastfrog.giulius.DependenciesBuilder
-
Explicitly set the list of types that are bound to settings to save (minimal) memory.
- ExecutorServiceProvider - Class in com.mastfrog.giulius.util
-
Deprecated.The giulius-threadpool library offers all of this and more
F
- FLOAT - Enum constant in enum com.mastfrog.giulius.SettingsBindings
G
- generifiedType(Class<S>, Class<T>) - Static method in class com.mastfrog.giulius.util.TypeUtils
- generifiedType(Class<S>, Class<T>, Class<U>) - Static method in class com.mastfrog.giulius.util.TypeUtils
- generifiedType(Class<S>, Class<T>, Class<U>, Class<V>) - Static method in class com.mastfrog.giulius.util.TypeUtils
- get() - Method in class com.mastfrog.giulius.InjectionInfo
- get() - Static method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.Get a shutdown hook registry instance.
- get() - Method in class com.mastfrog.giulius.util.ExecutorServiceProvider
-
Deprecated.
- get(int) - Static method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.Get a shutdown hook registry instance.
- getInjector() - Method in class com.mastfrog.giulius.Dependencies
-
Get the injector, creating it if necessary.
- getInstance(Key<T>) - Method in class com.mastfrog.giulius.Dependencies
-
Get an instance of the passed key; throws an exception if nothing is bound.
- getInstance(Class<T>) - Method in class com.mastfrog.giulius.Dependencies
-
Get an instance of the passed type; throws an exception if nothing is bound.
- getSettings() - Method in class com.mastfrog.giulius.Dependencies
- getSettings(String) - Method in class com.mastfrog.giulius.Dependencies
- getSettings(String) - Method in class com.mastfrog.giulius.DependenciesBuilder
- getStage() - Method in class com.mastfrog.giulius.Dependencies
-
Get the Guice stage, as determined by isProductionMode()
I
- IDE_MODE_SYSTEM_PROPERTY - Static variable in class com.mastfrog.giulius.Dependencies
- injectionInfo() - Static method in class com.mastfrog.giulius.InjectionInfo
- InjectionInfo - Class in com.mastfrog.giulius
-
Provides info for error messages about what is being injected into.
- InjectionInfo() - Constructor for class com.mastfrog.giulius.InjectionInfo
- injectMembers(Object) - Method in class com.mastfrog.giulius.Dependencies
-
Same as getInjector().injectMembers(arg)
- install() - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- INT - Enum constant in enum com.mastfrog.giulius.SettingsBindings
- inUnitTest() - Method in enum com.mastfrog.giulius.DeploymentMode
-
Detect if running inside a test.
- isIDEMode() - Static method in class com.mastfrog.giulius.Dependencies
-
Used by the tests.guice framework to bypass execution of long running tests if this system property is set.
- isProduction() - Method in enum com.mastfrog.giulius.DeploymentMode
- isProductionMode() - Method in class com.mastfrog.giulius.Dependencies
-
whether the productionMode system property (-DproductionMode=true) or settings (productionMode=true) is set.
- isProductionMode(Settings) - Static method in class com.mastfrog.giulius.Dependencies
-
Whether the productionMode system property (-DproductionMode=true) or settings (productionMode=true) is set.
- isRunningShutdownHooks() - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- isRunningShutdownHooks() - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Returns true if shutdown hooks are currently being run.
L
- loadNamespaceListsFromClasspath() - Static method in class com.mastfrog.giulius.Dependencies
- LONG - Enum constant in enum com.mastfrog.giulius.SettingsBindings
M
- mergeNamespaces() - Method in class com.mastfrog.giulius.DependenciesBuilder
-
Even if multiple namespaces are present, merge settings from all namespaces (with the default namespace as the lowest) layer.
N
- namespaces() - Method in class com.mastfrog.giulius.DependenciesBuilder
-
Get the list of namespaces this DependenciesBuilder will bind settings for.
O
- Ordered - Annotation Type in com.mastfrog.giulius
-
Support for ordering things.
- Ordered.OrderedObjectComparator - Class in com.mastfrog.giulius
- Ordered.OrderedTypeComparator - Class in com.mastfrog.giulius
- OrderedObjectComparator() - Constructor for class com.mastfrog.giulius.Ordered.OrderedObjectComparator
- OrderedTypeComparator() - Constructor for class com.mastfrog.giulius.Ordered.OrderedTypeComparator
P
- PRODUCTION - Enum constant in enum com.mastfrog.giulius.DeploymentMode
- provider(int, Binder) - Static method in class com.mastfrog.giulius.util.ExecutorServiceProvider
-
Deprecated.Create a fixed thread pool using the passed number of threads and binder.
- provider(Binder) - Static method in class com.mastfrog.giulius.util.ExecutorServiceProvider
-
Deprecated.Create a "work stealing" thread pool using Executors.newWorkStealingPool() and bind it to be shutdown on dependencies shutdown.
- provider(Supplier<ExecutorService>, Binder) - Static method in class com.mastfrog.giulius.util.ExecutorServiceProvider
-
Deprecated.Create a provider, using the passed supplier to create the thread pool.
R
- runShutdownHooks() - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
S
- SETTINGS_KEY_SHUTDOWN_HOOK_EXECUTOR_WAIT - Static variable in class com.mastfrog.giulius.Dependencies
- SettingsBindings - Enum in com.mastfrog.giulius
- SHORT - Enum constant in enum com.mastfrog.giulius.SettingsBindings
- shutdown() - Method in class com.mastfrog.giulius.Dependencies
-
Triggers running shutdown hooks; for use with unit tests, servlet unloading, etc.
- shutdown() - Method in class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- shutdown() - Method in interface com.mastfrog.giulius.ShutdownHooks
-
Deprecated.Imperatively run shutdown tasks, clearing the set of tasks and deregistering the ShutdownHooks as a VM shutdown hook if it has been registered.
- ShutdownHookRegistry - Class in com.mastfrog.giulius
-
Deprecated.use com.mastfrog.shutdown.hooks.ShutdownHookRegistry directly - the code has been moved there, and this class simply delegates to it.
- ShutdownHookRegistry() - Constructor for class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- ShutdownHookRegistry(long) - Constructor for class com.mastfrog.giulius.ShutdownHookRegistry
-
Deprecated.
- ShutdownHooks - Interface in com.mastfrog.giulius
-
Deprecated.use com.mastfrog.shutdown.hooks.ShutdownHooks directly - the code has been moved there, and this class simply delegates to it.
- STRING - Enum constant in enum com.mastfrog.giulius.SettingsBindings
- SYSTEM_PROP_PRODUCTION_MODE - Static variable in class com.mastfrog.giulius.Dependencies
-
System property which determines Guice stage & result of isProductionMode().
T
- toString() - Method in class com.mastfrog.giulius.Dependencies
- toString() - Method in class com.mastfrog.giulius.DependenciesBuilder
- TypeUtils - Class in com.mastfrog.giulius.util
U
- useMutableSettings() - Method in class com.mastfrog.giulius.DependenciesBuilder
-
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).
V
- value() - Element in annotation type com.mastfrog.giulius.Ordered
- valueOf(String) - Static method in enum com.mastfrog.giulius.DeploymentMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.mastfrog.giulius.SettingsBindings
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.mastfrog.giulius.DeploymentMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.mastfrog.giulius.SettingsBindings
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- withMinimumShutdownHookExecutorAwaitDuration(Duration) - Method in class com.mastfrog.giulius.DependenciesBuilder
-
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.
- withShutdownHookExecutorAwaitDuration(Duration) - Method in class com.mastfrog.giulius.DependenciesBuilder
-
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.
All Classes and Interfaces|All Packages|Constant Field Values