Interface OwbHotswapContext
-
public interface OwbHotswapContextThe Interface OwbHotswapContext.- Author:
- alpapad@gmail.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void$$ha$addBeanToReloadOwb(javax.enterprise.context.spi.Contextual<Object> bean)Adds a bean to the set of beans to be reloaded.Set<javax.enterprise.context.spi.Contextual<Object>>$$ha$getBeansToReloadOwb()Gets the OWB beans to be reloaded.boolean$$ha$isActiveOwb()the original isActive() method (renamed)void$$ha$reloadOwb()reload the owb beans which have changedvoiddestroy(javax.enterprise.context.spi.Contextual<?> contextual)Destroy the existing contextual instance.<T> Tget(javax.enterprise.context.spi.Contextual<T> contextual)Return an existing instance of a certain contextual type or a null value.booleanisActive()Determines if the context object is active.
-
-
-
Method Detail
-
destroy
void destroy(javax.enterprise.context.spi.Contextual<?> contextual)
Destroy the existing contextual instance. If there is no existing instance, no action is taken.
- Parameters:
contextual- the contextual type- Throws:
javax.enterprise.context.ContextNotActiveException- if the context is not active
-
isActive
boolean isActive()
Determines if the context object is active. If the context is active, then $$ha$redefine() is called.- Returns:
- true if the context is active, or false otherwise.
-
get
<T> T get(javax.enterprise.context.spi.Contextual<T> contextual)
Return an existing instance of a certain contextual type or a null value.- Type Parameters:
T- the type of the contextual type- Parameters:
contextual- the contextual type- Returns:
- the contextual instance, or a null value
- Throws:
javax.enterprise.context.ContextNotActiveException- if the context is not active
-
$$ha$addBeanToReloadOwb
void $$ha$addBeanToReloadOwb(javax.enterprise.context.spi.Contextual<Object> bean)
Adds a bean to the set of beans to be reloaded.- Parameters:
bean-
-
$$ha$getBeansToReloadOwb
Set<javax.enterprise.context.spi.Contextual<Object>> $$ha$getBeansToReloadOwb()
Gets the OWB beans to be reloaded.- Returns:
- the OWB beans to be reloaded
-
$$ha$reloadOwb
void $$ha$reloadOwb()
reload the owb beans which have changed
-
$$ha$isActiveOwb
boolean $$ha$isActiveOwb()
the original isActive() method (renamed)- Returns:
-
-