[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Registering schema with JBossXB

adrian@jboss.org do-not-reply at jboss.com
Thu Mar 27 08:58:48 EDT 2008


"alesj" wrote : "alesj" wrote : But should there be a remove/unregister on uninstall of deployer?
  |   | 
  | Looking at DefaultSchemaResolver.
  | Shouldn't this
  | 
  |   |    /** Namespace to JBossXBBuilder binding class */
  |   |    private WeakHashMap<String, Class> uriToClass = new WeakHashMap<String, Class>();
  |   |    /** SchemaLocation to JBossXBBuilder binding class */
  |   |    private WeakHashMap<String, Class> schemaLocationToClass = new WeakHashMap<String, Class>();
  |   | 
  | be WeakValueHashMap?

No. Because nothing will be holding a reference to the class other than the
resolver normally. Therefore it would get garbage collected and the config removed.

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

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



More information about the jboss-dev-forums mailing list