public class ServiceExceptionFassade extends Object implements org.aopalliance.intercept.MethodInterceptor, Validatable
PlisException wird auf einem konfigurierbaren Loglevel geloggt (siehe
setLogLevelPlisExceptions(String)). Sie wird auf eine PlisToException abgebildet, die pro
konkreter PlisException-Subklasse konfigurierbar ist (siehe
setExceptionMappingSource(ExceptionMappingSource)).PlisTechnicalRuntimeException wird auf Level ERROR geloggt und auf eine global
konfigurierbare PlisTechnicalToException abgebildet (siehe
setExceptionMappingSource(ExceptionMappingSource)).PlisTechnicalRuntimeException
gewrappt (setAppTechnicalRuntimeException(Class)) und dann auf Level ERROR geloggt. Durch das
Wrapping werden eine Ausnahme-ID und Unique-ID erzeugt, die dann sowohl im Server- als auch im Aufrufer-Log
erscheinen. Die gewrappte Exception wird dann auf die global konfigurierbare
PlisTechnicalToException abgebildet.
| Constructor and Description |
|---|
ServiceExceptionFassade() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getMethodSignatureString(Method method)
Erstellt den Signatur-String des gegebenen Aufrufs.
|
protected String |
getMethodSignatureString(org.aopalliance.intercept.MethodInvocation invocation)
Erstellt den Signatur-String des gegebenen Aufrufs.
|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
void |
setAppTechnicalRuntimeException(Class<? extends PlisTechnicalRuntimeException> appTechnicalRuntimeException) |
void |
setAusnahmeIdErmittler(AusnahmeIdErmittler ausnahmeIdErmittler) |
void |
setExceptionMappingSource(ExceptionMappingSource exceptionMappingSource) |
void |
setLogLevelPlisExceptions(String logLevelPlisExceptions) |
void |
setMethodMappingSource(MethodMappingSource methodMappingSource) |
void |
validateConfiguration(Class<?> remoteBeanInterface,
Object target)
Überprüft die Konsistenz der Konfiguration.
|
public void setMethodMappingSource(MethodMappingSource methodMappingSource)
public void setExceptionMappingSource(ExceptionMappingSource exceptionMappingSource)
public void setAusnahmeIdErmittler(AusnahmeIdErmittler ausnahmeIdErmittler)
public void setAppTechnicalRuntimeException(Class<? extends PlisTechnicalRuntimeException> appTechnicalRuntimeException)
public void setLogLevelPlisExceptions(String logLevelPlisExceptions)
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorThrowableprotected String getMethodSignatureString(org.aopalliance.intercept.MethodInvocation invocation)
invocation - der Methodenaufrufprotected String getMethodSignatureString(Method method)
method - die gerufene Methodepublic void validateConfiguration(Class<?> remoteBeanInterface, Object target)
validateConfiguration in interface ValidatableremoteBeanInterface - die gerufene Schnittstelletarget - die zu rufende Target-BeanCopyright © 2021. All rights reserved.