Reuse generated entity instantiators from ClassGeneratingEntityInstantiator
instances
#2446
Labels
type: task
A general task
Milestone
There is a class:
ClassGeneratingEntityInstantiator
which is responsible for creating the instance of class after loading data object from elasticsearch. I am using theReactiveCrudRepository
to load data from elasticsearch. The flow of the code is that the new instantiator is created when this is a first request.Then the
ReflectUtils
is used to load class and create dedicatedEntityInstantiator
. All already createdEntityInstantiator
are stored in map which should be avaliable in the next request, but the problem is that the map is empty. Because the map is empty later on is the duplicated of class creation exception what I guess might created a memory leak (metaspace). Everything is ok when i am using database as a store, map is not empty and allEntityInstantiator
are remembered.Fragment of code:
The text was updated successfully, but these errors were encountered: