private IEngineService buildProxy(String name) { if (!_services.containsKey(name)) throw new ApplicationRuntimeException(ImplMessages.noSuchService(name)); EngineServiceOuterProxy outer = new EngineServiceOuterProxy(name); EngineServiceInnerProxy inner = new EngineServiceInnerProxy(name, outer, this); outer.installDelegate(inner); return outer; }
private IEngineService buildProxy(String name) { if (!_services.containsKey(name)) throw new ApplicationRuntimeException(ImplMessages.noSuchService(name)); EngineServiceOuterProxy outer = new EngineServiceOuterProxy(name); EngineServiceInnerProxy inner = new EngineServiceInnerProxy(name, outer, this); outer.installDelegate(inner); return outer; }
/** * This returns the actual service, not the outer proxy. */ public IEngineService resolveEngineService(String name) { EngineServiceContribution contribution = (EngineServiceContribution) _services.get(name); if (contribution == null) throw new ApplicationRuntimeException(ImplMessages.noSuchService(name)); IEngineService service = contribution.getService(); String serviceName = service.getName(); if (!name.equals(serviceName)) throw new ApplicationRuntimeException(ImplMessages.serviceNameMismatch( service, name, serviceName), contribution.getLocation(), null); return service; }
/** * This returns the actual service, not the outer proxy. */ public IEngineService resolveEngineService(String name) { EngineServiceContribution contribution = (EngineServiceContribution) _services.get(name); if (contribution == null) throw new ApplicationRuntimeException(ImplMessages.noSuchService(name)); IEngineService service = contribution.getService(); String serviceName = service.getName(); if (!name.equals(serviceName)) throw new ApplicationRuntimeException(ImplMessages.serviceNameMismatch( service, name, serviceName), contribution.getLocation(), null); return service; }