Class ContextualReloadHelper
- java.lang.Object
-
- org.hotswap.agent.plugin.weld.beans.ContextualReloadHelper
-
public class ContextualReloadHelper extends java.lang.ObjectThe Class ContextualReloadHelper.- Author:
- alpapad@gmail.com
-
-
Constructor Summary
Constructors Constructor Description ContextualReloadHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanaddToReloadSet(javax.enterprise.context.spi.Context ctx, javax.enterprise.context.spi.Contextual<java.lang.Object> managedBean)Tries to add the bean in the context so it is reloaded in the next activation of the context.static voiddestroy(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 voidreinitialize(javax.enterprise.context.spi.Context ctx, javax.enterprise.context.spi.Contextual<java.lang.Object> contextual)Will re-inject any managed beans in the target.static voidreload(WeldHotswapContext ctx)
-
-
-
Method Detail
-
reload
public static void reload(WeldHotswapContext ctx)
-
addToReloadSet
public static boolean addToReloadSet(javax.enterprise.context.spi.Context ctx, javax.enterprise.context.spi.Contextual<java.lang.Object> managedBean)Tries to add the bean in the context so it is reloaded in the next activation of the context.- Parameters:
ctx-managedBean-- Returns:
-
destroy
public 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)- Parameters:
ctx-managedBean-
-
reinitialize
public static void reinitialize(javax.enterprise.context.spi.Context ctx, javax.enterprise.context.spi.Contextual<java.lang.Object> contextual)Will re-inject any managed beans in the target. Will not call any other life-cycle methods- Parameters:
ctx-managedBean-
-
-