/** * 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); } } }
protected void addService(Service service) { _services.put(service.getName(), service); _switchYard.addService(service); }
/** * 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); } }