Interface ObjectHandler<T>

  • Type Parameters:
    T - type of the objects; intentionally general enough to cover both prism objects, containerables, and maybe others in the future
    All Known Subinterfaces:
    AuditResultHandler, ContainerableResultHandler<C>, ResultHandler<T>
    All Known Implementing Classes:
    AbstractSummarizingResultHandler
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ObjectHandler<T>
    Classes implementing this interface are used to handle arbitrary objects (not always PrismObject instances), typically - but not necessarily - coming from iterative search operation. TODO resolve class naming with ResultHandler; maybe ObjectHandler is not the best name at all?
    See Also:
    ResultHandler
    • Method Detail

      • handle

        boolean handle​(T object,
                       OperationResult result)
        Handle a single object.
        Parameters:
        object - Object to handle.
        result - Where to store the result of the processing.
        Returns:
        true if the operation should proceed, false if it should stop