@@ -222,40 +222,40 @@ public static <T> Consumer<FuncEmitTaskBuilder> event(
222222 *
223223 * @param type CloudEvent type
224224 * @param function function that maps workflow input to {@link CloudEventData}
225- * @param clazz expected input class for conversion
225+ * @param inputClass expected input class for conversion
226226 * @param <T> input type
227227 * @return a consumer to configure {@link FuncEmitTaskBuilder}
228228 */
229229 public static <T > Consumer <FuncEmitTaskBuilder > event (
230- String type , Function <T , CloudEventData > function , Class <T > clazz ) {
231- return OPS .event (type , function , clazz );
230+ String type , Function <T , CloudEventData > function , Class <T > inputClass ) {
231+ return OPS .event (type , function , inputClass );
232232 }
233233
234234 /**
235235 * Emit a JSON CloudEvent for a POJO input type. Sets {@code contentType=application/json} and
236236 * serializes the input to bytes using the configured JSON mapper.
237237 *
238238 * @param type CloudEvent type
239- * @param clazz input POJO class (used for typing and conversion)
239+ * @param inputClass input POJO class (used for typing and conversion)
240240 * @param <T> input type
241241 * @return a consumer to configure {@link FuncEmitTaskBuilder}
242242 */
243- public static <T > Consumer <FuncEmitTaskBuilder > eventJson (String type , Class <T > clazz ) {
244- return b -> new FuncEmitSpec ().type (type ).jsonData (clazz ).accept (b );
243+ public static <T > Consumer <FuncEmitTaskBuilder > eventJson (String type , Class <T > inputClass ) {
244+ return b -> new FuncEmitSpec ().type (type ).jsonData (inputClass ).accept (b );
245245 }
246246
247247 /**
248248 * Emit a CloudEvent with arbitrary bytes payload generated by a custom serializer.
249249 *
250250 * @param type CloudEvent type
251251 * @param serializer function producing bytes from the input
252- * @param clazz expected input class for conversion
252+ * @param inputClass expected input class for conversion
253253 * @param <T> input type
254254 * @return a consumer to configure {@link FuncEmitTaskBuilder}
255255 */
256256 public static <T > Consumer <FuncEmitTaskBuilder > eventBytes (
257- String type , Function <T , byte []> serializer , Class <T > clazz ) {
258- return b -> new FuncEmitSpec ().type (type ).bytesData (serializer , clazz ).accept (b );
257+ String type , Function <T , byte []> serializer , Class <T > inputClass ) {
258+ return b -> new FuncEmitSpec ().type (type ).bytesData (serializer , inputClass ).accept (b );
259259 }
260260
261261 /**
@@ -284,13 +284,13 @@ public static FuncPredicateEventConfigurer event(String type) {
284284 * type.
285285 *
286286 * @param fn the function to execute at runtime
287- * @param clazz expected input class for model conversion
287+ * @param inputClass expected input class for model conversion
288288 * @param <T> input type
289289 * @param <R> result type
290290 * @return a call step which supports chaining (e.g., {@code .exportAs(...).when(...)})
291291 */
292- public static <T , R > FuncCallStep <T , R > function (Function <T , R > fn , Class <T > clazz ) {
293- return new FuncCallStep <>(fn , clazz );
292+ public static <T , R > FuncCallStep <T , R > function (Function <T , R > fn , Class <T > inputClass ) {
293+ return new FuncCallStep <>(fn , inputClass );
294294 }
295295
296296 /**
@@ -440,26 +440,26 @@ public static <T, R> FuncCallStep<T, R> withUniqueId(UniqueIdBiFunction<T, R> fn
440440 * Create a fire-and-forget side-effect step (unnamed). The consumer receives the typed input.
441441 *
442442 * @param consumer side-effect function
443- * @param clazz expected input class for conversion
443+ * @param inputClass expected input class for conversion
444444 * @param <T> input type
445445 * @return a {@link ConsumeStep} which can be chained and added via {@link
446446 * #tasks(FuncTaskConfigurer...)}
447447 */
448- public static <T > ConsumeStep <T > consume (Consumer <T > consumer , Class <T > clazz ) {
449- return new ConsumeStep <>(consumer , clazz );
448+ public static <T > ConsumeStep <T > consume (Consumer <T > consumer , Class <T > inputClass ) {
449+ return new ConsumeStep <>(consumer , inputClass );
450450 }
451451
452452 /**
453453 * Named variant of {@link #consume(Consumer, Class)}.
454454 *
455455 * @param name task name
456456 * @param consumer side-effect function
457- * @param clazz expected input class
457+ * @param inputClass expected input class
458458 * @param <T> input type
459459 * @return a named {@link ConsumeStep}
460460 */
461- public static <T > ConsumeStep <T > consume (String name , Consumer <T > consumer , Class <T > clazz ) {
462- return new ConsumeStep <>(name , consumer , clazz );
461+ public static <T > ConsumeStep <T > consume (String name , Consumer <T > consumer , Class <T > inputClass ) {
462+ return new ConsumeStep <>(name , consumer , inputClass );
463463 }
464464
465465 /**
@@ -506,8 +506,8 @@ public static <T, R> FuncCallStep<T, R> agent(
506506 * @return a call step
507507 */
508508 public static <T , R > FuncCallStep <T , R > function (Function <T , R > fn ) {
509- Class <T > clazz = ReflectionUtils .inferInputType (fn );
510- return new FuncCallStep <>(fn , clazz );
509+ Class <T > inputClass = ReflectionUtils .inferInputType (fn );
510+ return new FuncCallStep <>(fn , inputClass );
511511 }
512512
513513 /**
@@ -520,22 +520,22 @@ public static <T, R> FuncCallStep<T, R> function(Function<T, R> fn) {
520520 * @return a named call step
521521 */
522522 public static <T , R > FuncCallStep <T , R > function (String name , Function <T , R > fn ) {
523- Class <T > clazz = ReflectionUtils .inferInputType (fn );
524- return new FuncCallStep <>(name , fn , clazz );
523+ Class <T > inputClass = ReflectionUtils .inferInputType (fn );
524+ return new FuncCallStep <>(name , fn , inputClass );
525525 }
526526
527527 /**
528528 * Named variant of {@link #function(Function, Class)} with explicit input type.
529529 *
530530 * @param name task name
531531 * @param fn the function to execute
532- * @param clazz expected input class
532+ * @param inputClass expected input class
533533 * @param <T> input type
534534 * @param <R> output type
535535 * @return a named call step
536536 */
537- public static <T , R > FuncCallStep <T , R > function (String name , Function <T , R > fn , Class <T > clazz ) {
538- return new FuncCallStep <>(name , fn , clazz );
537+ public static <T , R > FuncCallStep <T , R > function (String name , Function <T , R > fn , Class <T > inputClass ) {
538+ return new FuncCallStep <>(name , fn , inputClass );
539539 }
540540
541541 // ------------------ tasks ---------------- //
@@ -606,51 +606,51 @@ public static <T> EmitStep emit(String name, String type, Function<T, CloudEvent
606606 * @param name task name
607607 * @param type CloudEvent type
608608 * @param serializer function producing bytes
609- * @param clazz expected input class
609+ * @param inputClass expected input class
610610 * @param <T> input type
611611 * @return a named {@link EmitStep}
612612 */
613613 public static <T > EmitStep emit (
614- String name , String type , Function <T , byte []> serializer , Class <T > clazz ) {
615- return new EmitStep (name , eventBytes (type , serializer , clazz ));
614+ String name , String type , Function <T , byte []> serializer , Class <T > inputClass ) {
615+ return new EmitStep (name , eventBytes (type , serializer , inputClass ));
616616 }
617617
618618 /**
619619 * Unnamed variant of {@link #emit(String, String, Function, Class)}.
620620 *
621621 * @param type CloudEvent type
622622 * @param serializer function producing bytes
623- * @param clazz expected input class
623+ * @param inputClass expected input class
624624 * @param <T> input type
625625 * @return an {@link EmitStep}
626626 */
627- public static <T > EmitStep emit (String type , Function <T , byte []> serializer , Class <T > clazz ) {
628- return new EmitStep (null , eventBytes (type , serializer , clazz ));
627+ public static <T > EmitStep emit (String type , Function <T , byte []> serializer , Class <T > inputClass ) {
628+ return new EmitStep (null , eventBytes (type , serializer , inputClass ));
629629 }
630630
631631 /**
632632 * Emit a JSON CloudEvent from a POJO input class (unnamed).
633633 *
634634 * @param type CloudEvent type
635- * @param clazz input POJO class
635+ * @param inputClass input POJO class
636636 * @param <T> input type
637637 * @return an {@link EmitStep}
638638 */
639- public static <T > EmitStep emitJson (String type , Class <T > clazz ) {
640- return new EmitStep (null , eventJson (type , clazz ));
639+ public static <T > EmitStep emitJson (String type , Class <T > inputClass ) {
640+ return new EmitStep (null , eventJson (type , inputClass ));
641641 }
642642
643643 /**
644644 * Emit a JSON CloudEvent from a POJO input class (named).
645645 *
646646 * @param name task name
647647 * @param type CloudEvent type
648- * @param clazz input POJO class
648+ * @param inputClass input POJO class
649649 * @param <T> input type
650650 * @return a named {@link EmitStep}
651651 */
652- public static <T > EmitStep emitJson (String name , String type , Class <T > clazz ) {
653- return new EmitStep (name , eventJson (type , clazz ));
652+ public static <T > EmitStep emitJson (String name , String type , Class <T > inputClass ) {
653+ return new EmitStep (name , eventJson (type , inputClass ));
654654 }
655655
656656 /**
0 commit comments