Skip to content

Commit ce5af00

Browse files
committedJan 14, 2014
scijava-common is its own replacement for SezPoz now
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent d52056a commit ce5af00

File tree

7 files changed

+15
-16
lines changed

7 files changed

+15
-16
lines changed
 

‎README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
SciJava Common is a common library for SciJava software. It provides a
2-
plugin framework, with an extensible mechanism for service discovery, driven
3-
by the [SezPoz](https://github.com/jglick/sezpoz) library, so that plugins can
4-
be loaded dynamically. It is used by both
5-
[ImageJ](https://github.com/imagej/imagej) and
2+
plugin framework, with an extensible mechanism for service discovery, backed
3+
by its own annotation processor, so that plugins can be loaded dynamically.
4+
It is used by both [ImageJ](https://github.com/imagej/imagej) and
65
[SCIFIO](https://github.com/scifio/scifio).
76

87
This project also contains configuration files and scripts common to the

‎pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<version>2.8.0-SNAPSHOT</version>
1313

1414
<name>SciJava Common</name>
15-
<description>SciJava Common is a shared library for SciJava software. It provides a plugin framework, with an extensible mechanism for service discovery, driven by the SezPoz library, so that plugins can be loaded dynamically. It is used by both ImageJ and SCIFIO.</description>
15+
<description>SciJava Common is a shared library for SciJava software. It provides a plugin framework, with an extensible mechanism for service discovery, backed by its own annotation processor, so that plugins can be loaded dynamically. It is used by both ImageJ and SCIFIO.</description>
1616

1717
<dependencies>
1818
<dependency>

‎src/main/java/org/scijava/annotations/AnnotationCombiner.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
import org.scijava.util.FileUtils;
5151

5252
/**
53-
* Combines SezPoz annotations from all JAR files on the classpath.
53+
* Combines annotation indexes from all JAR files on the classpath.
5454
*
5555
* @author Curtis Rueden
5656
*/

‎src/main/java/org/scijava/plugin/DefaultPluginFinder.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@
4444
/**
4545
* Default SciJava plugin discovery mechanism.
4646
* <p>
47-
* It works by using SezPoz to scan the classpath for {@link Plugin}
48-
* annotations.
47+
* It works by scanning the classpath for {@link Plugin} annotations
48+
* previously indexed by scijava-common itself.
4949
* </p>
5050
*
5151
* @author Curtis Rueden
5252
*/
5353
public class DefaultPluginFinder implements PluginFinder {
5454

55-
/** Class loader to use when querying SezPoz. */
55+
/** Class loader to use when querying the annotation indexes. */
5656
private final ClassLoader customClassLoader;
5757

5858
// -- Constructors --
@@ -74,13 +74,13 @@ public HashMap<String, Throwable> findPlugins(
7474
final HashMap<String, Throwable> exceptions =
7575
new HashMap<String, Throwable>();
7676

77-
// load the SezPoz index
77+
// load the annotation indexes
7878
final ClassLoader classLoader = getClassLoader();
79-
final Index<Plugin> sezPozIndex =
79+
final Index<Plugin> annotationIndex =
8080
Index.load(Plugin.class, classLoader);
8181

8282
// create a PluginInfo object for each item in the index
83-
for (final IndexItem<Plugin> item : sezPozIndex) {
83+
for (final IndexItem<Plugin> item : annotationIndex) {
8484
try {
8585
final PluginInfo<?> info = createInfo(item, classLoader);
8686
plugins.add(info);

‎src/main/java/org/scijava/plugin/DefaultPluginService.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
/**
5454
* Default service for keeping track of available plugins.
5555
* <p>
56-
* Available plugins are discovered using a library called <a
57-
* href="http://sezpoz.java.net/">SezPoz</a>. Loading of the actual plugin
56+
* Available plugins are discovered using indexes generated by using
57+
* scijava-common as annotation processor. Loading of the actual plugin
5858
* classes can be deferred until a particular plugin is actually needed.
5959
* </p>
6060
* <p>

‎src/main/java/org/scijava/plugin/SciJavaPlugin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@
4848
* @see PluginService
4949
*/
5050
public interface SciJavaPlugin {
51-
// top-level marker interface for discovery via SezPoz
51+
// top-level marker interface for discovery via annotation indexes
5252
}

‎src/test/java/org/scijava/annotations/Simple.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import java.lang.annotation.Target;
4242

4343
/**
44-
* A simple annotation for use with SezPoz.
44+
* A simple annotation for use with our annotation processor.
4545
*
4646
* @author Johannes Schindelin
4747
*/

0 commit comments

Comments
 (0)
Please sign in to comment.