Class StelltLoggingKontextBereitInterceptor

java.lang.Object
de.bund.bva.isyfact.serviceapi.core.aop.StelltLoggingKontextBereitInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

@Deprecated public class StelltLoggingKontextBereitInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor
Deprecated.
This module is deprecated and will be removed in a future release. It is recommended to use REST according to IsyFacts REST Concept instead.
This aspect ensures that the logging context is automatically set in service methods.
  • Constructor Details

    • StelltLoggingKontextBereitInterceptor

      public StelltLoggingKontextBereitInterceptor(AufrufKontextToResolver aufrufKontextToResolver)
      Deprecated.
  • Method Details

    • invoke

      public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
      Deprecated.
      This aspect ensures that a correlation ID is generated if none is set in the AufrufKontext and it is specified in the annotation that no AufrufKontext is passed as a parameter. The correlation ID is set in the logging context before the actual call and is automatically removed afterwards.
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
      Parameters:
      invocation - the method call
      Returns:
      result of the called method
      Throws:
      Throwable - if an exception occurred in the called method
    • determineKorrelationsIdDefaultHandling

      public String determineKorrelationsIdDefaultHandling(org.aopalliance.intercept.MethodInvocation invocation)
      Deprecated.
      Default handling if no Annotation is present. Try to read from Correlation ID from AufrufKontextTo, if none is available create new one.