[jboss-dev-forums] [Design of JBossXB] - @XmlElement(defaultValue="...")

scott.stark@jboss.org do-not-reply at jboss.com
Tue Oct 16 03:56:39 EDT 2007


I'm not seeing an element get populated with a default value if the property has this specified, for example:


  |  @XmlElement(defaultValue="org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock")
  |    public void setLockingPolicy(String lockingPolicy)
  |    {
  |       if (lockingPolicy == null)
  |          throw new IllegalArgumentException("Null lockingPolicy");
  |       this.lockingPolicy = lockingPolicy;
  |    }
  | 

Accessing the lockPolicy value after parsing a document without a locking-policy element does not produce the indicated default value. Shouldn't this?


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

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



More information about the jboss-dev-forums mailing list