Class MethodLoggerAdapter
java.lang.Object
com.foreach.across.modules.logging.method.MethodLoggerAdapter
- All Implemented Interfaces:
MethodLogger
,org.springframework.core.Ordered
public abstract class MethodLoggerAdapter
extends Object
implements MethodLogger, org.springframework.core.Ordered
Base class to be implemented for a
MethodLogger
.
Usually extended into an Aspect
with the
Around
advice on proceedAndLogExecutionTime(ProceedingJoinPoint)
.
The name of a logger must be unique.- Author:
- Arne Vandamme
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
final int
final String
getName()
int
getOrder()
int
hashCode()
final boolean
protected Object
proceedAndLogExecutionTime
(org.aspectj.lang.ProceedingJoinPoint point) protected String
retrieveTypeName
(org.aspectj.lang.ProceedingJoinPoint point) final void
setEnabled
(boolean enabled) final void
setMinimumDuration
(int minimumDuration) void
setOrder
(int order)
-
Constructor Details
-
MethodLoggerAdapter
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) -
getName
- Specified by:
getName
in interfaceMethodLogger
-
isEnabled
public final boolean isEnabled()- Specified by:
isEnabled
in interfaceMethodLogger
-
setEnabled
public final void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfaceMethodLogger
-
getMinimumDuration
public final int getMinimumDuration()- Specified by:
getMinimumDuration
in interfaceMethodLogger
-
setMinimumDuration
public final void setMinimumDuration(int minimumDuration) - Specified by:
setMinimumDuration
in interfaceMethodLogger
-
proceedAndLogExecutionTime
protected Object proceedAndLogExecutionTime(org.aspectj.lang.ProceedingJoinPoint point) throws Throwable - Throws:
Throwable
-
retrieveTypeName
-
equals
-
hashCode
public int hashCode()
-