Sounds the same as my issue with replacing the "Default" hibernate
config, which is stored in a OrderedConfiguration list.
(I ended up just putting a minimal dummy hibernate.cfg.xml in the
path, and then the configuration I made replaces the entire config
since it's loaded after the "Default".

Can you think of any unforseen issues if we were to have a remove feature?
I can only think of one: the Tapestry supplied *impl classes can't
rely on the default ones being there, since we may have removed them.

OTOH, using an Ordered set would cause issues with multiple modules
contributing configurations with the same string name.  (Unless we
adopt a convention of fully qualifying the configuration name, i.e.
"com.mycompany.myapp.Default")

On Tue, May 6, 2008 at 4:29 PM, Robin Helgelin <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  My tapestry5-acegi module contains this:
>
>     public static void contributeHttpServletRequestHandler(
>           OrderedConfiguration<HttpServletRequestFilter> configuration,
>           @InjectService("HttpSessionContextIntegrationFilter")
>  HttpServletRequestFilter httpSessionContextIntegrationFilter,
>           @InjectService("AuthenticationProcessingFilter")
>  HttpServletRequestFilter authenticationProcessingFilter,
>           @InjectService("RememberMeProcessingFilter")
>  HttpServletRequestFilter rememberMeProcessingFilter,
>           @InjectService("SecurityContextHolderAwareRequestFilter")
>  HttpServletRequestFilter
>           securityContextHolderAwareRequestFilter,
>           @InjectService("AnonymousProcessingFilter")
>  HttpServletRequestFilter anonymousProcessingFilter) {
>
>         configuration.add("acegiHttpSessionContextIntegrationFilter",
>  httpSessionContextIntegrationFilter, "before:acegi*");
>         configuration.add("acegiAuthenticationProcessingFilter",
>  authenticationProcessingFilter);
>         configuration.add("acegiRememberMeProcessingFilter",
>  rememberMeProcessingFilter);
>         configuration.add("acegiSecurityContextHolderAwareRequestFilter",
>  securityContextHolderAwareRequestFilter,
>                 "after:acegiRememberMeProcessingFilter");
>         configuration.add("acegiAnonymousProcessingFilter",
>  anonymousProcessingFilter,
>                 "after:acegiRememberMeProcessingFilter",
>                 "after:acegiAuthenticationProcessingFilter");
>     }
>
>  How would go ahead to override a single of these filters? It seems you
>  can't remove an entry from an OrderedConfiguration, and it also seems
>  like you can put in another object with the same name.
>
>  So, should I use the alias contribution instead when injection the
>  specific filter?
>
>  --
>   regards,
>   Robin
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to