public static class ActionContext.SessionWillDissolveEvent extends ActionContext.ActionContextEvent
SOURCE_PLACEHODER
source
Constructor and Description |
---|
SessionWillDissolveEvent(ActionContext source) |
Modifier and Type | Method and Description |
---|---|
Class<? extends ActEvent<ActionContext>> |
eventType()
Unlike the
Object.getClass() method, which always return the java class of the current instance. |
context
getSource, toString
public SessionWillDissolveEvent(ActionContext source)
public Class<? extends ActEvent<ActionContext>> eventType()
ActEvent
Unlike the Object.getClass()
method, which always return the java class of the current instance. This eventType()
method allow a certain implementation of the class terminate the return value of the method. For example, suppose you have a event class MyEvent
and you might have some anonymous class of MyEvent
. If you implement the eventType()
of MyEvent
class as follows:
public class<MyEvent> eventType() { return MyEvent.class; }Then all the anonymous sub class will return the
MyEvent.class
instead of their own class. This allows the ActFramework properly handle the event class registration
eventType
in class ActEvent<ActionContext>
Copyright © 2014–2021 ActFramework. All rights reserved.