use of pcgen.system.PluginLoader in project pcgen by PCGen.
the class ExportHandler method getPluginLoader.
public static PluginLoader getPluginLoader() {
return new PluginLoader() {
@Override
public void loadPlugin(Class<?> clazz) throws Exception {
Token pl = (Token) clazz.newInstance();
addToTokenMap(pl);
}
@Override
public Class[] getPluginClasses() {
return new Class[] { Token.class };
}
};
}
Aggregations