[ 
https://issues.apache.org/jira/browse/TRINIDAD-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845525#action_12845525
 ] 

Matthias Weßendorf commented on TRINIDAD-1757:
----------------------------------------------

Applying the actual decorator pattern just needs some extra lines in the 
ConfigParser.
Check for the "right" constructor to delegate....:
-If no such constructor is there, we just use the class provided in the 
trindiad-config.xml file, w/o decoration.
=> that way we have still backwards compatibility. 
-Otherwise, we decorate and stick in ours to the one provided by the customer.

> Allow (or support) decorator pattern for the UploadedFileProcessor
> ------------------------------------------------------------------
>
>                 Key: TRINIDAD-1757
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1757
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>            Reporter: Matthias Weßendorf
>
> Currently it is only possible to replace the entire UploadedFileProcessor, 
> with a custom one.
> A neat improvement (crap, this should not be a bug) would be supporting the 
> decorator pattern.
> The tricky part is that we need a buffer inside of the implementation of the 
> file
> that get's passed into the Processor.
> currently you can call only once the "getInputStream", so we need a buffer 
> here
> (that works with the impl's writeFile()/getInputStream()):
> There are some ways for that. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to