All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.icthh.xm.commons.lep.api.LepAdditionalContext Maven / Gradle / Ivy

There is a newer version: 4.0.21
Show newest version
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 fieldAccessorInterface();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy