private Long getStart(BeanContext beanContext) { if(start == null && startExpression == null) { return DEFAULT_START_INDEX; } else if(start != null) { return start; } else { Object result = startExpression.getValue(beanContext.getBeanMap()); if(!(result instanceof Long || result instanceof Integer)) { throw new SmooksException("The start expression must result in a Integer or a Long"); } return new Long(result.toString()); } }
private Long getStart(BeanContext beanContext) { if(start == null && startExpression == null) { return DEFAULT_START_INDEX; } else if(start != null) { return start; } else { Object result = startExpression.getValue(beanContext.getBeanMap()); if(!(result instanceof Long || result instanceof Integer)) { throw new SmooksException("The start expression must result in a Integer or a Long"); } return new Long(result.toString()); } }
private int getAmount(BeanContext beanContext) { if(amount == null && amountExpression == null) { return DEFAULT_AMOUNT; } else if(amount != null) { return amount; } else { Object result = amountExpression.getValue(beanContext.getBeanMap()); if(result instanceof Integer == false) { throw new SmooksException("The amount expression must result in a Integer"); } return (Integer) result; } }
private int getAmount(BeanContext beanContext) { if(amount == null && amountExpression == null) { return DEFAULT_AMOUNT; } else if(amount != null) { return amount; } else { Object result = amountExpression.getValue(beanContext.getBeanMap()); if(result instanceof Integer == false) { throw new SmooksException("The amount expression must result in a Integer"); } return (Integer) result; } }
private void wireObject(ExecutionContext executionContext) { BeanContext beanContext = executionContext.getBeanContext(); Map<String, Object> beanMap = beanContext.getBeanMap(); Object key = keyExtractor.getValue(beanMap); @SuppressWarnings("unchecked") //TODO: Optimize to use the BeanId object Map<Object, Object> map = (Map<Object, Object>) beanContext.getBean(mapBindingKey); Object record = beanContext.getBean(RECORD_BEAN); map.put(key, record); }
private void wireObject(ExecutionContext executionContext) { BeanContext beanContext = executionContext.getBeanContext(); Map<String, Object> beanMap = beanContext.getBeanMap(); Object key = keyExtractor.getValue(beanMap); @SuppressWarnings("unchecked") //TODO: Optimize to use the BeanId object Map<Object, Object> map = (Map<Object, Object>) beanContext.getBean(mapBindingKey); Object record = beanContext.getBean(RECORD_BEAN); map.put(key, record); }
private void wireObject(ExecutionContext executionContext) { BeanContext beanContext = executionContext.getBeanContext(); Map<String, Object> beanMap = beanContext.getBeanMap(); Object key = keyExtractor.getValue(beanMap); @SuppressWarnings("unchecked") // TODO: Optimize to use the BeanId object Map<Object, Object> map = (Map<Object, Object>) beanContext.getBean(mapBindingKey); Object record = beanContext.getBean(RECORD_BEAN); map.put(key, record); }
private void wireObject(ExecutionContext executionContext) { BeanContext beanContext = executionContext.getBeanContext(); Map<String, Object> beanMap = beanContext.getBeanMap(); Object key = keyExtractor.getValue(beanMap); @SuppressWarnings("unchecked") //TODO: Optimize to use the BeanId object Map<Object, Object> map = (Map<Object, Object>) beanContext.getBean(mapBindingKey); Object record = beanContext.getBean(RECORD_BEAN); map.put(key, record); }
private void wireObject(ExecutionContext executionContext) { BeanContext beanContext = executionContext.getBeanContext(); Map<String, Object> beanMap = beanContext.getBeanMap(); Object key = keyExtractor.getValue(beanMap); @SuppressWarnings("unchecked") //TODO: Optimize to use the BeanId object Map<Object, Object> map = (Map<Object, Object>) beanContext.getBean(mapBindingKey); Object record = beanContext.getBean(RECORD_BEAN); map.put(key, record); }
private void wireObject(ExecutionContext executionContext) { BeanContext beanContext = executionContext.getBeanContext(); Map<String, Object> beanMap = beanContext.getBeanMap(); Object key = keyExtractor.getValue(beanMap); @SuppressWarnings("unchecked") // TODO: Optimize to use the BeanId object Map<Object, Object> map = (Map<Object, Object>) beanContext.getBean(mapBindingKey); Object record = beanContext.getBean(RECORD_BEAN); map.put(key, record); }
private void wireObject(ExecutionContext executionContext) { BeanContext beanContext = executionContext.getBeanContext(); Map<String, Object> beanMap = beanContext.getBeanMap(); Object key = keyExtractor.getValue(beanMap); @SuppressWarnings("unchecked") //TODO: Optimize to use the BeanId object Map<Object, Object> map = (Map<Object, Object>) beanContext.getBean(mapBindingKey); Object record = beanContext.getBean(RECORD_BEAN); map.put(key, record); }
private void bindExpressionValue(ExecutionContext executionContext) { Map<String, Object> beanMap = executionContext.getBeanContext().getBeanMap(); Object dataObject = expression.getValue(beanMap); if(dataObject instanceof String) { populateAndSetPropertyValue((String) dataObject, executionContext); } else { populateAndSetPropertyValue(dataObject, executionContext); } }