|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.util.swing.action.CommandCreationAdapter com.levigo.jadice.swing.util.DebugActionCreationFailureLogger
public class DebugActionCreationFailureLogger
This singleton should be registered at the DefaultActionFactory
, at the
DefaultCommandFactory
and at the DefaultMenuComponentFactory
to propagate
informations or failure messages of actions and command creation process into the logging
framework.
This could be useful for debugging purposes while development time.
DefaultActionFactory
,
DefaultActionFactory.addActionCreationListener(ActionCreationListener)
,
DefaultActionFactory.removeActionCreationListener(ActionCreationListener)
,
DefaultCommandFactory
,
DefaultCommandFactory.addCommandCreationListener(com.levigo.util.swing.action.CommandCreationListener)
,
DefaultCommandFactory.removeCommandCreationListener(com.levigo.util.swing.action.CommandCreationListener)
,
DefaultMenuComponentFactory.addMenuComponentCreationListener(MenuComponentCreationListener)
,
DefaultMenuComponentFactory.removeLinkedMenuComponentFactory(com.levigo.util.swing.action.BasicMenuComponentFactory)
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 |
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 |
creationFailure(NamedMenuComponentFactory source,
String message,
String key,
Throwable t)
This method will be called if a failure occurred while menu component 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 |
creationInformation(NamedMenuComponentFactory source,
String message,
String key)
This method will be called when ever informational messages should be provided while a menu component 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. |
void |
creationWarning(NamedMenuComponentFactory source,
String message,
String key)
This method will be called if something happens while menu component creation, which should be notified as a warning indicating a potential problem. |
static DebugActionCreationFailureLogger |
getInstance()
|
Methods inherited from class com.levigo.util.swing.action.CommandCreationAdapter |
---|
creationInformation, creationWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final DebugActionCreationFailureLogger getInstance()
public void creationFailure(NamedActionFactory source, String message, String key, Throwable t)
ActionCreationListener
creationFailure
in interface ActionCreationListener
source
- The source object where the failure occurred.message
- A failure descriptionkey
- (optional) The key of the problematic action or null
t
- (optional) the occurred Throwable
or null
public void creationInformation(NamedActionFactory source, String message, String key)
ActionCreationListener
creationInformation
in interface ActionCreationListener
source
- The source object which propagates the information.message
- A messagekey
- (optional) The key of the action or null
public void creationWarning(NamedActionFactory source, String message, String key)
ActionCreationListener
creationWarning
in interface ActionCreationListener
source
- The source object where the problem occurred.message
- A problem descriptionkey
- (optional) The key of the problematic action or null
public void creationFailure(NamedCommandFactory source, String message, String key, Throwable t)
CommandCreationListener
creationFailure
in interface CommandCreationListener
creationFailure
in class CommandCreationAdapter
source
- The source object where the failure occurred or null
if the command
factory could not be created.message
- A failure descriptionkey
- The key of the problematic command or the name of the problematic command factoryt
- (optional) the occurred Throwable
or null
public void creationFailure(NamedMenuComponentFactory source, String message, String key, Throwable t)
MenuComponentCreationListener
creationFailure
in interface MenuComponentCreationListener
source
- The source object where the failure occurred.message
- A failure descriptionkey
- (optional) The key of the problematic menu structure or null
t
- (optional) the occurred Throwable
or null
public void creationWarning(NamedMenuComponentFactory source, String message, String key)
MenuComponentCreationListener
creationWarning
in interface MenuComponentCreationListener
source
- The source object where the problem occurred.message
- A problem descriptionkey
- (optional) The key of the problematic menu structure or null
public void creationInformation(NamedMenuComponentFactory source, String message, String key)
MenuComponentCreationListener
creationInformation
in interface MenuComponentCreationListener
source
- The source object which propagates the information.message
- A messagekey
- (optional) The key of the menu structure or null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |