Class AnnotationExceptionMappingSource

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

@Deprecated public class AnnotationExceptionMappingSource 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 mapping rules for exceptions defined via annotations.

This class expects that an implementation package for the service interface exists (package name = package name of the RemoteBean interface + ".impl"), and that this package is annotated with ExceptionMapping.

  • Constructor Details

    • AnnotationExceptionMappingSource

      public AnnotationExceptionMappingSource()
      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