Simple factory design pattern by auto-registration and applications. · Study