DataRegionConfiguration is a FINAL class but could we make it not final?
Is there a very good reason why the DataRegionConfiguration is a *FINAL*
class?
I would like to be able to extend the DataRegionConfiguration.
In my extended class I would like to add a new method for the *setMaxSize()*
and *setInitialSize()* for example where the input is of the type
*org.springframework.util.unit.DataSize* instead of *long*.
This way I can do *super.setMaxSize(maxSize.toBytes())* which will convert a
property set in my application.properties in a form like *"1GB"* to the
corresponding bytes by Spring Boot automatically.
The only option I have now is to Wrap the class and delegate the methods,
but that makes me create two beans instead of one for each
DataRegionConfiguration.
Re: DataRegionConfiguration is a FINAL class but could we make it not final?
Hi,
I couldn't find any strong reason why this class needs to be final. So, if
that is a restriction for you, feel free to create a ticket and submit a
pull request.
On Fri, Mar 15, 2019 at 11:47 PM hlopez <[hidden email]> wrote: