private ApplicationRuntimeException createBodylessComponentException(IComponent component) { return new ApplicationRuntimeException(ImplMessages.bodylessComponent(), component, null, null); } }
public String toString() { return ImplMessages.engineServiceInnerProxyToString(_serviceName); }
public String toString() { return ImplMessages.engineServiceOuterProxyToString(_serviceName); }
return false; throw new ApplicationRuntimeException(ImplMessages.templateBindingForInformalParameter(_loadComponent, name, component), component, binding.getLocation(), null); return false; throw new ApplicationRuntimeException(ImplMessages.templateBindingForReservedParameter(_loadComponent, name, component), component, binding.getLocation(), null); return false; throw new ApplicationRuntimeException(ImplMessages.dupeTemplateBinding( name, component,
private IPropertySource createSourceForComponent(IComponent component) { IComponentSpecification specification = component.getSpecification(); List sources = new ArrayList(); sources.add(new PropertyHolderPropertySource(specification)); sources.add(getSourceForNamespace(component.getNamespace())); return (IPropertySource) _chainBuilder.buildImplementation( IPropertySource.class, sources, ImplMessages.componentPropertySourceDescription(specification)); }
private void checkForDuplicateId(String id, Location location) { if (id == null) return; IContainedComponent cc = _loadComponent.getSpecification().getComponent(id); if (cc != null) throw new ApplicationRuntimeException(ImplMessages.dupeComponentId(id, cc), _loadComponent, location, null); }
public IEngine construct() { try { return (IEngine) _engineClass.newInstance(); } catch (Exception ex) { throw new ApplicationRuntimeException(ImplMessages.errorInstantiatingEngine(_engineClass, ex), ex); } } }
public void initializeService() { String engineClassName = _applicationSpecification.getEngineClassName(); // TODO: Check in web.xml first. if (engineClassName == null) engineClassName = _defaultEngineClassName; Class engineClass = _classResolver.checkForClass(engineClassName); if (engineClass == null) { _errorLog.error(ImplMessages.engineClassNotFound(engineClassName), null, null); engineClass = BaseEngine.class; } _constructor = new ReflectiveEngineConstructor(engineClass); }
private Map buildServiceMap(List services) { Map result = new HashMap(); Iterator i = services.iterator(); while (i.hasNext()) { EngineServiceContribution contribution = (EngineServiceContribution) i.next(); String name = contribution.getName(); EngineServiceContribution existing = (EngineServiceContribution) result.get(name); if (existing != null) { _errorLog.error( ImplMessages.dupeService(name, existing), existing.getLocation(), null); continue; } result.put(name, contribution); } return result; }
private Map buildMapFromContributions(List contributions, String mode) { Map result = new HashMap(); Iterator i = contributions.iterator(); while (i.hasNext()) { InfrastructureContribution ic = (InfrastructureContribution) i.next(); if (!ic.matchesMode(mode)) continue; String propertyName = ic.getProperty(); InfrastructureContribution existing = (InfrastructureContribution) result .get(propertyName); if (existing != null) { _errorLog.error(ImplMessages.duplicateInfrastructureContribution(ic, existing .getLocation()), ic.getLocation(), null); continue; } result.put(propertyName, ic); } return result; }
return false; throw new ApplicationRuntimeException(ImplMessages.templateBindingForInformalParameter(_loadComponent, name, component), component, binding.getLocation(), null); return false; throw new ApplicationRuntimeException(ImplMessages.templateBindingForReservedParameter(_loadComponent, name, component), component, binding.getLocation(), null); return false; throw new ApplicationRuntimeException(ImplMessages.dupeTemplateBinding( name, component,
private IPropertySource createSourceForComponent(IComponent component) { IComponentSpecification specification = component.getSpecification(); List sources = new ArrayList(); sources.add(new PropertyHolderPropertySource(specification)); sources.add(getSourceForNamespace(component.getNamespace())); return (IPropertySource) _chainBuilder.buildImplementation( IPropertySource.class, sources, ImplMessages.componentPropertySourceDescription(specification)); }
private void checkForDuplicateId(String id, Location location) { if (id == null) return; IContainedComponent cc = _loadComponent.getSpecification().getComponent(id); if (cc != null) throw new ApplicationRuntimeException(ImplMessages.dupeComponentId(id, cc), _loadComponent, location, null); }
public IEngine construct() { try { return (IEngine) _engineClass.newInstance(); } catch (Exception ex) { throw new ApplicationRuntimeException(ImplMessages.errorInstantiatingEngine(_engineClass, ex), ex); } } }
public void initializeService() { String engineClassName = _applicationSpecification.getEngineClassName(); // TODO: Check in web.xml first. if (engineClassName == null) engineClassName = _defaultEngineClassName; Class engineClass = _classResolver.checkForClass(engineClassName); if (engineClass == null) { _errorLog.error(ImplMessages.engineClassNotFound(engineClassName), null, null); engineClass = BaseEngine.class; } _constructor = new ReflectiveEngineConstructor(engineClass); }
private Map buildServiceMap(List services) { Map result = new HashMap(); Iterator i = services.iterator(); while (i.hasNext()) { EngineServiceContribution contribution = (EngineServiceContribution) i.next(); String name = contribution.getName(); EngineServiceContribution existing = (EngineServiceContribution) result.get(name); if (existing != null) { _errorLog.error( ImplMessages.dupeService(name, existing), existing.getLocation(), null); continue; } result.put(name, contribution); } return result; }
private Map buildMapFromContributions(List contributions, String mode) { Map result = new HashMap(); Iterator i = contributions.iterator(); while (i.hasNext()) { InfrastructureContribution ic = (InfrastructureContribution) i.next(); if (!ic.matchesMode(mode)) continue; String propertyName = ic.getProperty(); InfrastructureContribution existing = (InfrastructureContribution) result .get(propertyName); if (existing != null) { _errorLog.error(ImplMessages.duplicateInfrastructureContribution(ic, existing .getLocation()), ic.getLocation(), null); continue; } result.put(propertyName, ic); } return result; }
private ApplicationRuntimeException createBodylessComponentException(IComponent component) { return new ApplicationRuntimeException(ImplMessages.bodylessComponent(), component, null, null); } }
public String toString() { return ImplMessages.engineServiceOuterProxyToString(_serviceName); }
public String toString() { return ImplMessages.engineServiceInnerProxyToString(_serviceName); }