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 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.protected StringgetMethodSignatureString(Method method) Deprecated.Returns the method signature as a string.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
-
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: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
-
getMethodSignatureString
Deprecated.Returns the method signature as a string.- Parameters:
method- the method- Returns:
- the method signature as a string.
-