ApplicationClientEventpublic class ApplicationClientEvent extends ApplicationEvent ApplicationClientEvents are sent before/after an application client
is loaded/unloaded.
Listeners that are interested in getting ApplicationClientLaoderEvents
can register with the ApplicationClientLoaderEventNotifier as follows:
ApplicationClientLoaderEventNotifier notifier =
ApplicationClientLoaderEventNotifier.getInstance();
notifier.addListener(listener);
Application client events are sent even when app client modules are
deployed / undeployed.
Generally, APPLICATION events are sent in the following order
a) BEFORE_APPLICATION_CLIENT_LOAD
b) AFTER_APPLICATION_CLIENT_LOAD
c) BEFORE_APPLICATION_CLIENT_UNLOAD
d) AFTER_APPLICATION_CLIENT_UNLOAD
Note that this class is basically a copy of the ApplicationEvent class, with
the key difference being the prefix assinged for the toString method.
Also, this class defines a parallel set of constants named for application client
load and unload events for clarity in logic elsewhere that uses them. |
Fields Summary |
---|
public static final int | BEFORE_APPLICATION_CLIENT_LOADThe following constants allow listeners for this type of event to
use names that reflect the client-related event types, even though they
convey essentially the same meaning as the application-related event types. | public static final int | AFTER_APPLICATION_CLIENT_LOAD | public static final int | BEFORE_APPLICATION_CLIENT_UNLOAD | public static final int | AFTER_APPLICATION_CLIENT_UNLOAD |
Methods Summary |
---|
public java.lang.String | toString()
return toString(new StringBuffer("AppClientEvent: "));
|
|