private void error(String message, Location location, Throwable cause) { _factoryParameters.getErrorLog().error(message, location, cause); }
/** * Checks that the number of parameter elements matches the expected count. */ private void checkParameterCounts(ErrorLog log, Occurances expected) { int actual = _convertedParameters.size(); if (expected.inRange(actual)) return; String message = ImplMessages.wrongNumberOfParameters(_factoryServiceId, actual, expected); log.error(message, getLocation(), null); }
private void fireResetEvent() { try { _resetEventHub.fireResetEvent(); } catch (Exception ex) { _errorLog.error(ImplMessages.errorResetting(ex), HiveMind.getLocation(ex), ex); } }
private void fireResetEvent() { try { _resetEventHub.fireResetEvent(); } catch (Exception ex) { _errorLog.error(ImplMessages.errorResetting(ex), HiveMind.getLocation(ex), ex); } }
public void performEnhancement(EnhancementOperation op, IComponentSpecification spec) { try { injectRenderWorker(op, spec); } catch (Exception ex) { _errorLog.error(EnhanceMessages.errorAddingProperty(PROPERTY_NAME, op.getBaseClass(), ex), spec.getLocation(), ex); } }
public void performEnhancement(EnhancementOperation op, IComponentSpecification spec) { try { injectRenderWorker(op, spec); } catch (Exception ex) { _errorLog.error(EnhanceMessages.errorAddingProperty(PROPERTY_NAME, op.getBaseClass(), ex), spec.getLocation(), ex); } }
public void performEnhancement(EnhancementOperation op, IComponentSpecification spec) { try { injectEventInvoker(op, spec); } catch (Exception ex) { _errorLog.error(EnhanceMessages.errorAddingProperty( PROPERTY_NAME, op.getBaseClass(), ex), spec .getLocation(), ex); } }
public void performEnhancement(EnhancementOperation op, IComponentSpecification spec) { Location location = spec.getLocation(); try { injectMessages(op, location); } catch (Exception ex) { _errorLog.error(EnhanceMessages.errorAddingProperty(_messagesProperty, op .getBaseClass(), ex), location, ex); } }
public void performEnhancement(EnhancementOperation op, IComponentSpecification spec) { try { injectEventInvoker(op, spec); } catch (Exception ex) { _errorLog.error(EnhanceMessages.errorAddingProperty( PROPERTY_NAME, op.getBaseClass(), ex), spec .getLocation(), ex); } }
public void performEnhancement(EnhancementOperation op, IComponentSpecification spec) { Location location = spec.getLocation(); try { injectMessages(op, location); } catch (Exception ex) { _errorLog.error(EnhanceMessages.errorAddingProperty(_messagesProperty, op .getBaseClass(), ex), location, 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); }
public void performEnhancement(EnhancementOperation op, IComponentSpecification spec) { Iterator i = spec.getParameterNames().iterator(); while(i.hasNext()) { String name = (String) i.next(); IParameterSpecification ps = spec.getParameter(name); try { performEnhancement(op, name, ps); } catch (RuntimeException ex) { _errorLog.error(EnhanceMessages.errorAddingProperty(ps.getPropertyName(), op.getBaseClass(), ex), ps.getLocation(), ex); } } }
public void performEnhancement(EnhancementOperation op, IComponentSpecification spec) { try { injectSpecification(op, spec); } catch (Exception ex) { _errorLog.error(EnhanceMessages.errorAddingProperty( SPECIFICATION_PROPERTY_NAME, op.getBaseClass(), ex), spec .getLocation(), 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); }
public void performEnhancement(EnhancementOperation op, IComponentSpecification spec) { try { injectSpecification(op, spec); } catch (Exception ex) { _errorLog.error(EnhanceMessages.errorAddingProperty( SPECIFICATION_PROPERTY_NAME, op.getBaseClass(), ex), spec .getLocation(), ex); } }
Object readProperty(String locator, Location location) { try { if (PropertyUtils.isReadable(_infrastructure, locator)) return PropertyUtils.read(_infrastructure, locator); return _infrastructure.getProperty(locator); } catch (Throwable ex) { _errorLog.error(ImplMessages.unableToReadInfrastructureProperty( locator, _infrastructure, ex), location, ex); return null; } }
Object readProperty(String locator, Location location) { try { if (PropertyUtils.isReadable(_infrastructure, locator)) return PropertyUtils.read(_infrastructure, locator); return _infrastructure.getProperty(locator); } catch (Throwable ex) { _errorLog.error(ImplMessages.unableToReadInfrastructureProperty( locator, _infrastructure, ex), location, ex); return null; } }
private void invokeWorker(EnhancementOperation op, InjectSpecification spec) { try { InjectEnhancementWorker worker = (InjectEnhancementWorker) _injectWorkers.get(spec.getType()); if (worker == null) { _errorLog.error(EnhanceMessages.unknownInjectType(spec.getProperty(), spec.getType()), spec.getLocation(), null); return; } worker.performEnhancement(op, spec); } catch (Exception ex) { _errorLog.error(EnhanceMessages.errorAddingProperty(spec.getProperty(), op.getBaseClass(), ex), spec.getLocation(), ex); } }
public void observeChange(ObservedChangeEvent event) { IComponent component = event.getComponent(); String propertyName = event.getPropertyName(); if (_locked) { _log.error(RecordMessages.recorderLocked(propertyName, component), null, null); return; } PropertyPersistenceStrategy strategy = findStrategy(component, propertyName); if (strategy != null) strategy.store(_pageName, component.getIdPath(), propertyName, event.getNewValue()); }
public void observeChange(ObservedChangeEvent event) { IComponent component = event.getComponent(); String propertyName = event.getPropertyName(); if (_locked) { _log.error(RecordMessages.recorderLocked(propertyName, component), null, null); return; } PropertyPersistenceStrategy strategy = findStrategy(component, propertyName); if (strategy != null) strategy.store(_pageName, component.getIdPath(), propertyName, event.getNewValue()); }