Search in sources :

Example 1 with ClassAssociationProcessor

use of blue.ui.nbutilities.lazyplugin.ClassAssociationProcessor in project blue by kunstmusik.

the class BarRendererCache method getInstance.

public static BarRendererCache getInstance() {
    if (instance == null) {
        instance = new BarRendererCache();
        List<LazyPlugin<BarRenderer>> plugins = LazyPluginFactory.loadPlugins("blue/score/barRenderers", BarRenderer.class, new ClassAssociationProcessor("scoreObjectType"));
        for (LazyPlugin<BarRenderer> plugin : plugins) {
            instance.barRenderersMap.put((Class) plugin.getMetaData("association"), plugin);
        }
    }
    return instance;
}
Also used : LazyPlugin(blue.ui.nbutilities.lazyplugin.LazyPlugin) ClassAssociationProcessor(blue.ui.nbutilities.lazyplugin.ClassAssociationProcessor)

Aggregations

ClassAssociationProcessor (blue.ui.nbutilities.lazyplugin.ClassAssociationProcessor)1 LazyPlugin (blue.ui.nbutilities.lazyplugin.LazyPlugin)1