com.ybo.trackingplugin.extension.TraceConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of traceplugin Show documentation
Show all versions of traceplugin Show documentation
gradle plugin allowing to add automatic logs (or other process) at the start of each traced method
package com.ybo.trackingplugin.extension
import com.ybo.trackingplugin.tasks.utils.createReverseTraceAnnotationConfig
data class TraceConfig(
var name: String = "",
var tracerFactory: String = "",
var exclude: Array? = null,
var annotation: String? = null,
var srcPath: String? = null,
) {
/**
* an "reverse" annotation that will be written in the code as a beacon for where a
* trace annotation was present, to allow system to revert back to the annotated state (unprocessTrace)
*/
fun alreadyProcessedAnnotation(): String? {
return annotation?.let {
createReverseTraceAnnotationConfig(it)
}
}
}