FileDocCategorySizeDatePackage
ApplicationClientEvent.javaAPI DocGlassfish v2 API4090Fri May 04 22:35:44 BST 2007com.sun.enterprise.server.event

ApplicationClientEvent

public 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_LOAD
The 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
Constructors Summary
public ApplicationClientEvent(int eventType, com.sun.enterprise.deployment.Application application, ClassLoader loader, com.sun.enterprise.config.ConfigContext configContext)


        
	       
    
	super(eventType, application, loader, configContext);
    
Methods Summary
public java.lang.StringtoString()

        return toString(new StringBuffer("AppClientEvent: "));