1.1 --- a/boot/src/main/java/net/java/html/boot/BrowserBuilder.java Sat Nov 29 22:25:40 2014 +0100
1.2 +++ b/boot/src/main/java/net/java/html/boot/BrowserBuilder.java Thu Dec 04 09:21:55 2014 +0100
1.3 @@ -65,6 +65,7 @@
1.4 import org.netbeans.html.boot.spi.Fn;
1.5 import org.netbeans.html.boot.spi.Fn.Presenter;
1.6 import org.netbeans.html.context.spi.Contexts;
1.7 +import org.netbeans.html.context.spi.Contexts.Id;
1.8 import org.netbeans.html.boot.impl.FindResources;
1.9 import org.netbeans.html.boot.impl.FnContext;
1.10 import org.netbeans.html.boot.impl.FnUtils;
1.11 @@ -121,6 +122,15 @@
1.12 /** Entry method to obtain a new browser builder. Follow by calling
1.13 * its instance methods like {@link #loadClass(java.lang.Class)} and
1.14 * {@link #loadPage(java.lang.String)}.
1.15 + * Since introduction of {@link Id technology identifiers} the
1.16 + * provided <code>context</code> objects are also passed to the
1.17 + * {@link BrwsrCtx context} when it is being
1.18 + * {@link Contexts#newBuilder(java.lang.Object...) created}
1.19 + * and can influence the selection
1.20 + * of available technologies
1.21 + * (like {@link org.netbeans.html.json.spi.Technology},
1.22 + * {@link org.netbeans.html.json.spi.Transfer} or
1.23 + * {@link org.netbeans.html.json.spi.WSTransfer}) by name.
1.24 *
1.25 * @param context any instances that should be available to the builder -
1.26 * implementation dependant
1.27 @@ -301,7 +311,7 @@
1.28 if (browserClass != null) {
1.29 browserClass[0] = newClazz;
1.30 }
1.31 - Contexts.Builder cb = Contexts.newBuilder();
1.32 + Contexts.Builder cb = Contexts.newBuilder(context);
1.33 if (!Contexts.fillInByProviders(newClazz, cb)) {
1.34 LOG.log(Level.WARNING, "Using empty technology for {0}", newClazz);
1.35 }