com.icthh.xm.commons.lep.api.LepAdditionalContext Maven / Gradle / Ivy
package com.icthh.xm.commons.lep.api;
import com.icthh.xm.commons.lep.TargetProceedingLep;
import java.util.Optional;
/**
* Implement this interface if you want to add custom field to root of lepContext.
*
*
* IMPORTANT Note: Only for utils or commons! Implement LepServiceFactory in you what to extend lepContext.
* @param type of additional lepContext field
*/
public interface LepAdditionalContext {
String additionalContextKey();
T additionalContextValue();
default Optional additionalContextValue(BaseLepContext lepContext, LepEngine lepEngine, TargetProceedingLep lepMethod) {
return Optional.empty();
}
Class extends LepAdditionalContextField> fieldAccessorInterface();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy