Closer

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 void close(IContext context, Iterable components) throws ApplicationException

  • context: IContext - (optional) execution context to trace execution through call chain.
  • components: Iterable - list of components that are to be closed.

    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 void closeOne(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.

    See also