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 class Numass {
public static Context buildContext(Context parent, Meta meta) { public static Context buildContext(Context parent, Meta meta) {
Context numassContext = Global.getContext("numass").withParent(parent).withProperties(meta); return Context.builder("NUMASS")
numassContext.pluginManager().load("inr.numass:numass"); .parent(parent)
return numassContext; .properties(meta)
.plugin(NumassPlugin.class)
.build();
} }
public static Context buildContext() { public static Context buildContext() {

View File

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