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;
}
Aggregations