createLPI method
AFLibraryProgrammingInterface
createLPI(
- AFLibraryProgrammingInterfaceID id,
- AFDispatcher dispatcher,
- AFConceptualStore targetStore
Implementation
AFLibraryProgrammingInterface createLPI(AFLibraryProgrammingInterfaceID id, AFDispatcher dispatcher, AFConceptualStore targetStore) {
final factory = coreDefinitions.lpiFactories[id];
if(factory == null) {
throw AFException("No factory for LPI $id");
}
final context = AFLibraryProgrammingInterfaceContext(
dispatcher: dispatcher,
targetStore: targetStore,
);
return factory(id, context);
}