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

com.joker17.bizactuator.resolver.BizResolver Maven / Gradle / Ivy

The newest version!
package com.joker17.bizactuator.resolver;

import com.joker17.bizactuator.context.BizContext;

/**
 * 业务解析器 (用于专门处理某个业务场景)
 *
 * @param 

biz parameter class * @param used BizContext class * @param return value class */ public interface BizResolver { /** * 检查参数 * * @param bizParameter * @param bizContext */ void check(P bizParameter, C bizContext); /** * 执行并返回结果 * * @param bizParameter * @param bizContext * @return */ R execute(P bizParameter, C bizContext); /** * 进行处理execute执行后的逻辑 * * @param bizParameter * @param bizContext * @param result */ void executeAfter(P bizParameter, C bizContext, R result); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy