Closed FDelporte closed 3 months ago
To be able to use the data from the model in a REST API, this requires an extra dependency. Is this a problem?
com.fasterxml.jackson.core:jackson-annotations
Shouldn't we keep the JSON stuff out of core Pi4j? Let the REST API code generate the JSON code, then we don't need this dependency.
Shouldn't we keep the JSON stuff out of core Pi4j?
@eitch I was expecting this ;-) is removed now...
We should perform the code to detect the board only once, and then store it in a singleton.
It's called from DefaultContext.java, so it's part of a singleton, correct?
We should perform the code to detect the board only once, and then store it in a singleton.
It's called from DefaultContext.java, so it's part of a singleton, correct?
Sure, but maybe someone else would call BoardInfo.current(), as it is a static helper method.
Sure, but maybe someone else would call BoardInfo.current(), as it is a static helper method.
yep, in that case, it's up to the user to decide if they want to do that multiple times, right?
Sure, but maybe someone else would call BoardInfo.current(), as it is a static helper method.
yep, in that case, it's up to the user to decide if they want to do that multiple times, right?
True, but from a library i expect it to avoid unnecessary computations. So multiple calls should cache this computation somehow.
To be able to use the data from the model in a REST API, this requires an extra dependency. Is this a problem?