[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Temp include/exclude filter set in Module

adrian@jboss.org do-not-reply at jboss.com
Wed Jul 16 08:56:01 EDT 2008


The reason I mention using a different api, beside "ease of use"
is that currently the filters are only currently invoked to check whether
the vist() callback should be invoked, so introducing a different api
for the new behaviour with a backward compatiblity method


  |    /**
  |     * Visit the resources in this module
  |     * using the given filter
  |     * 
  |     * @param visitor the visitor
  |     * @param filter the filter
  |     */
  |    public void visit(ResourceVisitor visitor, ResourceFilter filter)
  |    {
  | -      throw new UnsupportedOperationException("The module " + getContextName() + " does not support filtering: " + getClass().getName());
  | +       visit(visitor, filter, null);
  |    }
  | 

would also avoid unintended changes to existing code.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164736#4164736

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164736



More information about the jboss-dev-forums mailing list