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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends de.bund.bva.pliscommon.exception.service.PlisTechnicalToException>getGenericTechnicalToException(Method remoteBeanMethod) Deprecated.Determines the generic, technical transport exception class to which all technical exceptions are mapped for which no specific mapping rule exists.Class<? extends de.bund.bva.pliscommon.exception.service.PlisToException>getToExceptionClass(Method remoteBeanMethod, Class<? extends BaseException> exceptionClass) Deprecated.Determines the transport exception class (To-Exception) for an exception class of the application core.
-
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:ExceptionMappingSourceDetermines the transport exception class (To-Exception) for an exception class of the application core.- Specified by:
getToExceptionClassin interfaceExceptionMappingSource- Parameters:
remoteBeanMethod- the RemoteBean method in which the exception was thrownexceptionClass- 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:ExceptionMappingSourceDetermines the generic, technical transport exception class to which all technical exceptions are mapped for which no specific mapping rule exists.- Specified by:
getGenericTechnicalToExceptionin interfaceExceptionMappingSource- Parameters:
remoteBeanMethod- the RemoteBean method in which the exception was thrown- Returns:
- the generic, technical transport exception class
-