I've been thinking for a while about adding remove() and replace()
methods to OrderedConfiguration and MappedConfiguration, and adding
other methods to OrderedConfiguration to allow minor tweaks to
dependencies.  It just hasn't been a priority.  It also leads to
ambiguities ... what if you remove and replace?  Or replace multiple
times?

On Tue, May 6, 2008 at 1:41 PM, Daniel Jue <[EMAIL PROTECTED]> wrote:
> 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")

Just something I've been trying to avoid; earlier T5 IoC looked more
like hivemind, with module ids tacked on the front of everything. I
eventually scrapped that, for simplicity, and got rid of private
services as well.  I think it was a step in the right direction.

>
>
>
>  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]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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

Reply via email to