Helper class that allows you to close one or multiple components at the same time.
Description
The Closer class allows you to close one or multiple components at the same time.
Static methods
close
Closes multiple components.
To be closed, components must implement the IClosable interface. If they don’t, the call to this method has no effect.
public static voidclose(IContext context, Iterable
- context: IContext - (optional) execution context to trace execution through call chain.
- components: Iterable
closeOne
Closes a specific component. To be closed, components must implement the IClosable interface. If they don’t, the call to this method has no effect.
public static voidcloseOne(IContext context, Object component) throws ApplicationException
- context: IContext - (optional) execution context to trace execution through call chain.
- component: Object - component that is to be closed.