|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.service.spring.aop.CoreServiceAdvice
@Component(value="coreServiceAdvice") public class CoreServiceAdvice
A CoreServiceAdvice is in conjunction with an AOP aspect for Core services.
So far it is used to translate all exceptions into a
ServiceRuntimeException
and tracing of methods time consumption.
Activation is done in XML instead of using Springs AOP annotations.
The advice can be referenced by name "coreServiceAdvice".
ServiceRuntimeException
Field Summary | |
---|---|
static String |
COMPONENT_NAME
Springs component name. |
Constructor Summary | |
---|---|
CoreServiceAdvice()
|
Method Summary | |
---|---|
void |
afterThrowing(Throwable ex)
Called after an exception is thrown by classes of the Core service layer. |
Object |
around(org.aspectj.lang.ProceedingJoinPoint pjp)
Called around any service method invocation to log time consumption of each method call. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COMPONENT_NAME
Constructor Detail |
---|
public CoreServiceAdvice()
Method Detail |
---|
public Object around(org.aspectj.lang.ProceedingJoinPoint pjp) throws Throwable
pjp
- the ProceedingJoinPoint object
Throwable
- any exception thrown by the method invocationpublic void afterThrowing(Throwable ex)
ServiceRuntimeException
it is
wrapped by a new ServiceRuntimeException
.
Turn tracing to level WARN to log the root cause.
ex
- The root exception that is thrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |