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
@@ -34,13 +34,17 @@ public interface fflib_IAppBindings
void addBinding(fflib_IAppBinding binding);
void addBindings(List<fflib_IAppBinding> bindings);
List<fflib_IAppBinding> getBindings();
Map<Object, Type> getImplementationByBindingObject();
Map<Type, Type> getImplementationByInterface();
Map<SObjectType, Type> getImplementationBySObjectType();
List<System.Type> getImplementations();
fflib_IAppBindings selectByObject(Object bindingObject);
fflib_IAppBindings selectBySequence(Decimal sequence);
fflib_IAppBindings selectByType(fflib_AppBindingType bindingType);
fflib_IAppBindings selectByInterfaceType(System.Type interfaceType);
fflib_IAppBindings selectBySharingMode(fflib_SharingMode sharingMode);
fflib_IAppBindings selectByNamespacePrefix(String namespacePrefix);
List<fflib_IAppBinding> getBindings();
List<System.Type> getImplementations();
fflib_IAppBindings selectByPackageName(String packageName);
}