Package org.jboss.weld.util
Class Observers
java.lang.Object
org.jboss.weld.util.Observers
- Author:
- pmuir
-
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisContainerLifecycleObserverMethod(jakarta.enterprise.inject.spi.ObserverMethod<?> method) static booleanisEventMetadataRequired(jakarta.enterprise.inject.spi.ObserverMethod<?> observer) Determines whether the given observer method is either extension-provided or contains an injection point withEventMetadatatype.static booleanisObserverMethodEnabled(jakarta.enterprise.inject.spi.ObserverMethod<?> method, BeanManagerImpl manager) static <T> voidnotify(jakarta.enterprise.inject.spi.ObserverMethod<? super T> observerMethod, T event, jakarta.enterprise.inject.spi.EventMetadata metadata) static voidvalidateObserverMethod(jakarta.enterprise.inject.spi.ObserverMethod<?> observerMethod, jakarta.enterprise.inject.spi.BeanManager beanManager, jakarta.enterprise.inject.spi.ObserverMethod<?> originalObserverMethod) Validates given external observer method.
-
Field Details
-
CONTAINER_LIFECYCLE_EVENT_CANONICAL_SUPERTYPES
-
CONTAINER_LIFECYCLE_EVENT_TYPES
-
-
Method Details
-
isContainerLifecycleObserverMethod
public static boolean isContainerLifecycleObserverMethod(jakarta.enterprise.inject.spi.ObserverMethod<?> method) -
isObserverMethodEnabled
public static boolean isObserverMethodEnabled(jakarta.enterprise.inject.spi.ObserverMethod<?> method, BeanManagerImpl manager) -
validateObserverMethod
public static void validateObserverMethod(jakarta.enterprise.inject.spi.ObserverMethod<?> observerMethod, jakarta.enterprise.inject.spi.BeanManager beanManager, jakarta.enterprise.inject.spi.ObserverMethod<?> originalObserverMethod) Validates given external observer method.- Parameters:
observerMethod- the given observer methodbeanManager-originalObserverMethod- observer method replaced by given observer method (this parameter is optional)
-
isEventMetadataRequired
public static boolean isEventMetadataRequired(jakarta.enterprise.inject.spi.ObserverMethod<?> observer) Determines whether the given observer method is either extension-provided or contains an injection point withEventMetadatatype. -
notify
public static <T> void notify(jakarta.enterprise.inject.spi.ObserverMethod<? super T> observerMethod, T event, jakarta.enterprise.inject.spi.EventMetadata metadata) - Parameters:
observerMethod-event-metadata- May be null
-