Package com.evolveum.midpoint.schema
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
- 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 alwaysPrismObject
instances), typically - but not necessarily - coming from iterative search operation. TODO resolve class naming withResultHandler
; maybe ObjectHandler is not the best name at all?- See Also:
ResultHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
handle(T object, OperationResult result)
Handle a single object.
-
-
-
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
-
-