[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Parsing more than one file

alesj do-not-reply at jboss.com
Mon Mar 31 11:30:17 EDT 2008


"alesj" wrote : 
  | This probably requires change into AbstractParsingDeployerWithOutput, to take more than one name?

Is there a default impl we want/can do with these two new methods - handling multiple names in AbstractParsingDeployerWithOutput:

  |          if (suffix == null)
  |          {
  |             if (hasSingleName())
  |                result = parse(unit, getName(), result);
  |             else
  |                result = parse(unit, names, result);
  |          }
  |          else
  |          {
  |             if (hasSingleName())
  |                result = parse(unit, getName(), suffix, result);
  |             else
  |                result = parse(unit, names, suffix, result);
  |          }
  | 
  | 
  |    protected T parse(DeploymentUnit unit, Set<String> names, T root) throws Exception
  |    {
  |       return null;
  |    }
  | 
  |    protected T parse(DeploymentUnit unit, Set<String> names, String suffix, T root) throws Exception
  |    {
  |       return null;
  |    }
  | 

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

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



More information about the jboss-dev-forums mailing list