
io.tracee.contextlogger.data.wrapper.WatchdogDataWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tracee-context-logger-impl Show documentation
Show all versions of tracee-context-logger-impl Show documentation
Please refer to https://github.com/holisticon/tracee.
The newest version!
package io.tracee.contextlogger.data.wrapper;
import org.aspectj.lang.ProceedingJoinPoint;
/**
* Wrapper class for ProceedingJointPoint. Decouples TraceeContextLoggerJsonBuilder class from AspectJ dependencies.
*/
public final class WatchdogDataWrapper {
private final String annotatedId;
private final ProceedingJoinPoint proceedingJoinPoint;
private WatchdogDataWrapper(final String annotatedId, final ProceedingJoinPoint proceedingJoinPoint) {
this.annotatedId = annotatedId;
this.proceedingJoinPoint = proceedingJoinPoint;
}
/**
* Static method to create a WatchdogDataWrapper instance that wraps a ProceedingJoinPoint instance.
* @param annotatedId the annotated id or null
* @param proceedingJoinPoint the instance to wrap
* @return the wrapper instance
*/
public static WatchdogDataWrapper wrap(String annotatedId, final ProceedingJoinPoint proceedingJoinPoint) {
return new WatchdogDataWrapper(annotatedId, proceedingJoinPoint);
}
/**
* Getter for wrapped instance.
* @return the wrapped instance
*/
public ProceedingJoinPoint getProceedingJoinPoint() {
return proceedingJoinPoint;
}
/**
* Getter for the annotated id.
* @return the annotated id
*/
public String getAnnotatedId() {
return annotatedId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy