| | |
| | | /** |
| | | * Makes available a <code>UserInteraction</code> class that can be used |
| | | * by the application to interact with the user. If the user has requested |
| | | * a noninteractive session this method returns null. |
| | | * a silent session this method returns null. |
| | | * @return UserInteraction object |
| | | */ |
| | | protected UserInteraction userInteraction() { |
| | | // Note: overridden in GuiApplication |
| | | UserInteraction ui = null; |
| | | if (!getUserData().isNoninteractive()) { |
| | | if (!getUserData().isSilent()) { |
| | | ui = new CliUserInteraction(); |
| | | } |
| | | return ui; |