@@ -117,7 +117,9 @@ public Context(final boolean empty) {
117117 * </p>
118118 *
119119 * @param serviceClasses A list of types that implement the {@link Service}
120- * interface (e.g., {@code DisplayService.class}).
120+ * interface (e.g., {@code DisplayService.class}). Compatible
121+ * services will be loaded in the order given,
122+ * <em>regardless of their relative priorities</em>.
121123 * @see #Context(Collection, PluginIndex, boolean)
122124 * @throws ClassCastException If any of the given arguments do not implement
123125 * the {@link Service} interface.
@@ -132,6 +134,8 @@ public Context(@SuppressWarnings("rawtypes") final Class... serviceClasses) {
132134 *
133135 * @param serviceClasses A collection of types that implement the
134136 * {@link Service} interface (e.g., {@code DisplayService.class}).
137+ * Compatible services will be loaded according to the order of the
138+ * collection, <em>regardless of their relative priorities</em>.
135139 * @see #Context(Collection, PluginIndex, boolean)
136140 */
137141 public Context (final Collection <Class <? extends Service >> serviceClasses ) {
@@ -144,8 +148,10 @@ public Context(final Collection<Class<? extends Service>> serviceClasses) {
144148 *
145149 * @param serviceClasses A collection of types that implement the
146150 * {@link Service} interface (e.g., {@code DisplayService.class}).
151+ * Compatible services will be loaded according to the order of the
152+ * collection, <em>regardless of their relative priorities</em>.
147153 * @param strict Whether context creation will fail fast when there is
148- * is an error instantiating a required service.
154+ * an error instantiating a required service.
149155 * @see #Context(Collection, PluginIndex, boolean)
150156 */
151157 public Context (final Collection <Class <? extends Service >> serviceClasses ,
@@ -155,10 +161,10 @@ public Context(final Collection<Class<? extends Service>> serviceClasses,
155161 }
156162
157163 /**
158- * Creates a new SciJava application with the specified PluginIndex. This
159- * allows a base set of available plugins to be defined, and is useful when
160- * plugins that would not be returned by the {@link PluginIndex}'s
161- * {@link org.scijava.plugin.PluginFinder} are desired.
164+ * Creates a new SciJava application context with all available services from
165+ * the specified PluginIndex. This allows a base set of available plugins to
166+ * be defined, and is useful when plugins that would not be returned by the
167+ * {@link PluginIndex}'s {@link org.scijava.plugin.PluginFinder} are desired.
162168 *
163169 * @param pluginIndex The plugin index to use when discovering and indexing
164170 * plugins. If you wish to completely control how services are
@@ -181,6 +187,8 @@ public Context(final PluginIndex pluginIndex) {
181187 *
182188 * @param serviceClasses A collection of types that implement the
183189 * {@link Service} interface (e.g., {@code DisplayService.class}).
190+ * Compatible services will be loaded according to the order of the
191+ * collection, <em>regardless of their relative priorities</em>.
184192 * @param pluginIndex The plugin index to use when discovering and indexing
185193 * plugins. If you wish to completely control how services are
186194 * discovered (i.e., use your own
@@ -212,14 +220,16 @@ public Context(final Collection<Class<? extends Service>> serviceClasses,
212220 *
213221 * @param serviceClasses A collection of types that implement the
214222 * {@link Service} interface (e.g., {@code DisplayService.class}).
223+ * Compatible services will be loaded according to the order of the
224+ * collection, <em>regardless of their relative priorities</em>.
215225 * @param pluginIndex The plugin index to use when discovering and indexing
216226 * plugins. If you wish to completely control how services are
217227 * discovered (i.e., use your own
218228 * {@link org.scijava.plugin.PluginFinder} implementation), then you
219229 * can pass a custom {@link PluginIndex} here. Passing null will
220230 * result in a default plugin index being constructed and used.
221231 * @param strict Whether context creation will fail fast when there is
222- * is an error instantiating a required service.
232+ * an error instantiating a required service.
223233 */
224234 public Context (final Collection <Class <? extends Service >> serviceClasses ,
225235 final PluginIndex pluginIndex , final boolean strict )
0 commit comments