Making user class abstract and refereing to the ioc container for instance