ValueProvider updates

This commit is contained in:
darksnake 2017-04-20 14:24:45 +03:00
parent 18cc9112b5
commit 05faaf1696
2 changed files with 6 additions and 4 deletions

View File

@ -31,9 +31,11 @@ import hep.dataforge.meta.Meta;
public class Numass {
public static Context buildContext(Context parent, Meta meta) {
Context numassContext = Global.getContext("numass").withParent(parent).withProperties(meta);
numassContext.pluginManager().load("inr.numass:numass");
return numassContext;
return Context.builder("NUMASS")
.parent(parent)
.properties(meta)
.plugin(NumassPlugin.class)
.build();
}
public static Context buildContext() {

View File

@ -72,7 +72,7 @@ public class NumassPlugin extends BasicPlugin {
public void attach(Context context) {
// StorageManager.buildFrom(context);
super.attach(context);
context.setIO(new NumassIO());
context.pluginManager().load(new NumassIO());
FitManager fm = context.getFeature(FitManager.class);
loadModels(fm.getModelManager());
loadMath(MathPlugin.buildFrom(context));