use of com.ramussoft.common.Plugin in project ramus by Vitaliy-Yakovchuk.
the class EngineFactory method createPluginFactory.
protected PluginFactory createPluginFactory(List<PluginProvider> list) {
ArrayList<Plugin> plugins = new ArrayList<Plugin>();
for (PluginProvider suit : list) {
plugins.addAll(suit.getPlugins());
}
plugins.add(new AbstractPlugin() {
@Override
public String getName() {
return "Log";
}
@Override
public Class getFunctionalInterface() {
return ILog.class;
}
@Override
public Object createFunctionalInterfaceObject(Engine engine, IEngine iEngine) {
return log;
}
});
PluginFactory factory = new PluginFactory(plugins);
return factory;
}
use of com.ramussoft.common.Plugin in project ramus by Vitaliy-Yakovchuk.
the class SimpleAttributePluginSuit method getPlugins.
@Override
public List<Plugin> getPlugins() {
List<Plugin> res = super.getPlugins();
res.add(1, new StandardAttributesPlugin());
res.add(new AutochangePlugin());
res.add(new EvalPlugin());
return res;
}
Aggregations