Interface ArtifactSinkFactory

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      <T extends Any> Tool sinkArtifacts(Tool tool, Class<T> clazz, ArtifactSink sink) Wrap a tool to sink artifacts of the specified type to the given sink.
      <T extends Any> Tool sinkArtifacts(Tool tool, Class<T> clazz, ArtifactSink sink, Function1<T, Boolean> filter, Function1<T, Object> transform) Wrap a tool to sink artifacts of the specified type to the given sink, with optional filtering and transformation.
      Tool publishToBlackboard(Tool tool) Wrap a tool to publish all artifacts to the blackboard.
      <T extends Any> Tool publishToBlackboard(Tool tool, Class<T> clazz) Wrap a tool to publish artifacts of the specified type to the blackboard.
      <T extends Any> Tool publishToBlackboard(Tool tool, Class<T> clazz, Function1<T, Boolean> filter, Function1<T, Object> transform) Wrap a tool to publish artifacts of the specified type to the blackboard, with optional filtering and transformation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • sinkArtifacts

         <T extends Any> Tool sinkArtifacts(Tool tool, Class<T> clazz, ArtifactSink sink)

        Wrap a tool to sink artifacts of the specified type to the given sink. Handles both single artifacts and Iterables.

        Parameters:
        tool - The tool to wrap
        clazz - The class of artifacts to capture
        sink - Where to send captured artifacts
      • sinkArtifacts

         <T extends Any> Tool sinkArtifacts(Tool tool, Class<T> clazz, ArtifactSink sink, Function1<T, Boolean> filter, Function1<T, Object> transform)

        Wrap a tool to sink artifacts of the specified type to the given sink, with optional filtering and transformation.

        Parameters:
        tool - The tool to wrap
        clazz - The class of artifacts to capture
        sink - Where to send captured artifacts
        filter - Predicate to filter which artifacts to capture
        transform - Function to transform artifacts before sinking
      • publishToBlackboard

         Tool publishToBlackboard(Tool tool)

        Wrap a tool to publish all artifacts to the blackboard.

        Parameters:
        tool - The tool to wrap
      • publishToBlackboard

         <T extends Any> Tool publishToBlackboard(Tool tool, Class<T> clazz)

        Wrap a tool to publish artifacts of the specified type to the blackboard.

        Parameters:
        tool - The tool to wrap
        clazz - The class of artifacts to publish
      • publishToBlackboard

         <T extends Any> Tool publishToBlackboard(Tool tool, Class<T> clazz, Function1<T, Boolean> filter, Function1<T, Object> transform)

        Wrap a tool to publish artifacts of the specified type to the blackboard, with optional filtering and transformation.

        Parameters:
        tool - The tool to wrap
        clazz - The class of artifacts to publish
        filter - Predicate to filter which artifacts to publish
        transform - Function to transform artifacts before publishing