Package com.fayupable.logged.core.port
Class NoOpInvocationEventEmitter
java.lang.Object
com.fayupable.logged.core.port.NoOpInvocationEventEmitter
- All Implemented Interfaces:
InvocationEventEmitter
A no-op
InvocationEventEmitter that discards every event it
receives.
This implementation exists so that the core module remains fully
usable on its own, without requiring any adapter (for example
logged-spring) on the classpath. Adapter modules are expected to
register their own InvocationEventEmitter implementation and
override this default; this class is the fallback when none is provided.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidemit(MethodInvocationEvent event) Publishes the given invocation event to whatever sink this implementation targets.
-
Constructor Details
-
NoOpInvocationEventEmitter
public NoOpInvocationEventEmitter()
-
-
Method Details
-
emit
Description copied from interface:InvocationEventEmitterPublishes the given invocation event to whatever sink this implementation targets.Implementations must not throw checked or unchecked exceptions that would propagate back into the intercepted method call. Emission failures (for example a logging backend being unavailable) should be handled internally by the implementation.
- Specified by:
emitin interfaceInvocationEventEmitter- Parameters:
event- the invocation event to publish, nevernull
-