shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan D. Cabrera" <l...@toolazydogs.com>
Subject Re: Multiple instances of the same Filter class across filter chain definitions
Date Mon, 27 Jun 2011 05:19:44 GMT

On Jun 26, 2011, at 10:10 PM, Les Hazlewood wrote:

> This looks pretty cool Alan.  We could also do this in INI by
> introducing a meta concept:
> 
> [main]
> ...
> myFilter = com.foobar.whatever[scope=prototype]
> 
> where 'scope=singleton' would be the default to retain current
> behavior.  This would turn 'myFilter' (and any of its property
> settings) into a 'definition' object and not the object itself.  Then
> each time it is instantiated (per filter chain perhaps), the
> definition is translated into an instance at that time.

Yeah, this is better than specifying it in an annotation.


Regards,
Alan


Mime
View raw message