Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 82511 invoked from network); 3 Jul 2007 08:18:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2007 08:18:40 -0000 Received: (qmail 43409 invoked by uid 500); 3 Jul 2007 08:18:43 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 43384 invoked by uid 500); 3 Jul 2007 08:18:43 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 43375 invoked by uid 99); 3 Jul 2007 08:18:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 01:18:43 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2007 01:18:39 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 3DA531A981A; Tue, 3 Jul 2007 01:18:19 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r552711 - in /harmony/enhanced/classlib/branches/java6/modules/beans: META-INF/MANIFEST.MF src/main/java/java/beans/ConstructorProperties.java Date: Tue, 03 Jul 2007 08:18:19 -0000 To: commits@harmony.apache.org From: leoli@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070703081819.3DA531A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: leoli Date: Tue Jul 3 01:18:18 2007 New Revision: 552711 URL: http://svn.apache.org/viewvc?view=rev&rev=552711 Log: Apply patch for HARMONY-4316( [classlib][beans] Annotation java.beans.ConstructorProperties is missing ) Added: harmony/enhanced/classlib/branches/java6/modules/beans/src/main/java/java/beans/ConstructorProperties.java (with props) Modified: harmony/enhanced/classlib/branches/java6/modules/beans/META-INF/MANIFEST.MF Modified: harmony/enhanced/classlib/branches/java6/modules/beans/META-INF/MANIFEST.MF URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/beans/META-INF/MANIFEST.MF?view=diff&rev=552711&r1=552710&r2=552711 ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/beans/META-INF/MANIFEST.MF (original) +++ harmony/enhanced/classlib/branches/java6/modules/beans/META-INF/MANIFEST.MF Tue Jul 3 01:18:18 2007 @@ -16,6 +16,7 @@ java.awt.event;resolution:=optional, java.io, java.lang, + java.lang.annotation, java.lang.reflect, java.net, java.nio.charset;resolution:=optional, Added: harmony/enhanced/classlib/branches/java6/modules/beans/src/main/java/java/beans/ConstructorProperties.java URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/beans/src/main/java/java/beans/ConstructorProperties.java?view=auto&rev=552711 ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/beans/src/main/java/java/beans/ConstructorProperties.java (added) +++ harmony/enhanced/classlib/branches/java6/modules/beans/src/main/java/java/beans/ConstructorProperties.java Tue Jul 3 01:18:18 2007 @@ -0,0 +1,56 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package java.beans; + +import static java.lang.annotation.ElementType.CONSTRUCTOR; +import static java.lang.annotation.RetentionPolicy.RUNTIME; + +import java.lang.annotation.Documented; +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + +/** + * This annotation shows the correspondence between parameters of constructor + * and getter methods. For example: + * public class Bean { + * + * private final int x; + * + * @ConstructorProperties({"x"}) + * public Bean(int x) { + * this.x = x; + * } + * + * public int getX() { + * return x; + * } + * } + * + * Using annotation ConstructorProperties on Bean's contructor means parameter x + * should be retrieved by getX. + * + * @since 1.6 + */ +@Documented +@Target(value = CONSTRUCTOR) +@Retention(value = RUNTIME) +public @interface ConstructorProperties { + + public String[] value(); + +} Propchange: harmony/enhanced/classlib/branches/java6/modules/beans/src/main/java/java/beans/ConstructorProperties.java ------------------------------------------------------------------------------ svn:eol-style = native