Class ReflectiveExceptionMappingSource

java.lang.Object
de.bund.bva.isyfact.serviceapi.core.serviceimpl.ReflectiveExceptionMappingSource
All Implemented Interfaces:
ExceptionMappingSource

@Deprecated public class ReflectiveExceptionMappingSource extends Object implements ExceptionMappingSource
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.
Determines the mapping of exceptions by reflection.

This class expects that for each AWK exception exactly one associated TO exception is declared in the RemoteBean operation, differing only in the name suffix "ToException" (vs. "Exception"). Furthermore, it expects that in the RemoteBean operation exactly one TechnicalToException is declared in the RemoteBean operation, which acts as a generic technical exception.

  • Constructor Details

    • ReflectiveExceptionMappingSource

      public ReflectiveExceptionMappingSource()
      Deprecated.
  • Method Details

    • getToExceptionClass

      public Class<? extends de.bund.bva.pliscommon.exception.service.PlisToException> getToExceptionClass(Method remoteBeanMethod, Class<? extends BaseException> exceptionClass)
      Deprecated.
      Description copied from interface: ExceptionMappingSource
      Determines the transport exception class (To-Exception) for an exception class of the application core.
      Specified by:
      getToExceptionClass in interface ExceptionMappingSource
      Parameters:
      remoteBeanMethod - the RemoteBean method in which the exception was thrown
      exceptionClass - the class of the exception thrown in the application core.
      Returns:
      the transport exception class
    • getGenericTechnicalToException

      public Class<? extends de.bund.bva.pliscommon.exception.service.PlisTechnicalToException> getGenericTechnicalToException(Method remoteBeanMethod)
      Deprecated.
      Description copied from interface: ExceptionMappingSource
      Determines the generic, technical transport exception class to which all technical exceptions are mapped for which no specific mapping rule exists.
      Specified by:
      getGenericTechnicalToException in interface ExceptionMappingSource
      Parameters:
      remoteBeanMethod - the RemoteBean method in which the exception was thrown
      Returns:
      the generic, technical transport exception class
    • getMethodSignatureString

      protected String getMethodSignatureString(Method method)
      Deprecated.
      Returns the method signature as a string.
      Parameters:
      method - the method
      Returns:
      the method signature as a string.