Hi Richard, Thanks for pointing out the alternative.
I assume that implementing a SharedResourceObject could be the way to go? Cheers Sarah > On 23. Jan 2019, at 14:22, Richard Eckart de Castilho <[email protected]> wrote: > > Hi Sarah, > > no, there is not. > > There are ways which allow you to pass in an object via an > @ExternalResource. For example [1] illustrates how to pass an > AtomicInteger into a component. But note that this only works in > specific setups and is not in general supported by the UIMA Core > framework. > > Cheers, > > -- Richard > > [1] > https://github.com/apache/uima-uimafit/blob/master/uimafit-core/src/test/java/org/apache/uima/fit/factory/ExternalResourceFactoryTest.java#L190 > >> On 23. Jan 2019, at 13:24, Sarah <[email protected]> wrote: >> >> Hi, >> >> I want to pass on a configuration parameter to my annotator which is not of >> the below listed type (from the documentation): >> >> "array or collection types of primitive types (int, boolean, float, double), >> any enum types, any types that define a constructor accepting a single >> String (e.g. File), as well as, fields of the types Pattern and Localeā >> >> Is there any way to pass an object through @ConfigurationParameter to my >> annotator? >> >> Best, >> Sarah >
