use of com.huawei.register.entity.FixedResult in project Sermant by huaweicloud.
the class RegistrationInterceptor method doBefore.
@Override
public ExecuteContext doBefore(ExecuteContext context) {
if (!(context.getArguments()[0] instanceof Registration)) {
return context;
}
fillClientInfo((Registration) context.getArguments()[0]);
final RegisterCenterService service = ServiceManager.getService(RegisterCenterService.class);
final FixedResult fixedResult = new FixedResult();
service.register(fixedResult);
if (fixedResult.isSkip()) {
context.skip(fixedResult.getResult());
}
return context;
}
Aggregations