activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Tully (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQ-1996) reinstate xbean autogeneration of avtivemq.xsd
Date Thu, 06 Nov 2008 11:49:19 GMT
reinstate xbean autogeneration of avtivemq.xsd 
-----------------------------------------------

                 Key: AMQ-1996
                 URL: https://issues.apache.org/activemq/browse/AMQ-1996
             Project: ActiveMQ
          Issue Type: Improvement
    Affects Versions: 5.1.0
            Reporter: Gary Tully
             Fix For: 5.3.0


the xbean reflection schema generator is currently disabled because the generated schema will
not validate with the default activemq.xml configuration.
The problem is the use of PropertyEditor eg in PolicyEntry:
{code}
    /**
     * @org.apache.xbean.Property propertyEditor="org.apache.activemq.util.MemoryPropertyEditor"
     */
    public void setMemoryLimit(long memoryLimit) {
        this.memoryLimit = memoryLimit;
    }
{code}
The propertyEditor allows a String to be transformed into the long value but the schema correctly
required a long value and will not validate with a String.
The xbean schema generator probably needs to take account of the propertyEditor annotation
and substitute a String value in the schema for the memoryLimit (in this case) attribute.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message