-
In the class ClauDB in the package com.github.tonivade.claudb, what is the purpose of super.start() in the start() method? It seems that RespServerContext's start() is empty.Hope you can clarify. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @ygger. Thank you for your interest in claudb. RespServerContext.start() method is a hook to allow implementations of RespServerContext to have a proper initialization. This way ClauDB class can be initialized from the framework. The call to super.start() can be removed but it's a good practice to call the parent method. This way if RespServerContext class adds something to the start method the implementation will execute that code also. |
Beta Was this translation helpful? Give feedback.
Hi @ygger. Thank you for your interest in claudb.
RespServerContext.start() method is a hook to allow implementations of RespServerContext to have a proper initialization. This way ClauDB class can be initialized from the framework.
The call to super.start() can be removed but it's a good practice to call the parent method. This way if RespServerContext class adds something to the start method the implementation will execute that code also.