com.levigo.util.swing.action
Interface ActionCreationListener

All Known Implementing Classes:
ActionCreationAdapter, DebugActionCreationFailureLogger

public interface ActionCreationListener

Instances of ActionCreationListener can be registered at DefaultActionFactory to receive informations or failure messages of actions 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:
DefaultActionFactory.addActionCreationListener(ActionCreationListener), DefaultActionFactory.removeActionCreationListener(ActionCreationListener), DefaultActionFactory.getActionCreationListener()

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

Method Detail

creationFailure

void creationFailure(NamedActionFactory source,
                     String message,
                     String key,
                     Throwable t)
This method will be called if a failure occurred while action creation.

Parameters:
source - The source object where the failure occurred.
message - A failure description
key - (optional) The key of the problematic action or null
t - (optional) the occurred Throwable or null

creationWarning

void creationWarning(NamedActionFactory source,
                     String message,
                     String key)
This method will be called if something happens while action 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 action or null

creationInformation

void creationInformation(NamedActionFactory source,
                         String message,
                         String key)
This method will be called when ever informational messages should be provided while an action creation.

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


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