Peter Klügl created UIMA-6368:
---------------------------------
Summary: Extended uimaFIT support for binding resources
Key: UIMA-6368
URL: https://issues.apache.org/jira/browse/UIMA-6368
Project: UIMA
Issue Type: New Feature
Components: uimaFIT
Reporter: Peter Klügl
Some mroe utils methods for managing and binding resources would be nice.
Something like:
{code}
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
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)