Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Some mroe utils methods for managing and binding resources would be nice. Something like:
public static void bindExistingWithApiOrDefault(ResourceCreationSpecifier spec, ResourceManager resMgr, String bindToKey, Class<?> api, ExternalResourceDescription defaultResourceDesciption) throws ResourceInitializationException public static void bindInjectedResourceOrDefault(ResourceCreationSpecifier spec, ResourceManager resMgr, String bindToKey, Object resourceObject, ExternalResourceDescription defaultResourceDesciption) throws ResourceInitializationException public static Optional<String> findKeyForInterface(ResourceManager resMgr, Class<?> api) throws IllegalAccessException public static Optional<String> findKeyForResource(ResourceManager resMgr, Object resourceObject) throws IllegalAccessException