You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2020/03/28 12:28:04 UTC

[uima-uimafit] 01/01: [UIMA-6209] Add section on changes to ExternalResourceFactory to uimaFIT v3 migration

This is an automated email from the ASF dual-hosted git repository.

rec pushed a commit to branch feature/UIMA-6209-Add-section-on-changes-to-ExternalResourceFactory-to-uimaFIT-v3-migration
in repository https://gitbox.apache.org/repos/asf/uima-uimafit.git

commit c2e506357709243f72b0d307e67dacfc058f2bc8
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Sat Mar 28 13:28:00 2020 +0100

    [UIMA-6209] Add section on changes to ExternalResourceFactory to uimaFIT v3 migration
    
    - Added info about the changes to the ExternalResourceFactory
---
 uimafit-docbook/src/docbook/tools.uimafit.migration.xml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/uimafit-docbook/src/docbook/tools.uimafit.migration.xml b/uimafit-docbook/src/docbook/tools.uimafit.migration.xml
index 9da8ac0..c221051 100644
--- a/uimafit-docbook/src/docbook/tools.uimafit.migration.xml
+++ b/uimafit-docbook/src/docbook/tools.uimafit.migration.xml
@@ -55,6 +55,21 @@
       file included in the release.</para>
     </formalpara>
     <formalpara>
+      <title>Changes to ExternalResourceFactory</title>
+      <para>Most methods in the <literal>ExternalResourceFactory</literal> have seen changes to 
+      their names and signature to avoid problematic ambiguities as well as to be shorter. In 
+      general, the <literal>External</literal> component of the method names was either
+      removed or replaced. So most methods called <literal>createExternalResourceDescription</literal>
+      are now called <literal>createResourceDescription</literal>. However, some have also been 
+      given a more specific name and/or a slightly different order of parameters. For example, this
+      method</para>
+      <programlisting>public static ExternalResourceDescription createExternalResourceDescription(
+  Class&lt;? extends SharedResourceObject&gt; aInterface, String aUrl, Object... aParams)</programlisting>
+      <para>was changed to</para>
+      <programlisting>public static ExternalResourceDescription createSharedResourceDescription(
+  String aUrl, Class&lt;? extends SharedResourceObject&gt; aInterface, Object... aParams)</programlisting>
+    </formalpara>
+    <formalpara>
       <title>Changes to logging</title>
       <para>UIMA v3 has is using SLF4J. As a consequence, the <literal>ExtendedLogger</literal>
       which uimaFIT had returned on calls to <literal>getLogger()</literal> has been removed