Description
The Opener class can be used to check whether all components are opened or not, a component is opened or not, and to open one or more components.
Static methods
isOpen
Checks if all components are opened.
To be checked, components must implement the IOpenable interface. If they don’t, the call to this method returns true.
public static boolean
isOpen(Iterable
- components: Iterable
- returns: boolean - true if all components are opened and false if at least one component is closed.
isOpenOne
Checks if a specified component is opened. To be checked, components must implement the IOpenable interface. If they don’t, the call to this method returns true.
public static boolean
isOpenOne(Object component)
- component: Object - component that is to be checked.
- returns: boolean - true if the component is opened and false otherwise.
open
Opens multiple components. To be opened, components must implement IOpenable interface. If they don’t, the call to this method has no effect.
public static void
open(IContext context, Iterable
- context: IContext - (optional) execution context to trace execution through call chain.
- components: Iterable
openOne
Opens a specific component. To be opened, components must implement the IOpenable interface. If they don’t, the call to this method has no effect.
public static void
openOne(IContext context, Object component) throws ApplicationException
- context: IContext - (optional) execution context to trace execution through call chain.
- component: Object - component that is to be opened.