
io.tracee.contextlogger.utility.PassedContextDataElementWrapper 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.utility;
import io.tracee.contextlogger.api.TraceeContextLogProvider;
import io.tracee.contextlogger.data.subdata.NameObjectValuePair;
/**
* Wrapper class used to sort passed instances.
* Created by Tobias Gindler, holisticon AG on 22.03.14.
*/
public final class PassedContextDataElementWrapper {
private final Integer order;
private final NameObjectValuePair nameObjectValuePair;
public PassedContextDataElementWrapper(NameObjectValuePair nameObjectValuePair) {
this.nameObjectValuePair = nameObjectValuePair;
TraceeContextLogProvider annotation = TraceeContextLogAnnotationUtilities.getAnnotationFromType(nameObjectValuePair.getValue());
if (annotation != null) {
order = annotation.order();
} else {
order = null;
}
}
public NameObjectValuePair getNameObjectValuePair() {
return nameObjectValuePair;
}
public Integer getOrder() {
return order;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy