[jboss-dev-forums] [Design of POJO Server] - Re: ServiceMetaData has the most recent dependencies/attribu

adrian@jboss.org do-not-reply at jboss.com
Thu Feb 21 06:59:53 EST 2008


"anil.saldhana at jboss.com" wrote : 
  | An issue that exists for addDependencies/addAttributes api addition to ServiceMetaData is that the internal data structures are Lists (rather than Sets) and hence there can be duplication of dependencies. [/quote
  | 
  | That is to preserve the legacy semantic that it always did the
  | "depends optional-attribute" and attribute processing directly from the
  | xml file in the order listed.
  | There could be some stupid mbean that expects the attributes in a particular order
  | rather than using create to handle the multiple attribute processing, e.g.
  | 
  | 
  |   | public void setAttribute1(String one) { this.one = one }
  |   | public void setAttribute2(String two) 
  |   | { 
  |   |    doSomething(one, two);
  |   | }
  |   | 
  | 
  | Anyway it's not difficult for a new addDepednency() method to check
  | whether the list already contains the value trying to be inserted.

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

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



More information about the jboss-dev-forums mailing list