Package com.db4o.internal.events
Class Event4Impl<T extends EventArgs>
- java.lang.Object
-
- com.db4o.internal.events.Event4Impl<T>
-
- All Implemented Interfaces:
Event4<T>
- Direct Known Subclasses:
EventRegistryImpl.CommittedEvent
public class Event4Impl<T extends EventArgs> extends java.lang.Object implements Event4<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEvent4Impl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(EventListener4<T> listener)Adds a new listener to the notification list..booleanhasListeners()static <T extends EventArgs>
Event4Impl<T>newInstance()protected voidonListenerAdded()Might be overridden whenever specific events need to know when listeners subscribe to the event.voidremoveListener(EventListener4<T> listener)Removes a previously registered listener from the notification list.voidtrigger(T args)
-
-
-
Method Detail
-
newInstance
public static <T extends EventArgs> Event4Impl<T> newInstance()
-
addListener
public final void addListener(EventListener4<T> listener)
Description copied from interface:Event4Adds a new listener to the notification list..- Specified by:
addListenerin interfaceEvent4<T extends EventArgs>
-
onListenerAdded
protected void onListenerAdded()
Might be overridden whenever specific events need to know when listeners subscribe to the event.
-
removeListener
public final void removeListener(EventListener4<T> listener)
Description copied from interface:Event4Removes a previously registered listener from the notification list.- Specified by:
removeListenerin interfaceEvent4<T extends EventArgs>
-
trigger
public final void trigger(T args)
-
hasListeners
public boolean hasListeners()
-
-