The MapperRegistry class is currently never instantiated and just uses class-level state. What I'd like to see is a MapperRegistry object created and stored within the Configuration object. This will allow us to be able to instantiate multiple Perpetuity configurations each with its own MapperRegistry.
Also, class-level state is a smell I'd rather not have.
The
MapperRegistry
class is currently never instantiated and just uses class-level state. What I'd like to see is aMapperRegistry
object created and stored within theConfiguration
object. This will allow us to be able to instantiate multiple Perpetuity configurations each with its ownMapperRegistry
.Also, class-level state is a smell I'd rather not have.