code: public void setAppContext(AppContext appContext) {
      	this.appContext = appContext;
  
      	envHolder = appContext.getEnvHolder();
      	resourceLoader = appContext.getResourceLoader();
      }
docs: 设置AppContext