Example #1
0
 /**
  * Returns a service UI descriptor of this service. Usually this method is used as an entry in
  * provider configuration files when smart proxies are deployed with a standard off the shelf
  * {@link sorcer.core.provider.ServiceProvider}.
  *
  * @return service UI descriptor
  */
 public static UIDescriptor getUIDescriptor() {
   UIDescriptor uiDesc = null;
   try {
     URL uiUrl = new URL(Sorcer.getWebsterUrl() + "/" + "");
     uiDesc =
         UIDescriptorFactory.getUIDescriptor(
             MainUI.ROLE,
             new UIComponentFactory(new URL[] {uiUrl}, HelloWorldTemplateUI.class.getName()));
   } catch (Exception ex) {
     logger.severe("HelloWorldImplUI, Problem loading SUI: " + ex.getMessage());
   }
   return uiDesc;
 }
Example #2
0
 /**
  * Returns a service UI descriptorfor this service. Usally this method is used as an entry in
  * provider configuration files when smart proxies are deployed with a standard off the shelf
  * {@link sorcer.core.provider.ServiceProvider}.
  *
  * @return service UI descriptor
  */
 public static UIDescriptor getUIDescriptor() {
   UIDescriptor uiDesc = null;
   try {
     uiDesc =
         UIDescriptorFactory.getUIDescriptor(
             MainUI.ROLE,
             new UIComponentFactory(
                 new URL[] {new URL(Sorcer.getWebsterUrl() + "/ssu1-mvc-ui.jar")},
                 SortView.class.getName()));
   } catch (Exception ex) {
     logger.throwing(SortView.class.getName(), "getUIDescriptor", ex);
   }
   return uiDesc;
 }