Add ApiClassInitCallback to initialize api  class instance