public static class MailerContext.InitEvent extends ActEvent<MailerContext> implements SystemEvent
SOURCE_PLACEHODERsource| Constructor and Description |
|---|
InitEvent(MailerContext source) |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends ActEvent<MailerContext>> |
eventType()
Unlike the
Object.getClass() method, which always return the java class of the current instance. |
getSource, toStringpublic InitEvent(MailerContext source)
public Class<? extends ActEvent<MailerContext>> eventType()
ActEventUnlike 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<MailerContext>Copyright © 2014–2018 ActFramework. All rights reserved.