public class Observers
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.Class<?>> |
CONTAINER_LIFECYCLE_EVENT_CANONICAL_SUPERTYPES |
static java.util.Set<java.lang.Class<?>> |
CONTAINER_LIFECYCLE_EVENT_TYPES |
Modifier and Type | Method and Description |
---|---|
static boolean |
isContainerLifecycleObserverMethod(ObserverMethod<?> method) |
static boolean |
isObserverMethodEnabled(ObserverMethod<?> method,
BeanManagerImpl manager) |
static void |
validateObserverMethod(ObserverMethod<?> observerMethod,
BeanManager beanManager,
ObserverMethod<?> originalObserverMethod)
Validates given external observer method.
|
public static final java.util.Set<java.lang.Class<?>> CONTAINER_LIFECYCLE_EVENT_CANONICAL_SUPERTYPES
public static final java.util.Set<java.lang.Class<?>> CONTAINER_LIFECYCLE_EVENT_TYPES
public static boolean isContainerLifecycleObserverMethod(ObserverMethod<?> method)
public static boolean isObserverMethodEnabled(ObserverMethod<?> method, BeanManagerImpl manager)
public static void validateObserverMethod(ObserverMethod<?> observerMethod, BeanManager beanManager, ObserverMethod<?> originalObserverMethod)
observerMethod
- the given observer methodbeanManager
- originalObserverMethod
- observer method replaced by given observer method (this parameter is optional)Copyright © 2014. All Rights Reserved.