get class compiler factory from provider