Interface BaseChannelEvent
-
- All Superinterfaces:
RuntimeExceptionEvent
- All Known Subinterfaces:
BeforeChannelDeleteEvent
,ChannelEvent
,PageCopyEvent
,PageCreateEvent
,PageDeleteEvent
,PageEvent<T>
,PageMoveEvent
,PageUpdateEvent
public interface BaseChannelEvent extends RuntimeExceptionEvent
BaseChannelEvent
which will be put on the internalChannelEventBus
forsynchronous
events dispatching where listeners to this event can inject logic or short-circuit processing by setting aRuntimeException
throughRuntimeExceptionEvent#setException(java.lang.RuntimeException)
. When aRuntimeException
is set on thisBaseChannelEvent
by a listener, the org.hippoecm.hst.pagecomposer.jaxrs.services.AbstractConfigResource#publishSynchronousEvent will rethrow the exception. The reason that this has to be done via thisBaseChannelEvent
object is that the internal event bus always catches an exception thrown by a listener.Note that listeners for
ChannelEvent
s must never invokeHstRequestContext#getSession()#save()
. Changes in the JCRSession
will always be persisted by the code that posted theChannelEvent
to the guava event bus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Channel
getChannel()
Return the channel where this event occurs on.org.slf4j.Logger
getLogger()
-
Methods inherited from interface org.hippoecm.hst.pagecomposer.jaxrs.api.RuntimeExceptionEvent
getException, setException
-
-
-
-
Method Detail
-
getChannel
Channel getChannel()
Return the channel where this event occurs on.- Returns:
- the channel where this event occurs on
-
getLogger
org.slf4j.Logger getLogger()
-
-