[ 
https://issues.apache.org/jira/browse/UIMA-5032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15399477#comment-15399477
 ] 

Richard Eckart de Castilho commented on UIMA-5032:
--------------------------------------------------

Why don't you just programmatically compose your pipelines? Depending on dev vs 
production, you can include certain components or not. 

Alternatively, if you want a component to act lazily, you could simply not 
implement the initialize() method and instead in the process() method do 
something like "if (!initialized) { lazyInitialize() }".

> Support feature toggle using lazy annotator initialization 
> -----------------------------------------------------------
>
>                 Key: UIMA-5032
>                 URL: https://issues.apache.org/jira/browse/UIMA-5032
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>            Reporter: Eddie Epstein
>
> Feature toggle is a useful technique to have a single source stream for both 
> production and development activities. One approach for UIMA to help support 
> feature toggle would be to do component initialization only on the first 
> process call. Lazy initialization would allow flow controller configuration 
> to easily turn components on and off.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to