public final class ConfigurationHooksSupport
extends java.lang.Object
Supposed to be used for integration tests.
GuiceyHooksRule,
UseGuiceyHooks| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HOOKS_PROPERTY
Guiey hooks list system property.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
count() |
static java.util.Map<java.lang.String,java.lang.String> |
getSystemHookAliases()
Registered aliases may be used instead of full hook class name in property value.
|
static void |
loadSystemHooks()
Load hooks from "guicey.hooks" system property.
|
static void |
logRegisteredAliases()
Log registered hook aliases.
|
static void |
register(GuiceyConfigurationHook hook)
Register hook for current thread.
|
static void |
registerSystemHookAlias(java.lang.String alias,
java.lang.Class<?> hook)
Register alias hor hook, loaded from system property.
|
static void |
reset()
May be called to remove improperly registered hooks (registered after context start).
|
static java.util.Set<GuiceyConfigurationHook> |
run(GuiceBundle.Builder builder)
Called just after manual application configuration (in application class).
|
public static final java.lang.String HOOKS_PROPERTY
public static void register(GuiceyConfigurationHook hook)
hook - hook to registerpublic static void registerSystemHookAlias(java.lang.String alias,
java.lang.Class<?> hook)
alias - hook alias namehook - hook classpublic static java.util.Map<java.lang.String,java.lang.String> getSystemHookAliases()
public static void logRegisteredAliases()
public static void loadSystemHooks()
public static void reset()
public static java.util.Set<GuiceyConfigurationHook> run(GuiceBundle.Builder builder)
builder - just created builderpublic static int count()