Interface ConnectionObserver.ConnectionRequestObserver<SRC>
- Type Parameters:
SRC
- The type of the source in question.
- All Superinterfaces:
ConnectionObserver<SRC>
,org.refcodes.observer.Observer<ConnectionEvent<?,
SRC>>
- Enclosing interface:
- ConnectionObserver<SRC>
public static interface ConnectionObserver.ConnectionRequestObserver<SRC>
extends ConnectionObserver<SRC>
An observer for listening to
ConnectionRequestEvent
instances.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.component.ext.observer.ConnectionObserver
ConnectionObserver.ConnectionRequestObserver<SRC>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onCloseEvent
(CloseEvent<SRC> aEvent) In case a device is to be closed, then theCloseEvent
event is fired.void
onOpenEvent
(OpenEvent<SRC> aEvent) In case a device is to be opened, then theOpenEvent
event is fired.Methods inherited from interface org.refcodes.component.ext.observer.ConnectionObserver
onClosedEvent, onOpendEvent
Methods inherited from interface org.refcodes.observer.Observer
onEvent
-
Method Details
-
onOpenEvent
In case a device is to be opened, then theOpenEvent
event is fired.- Parameters:
aEvent
- The accordingOpenEvent
.- Throws:
org.refcodes.exception.VetoException
- the veto exception
-
onCloseEvent
In case a device is to be closed, then theCloseEvent
event is fired.- Parameters:
aEvent
- The accordingCloseEvent
.- Throws:
org.refcodes.exception.VetoException
- the veto exception
-