public SetExcludeSiteExample() {
   // Get service factory. Your authentication information will be popped up automatically from
   // baidu-api.properties
   VersionService factory = ServiceFactory.getInstance();
   // Get service stub by given the Service interface.
   // Please see the bean-api.tar.gz to get more details about all the service interfaces.
   this.service = factory.getService(GroupConfigService.class);
 }
Пример #2
0
 public void setContext(@Context ServletContext context) {
   if (dynamicService) {
     taskService = ServiceFactory.getInstance().getTaskDefinitionService();
   }
 }