Skip to content

Extension Loader

papousek edited this page Mar 5, 2013 · 3 revisions

This extension provide automatized loading of user defined extensions.

Enter Point to Extension

Java Classs

Implementation module of your extension has to contain a class implementing org.sybila.parasim.core.LoadableExtension. This class registers classes of your extension which provide the given functionality:

package org.sybila.parasim.myextension;

public class MyExtension implements LoadableExtension {
    public void register(ExtensionBuilder builder) {
        builder.extension(FunctionalityRegistrar.class);
    }
}

List of Enter Points

To provide loadable extension you have to put a special org.sybila.parasim.core.LoadableExtension file to your implementation module:

.
|-- pom.xml
|-- src
    |-- main
        `-- resources
            `-- META-INF
                `-- services
                    `-- org.sybila.parasim.core.LoadableExtension

This special file should contain names of classes implementing org.sybila.parasim.core.LoadableExtension seperated by new line:

org.sybila.parasim.myextension.MyExtension