Improve performance of Dynamic Application Factories

Also added a method overload to provide a Package Name.
Useful for DX based second generation packages. Now each package can have their own bindings.
This commit is contained in:
wim
2023-09-01 15:39:25 +01:00
parent b658e6226b
commit a0fc1bd10d
22 changed files with 416 additions and 139 deletions
@@ -132,6 +132,11 @@ public virtual class fflib_AppBindingResolver
return this;
}
public fflib_IAppBindingResolver byPackageName(String packageName)
{
this.bindingToResolve.setPackageName(packageName);
return this;
}
/**
* Handles lazy loading of modules, if no custom module is configured (via addModule) the default module is returned