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

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

Anyway, if the flow controller should choose what to run and what not, then it 
sound very useful to do the initialization lazily. So the idea is that 
components defer calling initialize() until process() is called for the first 
time, right? And also that they skip destroy() and collectionProcessComplete() 
if initialized has never been called, right?

> 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