[jboss-dev-forums] [Design the new POJO MicroContainer] - NoCopyNestedJarHandler usage

alesj do-not-reply at jboss.com
Mon Dec 24 18:59:12 EST 2007


I guess the NoCopyNestedJarHandler and NestedJarHandler should be equal?

  |          String flag = context.getOptions().get("useNoCopyJarHandler");
  |          boolean useNoCopyJarHandler = Boolean.valueOf(flag);
  | 
  |          if (useNoCopyJarHandler)
  |             vfh = new NoCopyNestedJarHandler(context, parent, jar, entry, url);
  |          else
  |             vfh = NestedJarHandler.create(context, parent, jar, entry, url, entryName);
  | 

We probably never tested this, since when I change the default behavior to useNoCopyJarHandler, all bunch of tests fail.

I'll fix this + add tests that check the two are equal.

Was there ever an idea to use context's options more API like, other than reading them from URI's query? 

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

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



More information about the jboss-dev-forums mailing list