Class RuleEvaluationLogger
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.aspect.AbstractLoggingAspect
-
- de.hybris.platform.droolsruleengineservices.aspect.RuleEvaluationLogger
-
public class RuleEvaluationLogger extends AbstractLoggingAspect
Logging Aspect for intercepting calls of public class methods in de.hybris.platform.droolsruleengineservices.rule.evaluation package.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.ruleengineservices.aspect.AbstractLoggingAspect
DEBUG, DEFAULT_LOG_LEVEL, INFO, TRACE, WARN
-
-
Constructor Summary
Constructors Constructor Description RuleEvaluationLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecideBefore(org.aspectj.lang.JoinPoint joinPoint)protected java.lang.StringgetDebugInfo(org.drools.core.spi.KnowledgeHelper context)Aggregates debug info from rule eval context into String.protected org.slf4j.LoggergetLogger()protected java.lang.StringgetLogInfoFromArgs(java.util.List<?> args)Returns String representation of argument set of intercepted method.protected java.lang.StringgetMetaDataFromRule(org.kie.api.definition.rule.Rule rule, java.lang.String key)returns the rule's meta-data for the given key (ornull).protected booleanisEligibleForJoinPoint(org.aspectj.lang.JoinPoint joinPoint)Checks if thejoinPointis eligible to process.-
Methods inherited from class de.hybris.platform.ruleengineservices.aspect.AbstractLoggingAspect
getLogLevel, getLongSignatureName, getSignatureName, isLoggingEligibleForJoinPoint, logAtDebugLevel, logAtInfoLevel, logAtTraceLevel, logAtWarnLevel, logJoinPoint, setLogLevel
-
-
-
-
Method Detail
-
decideBefore
public void decideBefore(org.aspectj.lang.JoinPoint joinPoint)
-
getLogInfoFromArgs
protected java.lang.String getLogInfoFromArgs(java.util.List<?> args)
Description copied from class:AbstractLoggingAspectReturns String representation of argument set of intercepted method.- Overrides:
getLogInfoFromArgsin classAbstractLoggingAspect
-
getLogger
protected org.slf4j.Logger getLogger()
- Overrides:
getLoggerin classAbstractLoggingAspect
-
isEligibleForJoinPoint
protected boolean isEligibleForJoinPoint(org.aspectj.lang.JoinPoint joinPoint)
Description copied from class:AbstractLoggingAspectChecks if thejoinPointis eligible to process.- Specified by:
isEligibleForJoinPointin classAbstractLoggingAspect
-
getDebugInfo
protected java.lang.String getDebugInfo(org.drools.core.spi.KnowledgeHelper context)
Aggregates debug info from rule eval context into String.
-
getMetaDataFromRule
protected java.lang.String getMetaDataFromRule(org.kie.api.definition.rule.Rule rule, java.lang.String key)returns the rule's meta-data for the given key (ornull). CallstoString()on the meta-data object.- Parameters:
rule- the rulekey- the key of the meta-data- Returns:
- the string representation of the meta-data (or null)
-
-