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 protected
Event4Impl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(EventListener4<T> listener)
Adds a new listener to the notification list..boolean
hasListeners()
static <T extends EventArgs>
Event4Impl<T>newInstance()
protected void
onListenerAdded()
Might be overridden whenever specific events need to know when listeners subscribe to the event.void
removeListener(EventListener4<T> listener)
Removes a previously registered listener from the notification list.void
trigger(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:Event4
Adds a new listener to the notification list..- Specified by:
addListener
in 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:Event4
Removes a previously registered listener from the notification list.- Specified by:
removeListener
in interfaceEvent4<T extends EventArgs>
-
trigger
public final void trigger(T args)
-
hasListeners
public boolean hasListeners()
-
-