public class ContextualReloadHelper extends Object
| Constructor and Description |
|---|
ContextualReloadHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addToReloadSet(javax.enterprise.context.spi.Context ctx,
javax.enterprise.context.spi.Contextual<Object> managedBean)
Tries to add the bean in the context so it is reloaded in the next activation of the context.
|
static void |
destroy(WeldHotswapContext ctx,
javax.enterprise.context.spi.Contextual<?> managedBean)
Will remove bean from context forcing a clean new instance to be created (eg calling post-construct)
|
static void |
reinitialize(javax.enterprise.context.spi.Context ctx,
javax.enterprise.context.spi.Contextual<Object> contextual)
Will re-inject any managed beans in the target.
|
static void |
reload(WeldHotswapContext ctx) |
public static void reload(WeldHotswapContext ctx)
public static boolean addToReloadSet(javax.enterprise.context.spi.Context ctx,
javax.enterprise.context.spi.Contextual<Object> managedBean)
ctx - managedBean - public static void destroy(WeldHotswapContext ctx, javax.enterprise.context.spi.Contextual<?> managedBean)
ctx - managedBean - public static void reinitialize(javax.enterprise.context.spi.Context ctx,
javax.enterprise.context.spi.Contextual<Object> contextual)
ctx - managedBean - Copyright © 2018. All rights reserved.