Author: tchemit Date: 2011-04-30 15:49:33 +0200 (Sat, 30 Apr 2011) New Revision: 2272 Url: http://nuiton.org/repositories/revision/jaxx/2272 Log: add a simplier constructor on MultiJxPathDecorator Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/decorator/MultiJXPathDecorator.java Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/decorator/MultiJXPathDecorator.java =================================================================== --- trunk/jaxx-runtime/src/main/java/jaxx/runtime/decorator/MultiJXPathDecorator.java 2011-04-28 12:35:03 UTC (rev 2271) +++ trunk/jaxx-runtime/src/main/java/jaxx/runtime/decorator/MultiJXPathDecorator.java 2011-04-30 13:49:33 UTC (rev 2272) @@ -30,10 +30,10 @@ import java.util.Comparator; /** - * TODO + * {@link JXPathDecorator} implementation with multiple contexts. * + * @param <O> type of data to decorate * @author tchemit <chemit@codelutin.com> - * @param <O> type of data to decorate * @see Decorator * @since 1.7.2 (was previously {@code jaxx.runtime.MultiJXPathDecorator}) */ @@ -73,6 +73,22 @@ } } + protected MultiJXPathDecorator( + Class<O> internalClass, + String expression, + String separator, + String separatorReplacement) throws IllegalArgumentException, + NullPointerException { + this(internalClass, + expression, + separator, + separatorReplacement, + DecoratorUtils.<O>createMultiJXPathContext(expression, + separator, + separatorReplacement) + ); + } + public void setContextIndex(int index) { ensureContextIndex(this, index); setContext(contexts[index]);