Interface IDrivingAdapter
public interface IDrivingAdapter
Generic interface that must be implemented by a DrivingAdapter
A driving adapter has internally provide following states:
CREATED: In this state is a newly created driving adapter. Following methods are allowed:
- register(Object) which performs no state change
- start() which performs a state change into state STARTED
STARTED:
- Within this state incoming calls can be forwarded to registered ports
- stop() to change into state STOPPED
STOPPED: - In this state a driving adapter can no longer be used
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegister an object that should be accessed by this driving adaptervoidstart()Perform all operations that are required to offer registered objects via this driving adapter.voidstop()Perform all operations that are required to deallocate resources and no longer offer registered objects.
-
Method Details
-
register
Register an object that should be accessed by this driving adapter- Parameters:
port- port to be registered with driving adapter.
-
start
void start()Perform all operations that are required to offer registered objects via this driving adapter. -
stop
void stop()Perform all operations that are required to deallocate resources and no longer offer registered objects. As soon as an object is stopped it is not required that it can be started again.
-