This is the only case in the API package where internals are visible, and is confusing from the file structure point of view. It also allows for putting more complicated behavior into the helper, instead of changing the proper functions. (Like it happened in #49 (comment))
Options:
- Make the corresponding methods public with an individual
ApiStatus.Internal annotation on each one (The now deprecated WrappedConfig did this)
- Move the wrapping relative stuff into an abstract
ReflectiveConfigImpl which is extended by ReflectiveConfig
- Use reflection to set the the inner value
My current favorite is option 2.
This is the only case in the API package where internals are visible, and is confusing from the file structure point of view. It also allows for putting more complicated behavior into the helper, instead of changing the proper functions. (Like it happened in #49 (comment))
Options:
ApiStatus.Internalannotation on each one (The now deprecatedWrappedConfigdid this)ReflectiveConfigImplwhich is extended byReflectiveConfigMy current favorite is option 2.