com.levigo.util.swing.action
Interface CommandCreationListener

All Known Implementing Classes:
CommandCreationAdapter, DebugActionCreationFailureLogger

public interface CommandCreationListener

Instances of CommandCreationListener can be registered at DefaultCommandFactory to receive informations or failure messages of command or command factory creation process.

This mechanism can be used to forward these informations to application specific logging frameworks or to initiate certain failure handling.

Author:
Carolin Köhler
See Also:
DefaultCommandFactory.addCommandCreationListener(CommandCreationListener), DefaultCommandFactory.removeCommandCreationListener(CommandCreationListener), DefaultCommandFactory.getCommandCreationListeners()

Method Summary
 void creationFailure(NamedCommandFactory source, String message, String key, Throwable t)
          This method will be called if a failure occurred while command or command factory creation.
 void creationInformation(NamedCommandFactory source, String message, String key)
          This method will be called when ever informational messages should be provided while a command creation.
 void creationWarning(NamedCommandFactory source, String message, String key)
          This method will be called if something happens while command creation, which should be notified as a warning indicating a potential problem.
 

Method Detail

creationFailure

void creationFailure(NamedCommandFactory source,
                     String message,
                     String key,
                     Throwable t)
This method will be called if a failure occurred while command or command factory creation.

Parameters:
source - The source object where the failure occurred or null if the command factory could not be created.
message - A failure description
key - The key of the problematic command or the name of the problematic command factory
t - (optional) the occurred Throwable or null

creationWarning

void creationWarning(NamedCommandFactory source,
                     String message,
                     String key)
This method will be called if something happens while command creation, which should be notified as a warning indicating a potential problem.

Parameters:
source - The source object where the problem occurred.
message - A problem description
key - (optional) The key of the problematic command or null

creationInformation

void creationInformation(NamedCommandFactory source,
                         String message,
                         String key)
This method will be called when ever informational messages should be provided while a command creation.

Parameters:
source - The source object which propagates the information.
message - A message
key - (optional) The key of the command or null


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.