/** * Generates interceptor definitions for the operation based on a set of resolved policies. * * @param source the operation * @param target the target operation * @return the interceptor definitions */ private Set<PhysicalInterceptor> generateInterceptors(LogicalOperation source, LogicalOperation target) { Set<PhysicalInterceptor> interceptors = new LinkedHashSet<>(); for (InterceptorGenerator interceptorGenerator : generatorRegistry.getInterceptorGenerators()) { Optional<PhysicalInterceptor> optional = interceptorGenerator.generate(source, target); optional.ifPresent(interceptors::add); } return interceptors; }
/** * Generates interceptor definitions for the operation based on a set of resolved policies. * * @param source the operation * @param target the target operation * @return the interceptor definitions */ private Set<PhysicalInterceptor> generateInterceptors(LogicalOperation source, LogicalOperation target) { Set<PhysicalInterceptor> interceptors = new LinkedHashSet<>(); for (InterceptorGenerator interceptorGenerator : generatorRegistry.getInterceptorGenerators()) { Optional<PhysicalInterceptor> optional = interceptorGenerator.generate(source, target); optional.ifPresent(interceptors::add); } return interceptors; }