[jboss-svn-commits] JBoss Common SVN: r4336 - jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Apr 27 11:26:22 EDT 2010


Author: david.lloyd at jboss.com
Date: 2010-04-27 11:26:21 -0400 (Tue, 27 Apr 2010)
New Revision: 4336

Removed:
   jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/Translation.java
   jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/Translations.java
Modified:
   jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/LogMessage.java
   jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/Message.java
   jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/MessageBundle.java
   jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/MessageLogger.java
Log:
Updates from last email exchange

Modified: jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/LogMessage.java
===================================================================
--- jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/LogMessage.java	2010-04-26 15:56:48 UTC (rev 4335)
+++ jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/LogMessage.java	2010-04-27 15:26:21 UTC (rev 4336)
@@ -33,7 +33,7 @@
  *
  * @author <a href="mailto:david.lloyd at redhat.com">David M. Lloyd</a>
  */
- at Retention(RetentionPolicy.SOURCE)
+ at Retention(RetentionPolicy.CLASS)
 @Target(ElementType.METHOD)
 public @interface LogMessage {
 

Modified: jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/Message.java
===================================================================
--- jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/Message.java	2010-04-26 15:56:48 UTC (rev 4335)
+++ jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/Message.java	2010-04-27 15:26:21 UTC (rev 4336)
@@ -34,7 +34,7 @@
  * @author <a href="mailto:david.lloyd at redhat.com">David M. Lloyd</a>
  */
 @Target(ElementType.METHOD)
- at Retention(RetentionPolicy.SOURCE)
+ at Retention(RetentionPolicy.CLASS)
 public @interface Message {
 
     /**

Modified: jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/MessageBundle.java
===================================================================
--- jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/MessageBundle.java	2010-04-26 15:56:48 UTC (rev 4335)
+++ jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/MessageBundle.java	2010-04-27 15:26:21 UTC (rev 4336)
@@ -22,11 +22,18 @@
 
 package org.jboss.i18ntool.annotation;
 
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
 /**
  * Signify that an interface is a message bundle interface.
  *
  * @author <a href="mailto:david.lloyd at redhat.com">David M. Lloyd</a>
  */
+ at Target(ElementType.TYPE)
+ at Retention(RetentionPolicy.CLASS)
 public @interface MessageBundle {
 
     /**

Modified: jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/MessageLogger.java
===================================================================
--- jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/MessageLogger.java	2010-04-26 15:56:48 UTC (rev 4335)
+++ jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/MessageLogger.java	2010-04-27 15:26:21 UTC (rev 4336)
@@ -33,7 +33,7 @@
  *
  * @author <a href="mailto:david.lloyd at redhat.com">David M. Lloyd</a>
  */
- at Retention(RetentionPolicy.SOURCE)
+ at Retention(RetentionPolicy.CLASS)
 @Target(ElementType.TYPE)
 public @interface MessageLogger {
 

Deleted: jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/Translation.java
===================================================================
--- jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/Translation.java	2010-04-26 15:56:48 UTC (rev 4335)
+++ jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/Translation.java	2010-04-27 15:26:21 UTC (rev 4336)
@@ -1,52 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2010, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.i18ntool.annotation;
-
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * A single translation of a message.
- *
- * @author <a href="mailto:david.lloyd at redhat.com">David M. Lloyd</a>
- */
- at Target({})
- at Retention(RetentionPolicy.SOURCE)
-public @interface Translation {
-
-    /**
-     * The locale, in the form <code>"aa[_bb[_cc]]"</code> where "aa" is the language (e.g. "en"), "bb" is the country (e.g. "US"), and
-     * "cc" is the variant.
-     *
-     * @return the locale
-     */
-    String locale();
-
-    /**
-     * The translation of this message.
-     *
-     * @return the translation
-     */
-    String message();
-}

Deleted: jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/Translations.java
===================================================================
--- jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/Translations.java	2010-04-26 15:56:48 UTC (rev 4335)
+++ jboss-i18ntool/trunk/src/main/java/org/jboss/i18ntool/annotation/Translations.java	2010-04-27 15:26:21 UTC (rev 4336)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2010, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.i18ntool.annotation;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Assigns multiple translations of a message to a method.
- *
- * @author <a href="mailto:david.lloyd at redhat.com">David M. Lloyd</a>
- */
- at Target(ElementType.METHOD)
- at Retention(RetentionPolicy.SOURCE)
-public @interface Translations {
-
-    /**
-     * The translations.
-     *
-     * @return the translations
-     */
-    Translation[] value();
-}



More information about the jboss-svn-commits mailing list