public class EventContextImpl<T> extends Object implements EventContext<T>
Constructor and Description |
---|
EventContextImpl(ManagerImpl manager,
List<ObserverMethod> interceptors,
List<ObserverMethod> observers,
NonManagedObserver<T> nonManagedObserver,
T event,
RuntimeLogger runtimeLogger)
Create a new EventContext that will process all interceptors, observers and the non managed observer for a given
event.
|
public EventContextImpl(ManagerImpl manager, List<ObserverMethod> interceptors, List<ObserverMethod> observers, NonManagedObserver<T> nonManagedObserver, T event, RuntimeLogger runtimeLogger)
manager
- The manager instance to operate oninterceptors
- List of interceptor observers, @Observers of EventContextobservers
- List of Observers, @Observes TnonManagedObserver
- a NonManagedObserver of type Tevent
- The eventruntimeLogger
- to use to log events.IllegalArgumentException
- if Manager is nullIllegalArgumentException
- if Event is nullpublic T getEvent()
getEvent
in interface EventContext<T>
public void proceed()
proceed
in interface EventContext<T>
Copyright © 2018 JBoss by Red Hat. All rights reserved.