Skip to content

Commit dbcd117

Browse files
committed
OpEnvironment.register: improve javadoc
1 parent 9aa4f35 commit dbcd117

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

scijava-ops-api/src/main/java/org/scijava/ops/api/OpEnvironment.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
package org.scijava.ops.api;
3131

32+
import java.lang.reflect.Method;
3233
import java.lang.reflect.Type;
3334
import java.util.Optional;
3435
import java.util.ServiceLoader;
@@ -361,8 +362,14 @@ default OpInfo opify(Class<?> opClass, String... names) {
361362
OpInfo opify(Class<?> opClass, double priority, String... names);
362363

363364
/**
364-
* Registers all elements within a {@code Object[]} to this
365-
* {@link OpEnvironment}
365+
* Registers all {@link OpInfo} derived from {@link Object}s within the passed
366+
* array. Elements within this {@link Object[]} might be:
367+
* <ul>
368+
* <li>{@link OpInfo}s</li>
369+
* <li>{@link java.util.Collection}s or arrays of the above</li>
370+
* <li>{@link Object}s (such as, but not limited to, {@link Class}es,
371+
* {@link Method}s, etc.) from which {@link OpInfo}s could be derived
372+
* </ul>
366373
*
367374
* @param objects the {@link Object}s that should be made discoverable to this
368375
* {@link OpEnvironment}

0 commit comments

Comments
 (0)