示例#1
0
 /**
  * Create a new BaseApplication with the specified services.
  *
  * @param switchYard SwitchYard object containing this application
  * @param name application name
  * @param services list of services
  */
 public BaseApplication(BaseSwitchYard switchYard, QName name, List<Service> services) {
   this(switchYard, name);
   if (services != null) {
     for (Service service : services) {
       _services.put(service.getName(), service);
     }
   }
 }
示例#2
0
 protected void addService(Service service) {
   _services.put(service.getName(), service);
   _switchYard.addService(service);
 }
示例#3
0
 /**
  * Set the list of services offered by this application.
  *
  * @param services list of services
  */
 public void setServices(List<Service> services) {
   _services = new LinkedHashMap<QName, Service>();
   for (Service service : services) {
     _services.put(service.getName(), service);
   }
 }