Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 48078 invoked from network); 24 Sep 2009 21:34:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Sep 2009 21:34:46 -0000 Received: (qmail 79895 invoked by uid 500); 24 Sep 2009 21:34:46 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 79878 invoked by uid 99); 24 Sep 2009 21:34:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 21:34:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 21:34:44 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 713A6234C48C for ; Thu, 24 Sep 2009 14:34:24 -0700 (PDT) Message-ID: <46952659.1253828064462.JavaMail.jira@brutus> Date: Thu, 24 Sep 2009 14:34:24 -0700 (PDT) From: "Matthew T. Adams (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Updated: (JDO-638) Add annotations for instance callbacks In-Reply-To: <1683919450.1249678876307.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JDO-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matthew T. Adams updated JDO-638: --------------------------------- Attachment: InstanceCallbackAnnotations-3.patch The following proposes the ordering of annotated methods. I've added an order property to each of the annotations with javadoc as follows: /** * The order of execution of this method relative to other annotated * callback methods. A lower order value means that the annotated method has * a higher precedence among annotated methods, and a higher order, a lower * precedence. Order values need not be contiguous among annotated methods. * Methods that are implementations of the corresponding callback interface * method are always called first. The order value {@link Integer#MAX_VALUE} * , the default, signifies that the order is undefined among annotated * methods. If other annotated methods define an order, those methods will * be called before annotated methods with an undefined order. If other * annotated methods define equal order values, then methods annotated with * lower order values will be called before them, the methods with equal * order values will be called in an undefined order, and then any methods * with higher order values will be called after the methods with equal * order values have been called. If a method that represents an * implementation of the corresponding interface method carries this * annotation, the annotation and its order are ignored, and the interface * method is called first. If a subclass annotates a method with the same * order as an annotated method in its superclass hierarchy, then the * subclass's method is called first, otherwise the order values among all * annotated methods in the class and its superclass hierarchy determine * call order. */ int order() default Integer.MAX_VALUE; Thoughts? > Add annotations for instance callbacks > -------------------------------------- > > Key: JDO-638 > URL: https://issues.apache.org/jira/browse/JDO-638 > Project: JDO > Issue Type: Improvement > Components: api2 > Reporter: Matthew T. Adams > Priority: Minor > Attachments: InstanceCallbackAnnotations-1.0.patch, InstanceCallbackAnnotations-2.patch, InstanceCallbackAnnotations-3.patch > > > The current JDO annotations in javax.jdo.annotations do not include annotations equivalent to instance callbacks. We should add method annotations for each method in javax.jdo.InstanceCallback. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.