You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Peter Klügl (Jira)" <de...@uima.apache.org> on 2021/06/07 11:39:00 UTC

[jira] [Created] (UIMA-6368) Extended uimaFIT support for binding resources

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)