private Path(final String pattern) { Assert.notNull(pattern, "Path must not be null."); this.expression = new ParameterizedPatternImpl("[^/]+", pattern); for (PatternParameter parameter : this.expression.getParameterMap().values()) { where(parameter.getName()).bindsTo(Evaluation.property(parameter.getName())); } }
@SuppressWarnings("unchecked") protected <T extends PersistentObject<?>> T reload(final T entity) { Assert.notNull(entity.getId(), "Cannot reload @Entity with null ID [" + entity + "]"); return (T) findById(entity.getClass(), entity.getId()); }
private Scheme(final String pattern) { Assert.notNull(pattern, "Scheme must not be null."); this.expression = new RegexParameterizedPatternParser(pattern); }