[webbeans-commits] Webbeans SVN: r666 - ri/trunk.
by webbeans-commits@lists.jboss.org
Author: dallen6
Date: 2008-12-22 05:32:32 -0500 (Mon, 22 Dec 2008)
New Revision: 666
Modified:
ri/trunk/pom.xml
Log:
Putting back the compiler source and target versions to 1.5 for right now. This still works with Java 5 or 6 compilers.
Modified: ri/trunk/pom.xml
===================================================================
--- ri/trunk/pom.xml 2008-12-22 10:11:25 UTC (rev 665)
+++ ri/trunk/pom.xml 2008-12-22 10:32:32 UTC (rev 666)
@@ -206,8 +206,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
- <source>1.6</source>
- <target>1.6</target>
+ <source>1.5</source>
+ <target>1.5</target>
</configuration>
</plugin>
<plugin>
16 years
[webbeans-commits] Webbeans SVN: r665 - doc/trunk/reference/zh-CN/modules.
by webbeans-commits@lists.jboss.org
Author: alartin
Date: 2008-12-22 05:11:25 -0500 (Mon, 22 Dec 2008)
New Revision: 665
Modified:
doc/trunk/reference/zh-CN/modules/part1.po
Log:
Modified: doc/trunk/reference/zh-CN/modules/part1.po
===================================================================
--- doc/trunk/reference/zh-CN/modules/part1.po 2008-12-22 10:10:47 UTC (rev 664)
+++ doc/trunk/reference/zh-CN/modules/part1.po 2008-12-22 10:11:25 UTC (rev 665)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-22 10:45+0800\n"
+"Last-Translator: Sean Wu <alartin(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -16,214 +16,162 @@
#. Tag: para
#: part1.xml:5
#, no-c-format
-msgid ""
-"The Web Beans (JSR-299) specification defines a set of services for the Java "
-"EE environment that makes applications much easier to develop. Web Beans "
-"layers an enhanced lifecycle and interaction model over existing Java "
-"component types including JavaBeans and Enterprise Java Beans. As a "
-"complement to the traditional Java EE programming model, the Web Beans "
-"services provide:"
-msgstr ""
+msgid "The Web Beans (JSR-299) specification defines a set of services for the Java EE environment that makes applications much easier to develop. Web Beans layers an enhanced lifecycle and interaction model over existing Java component types including JavaBeans and Enterprise Java Beans. As a complement to the traditional Java EE programming model, the Web Beans services provide:"
+msgstr "The Web Beans (JSR-299)规范为Java EE环境定义了一套服务以便开发者能够更轻松地开发应用。Web Beans在现有的包括JavaBeans和企业JavaBeans在内的Java组件类型之上增强了生命周期和交互的模型层。作为传统的Java EE编程模型的补充,Web Beans服务提供了:"
#. Tag: para
#: part1.xml:14
#, no-c-format
-msgid ""
-"an improved lifecycle for stateful components, bound to well-defined "
-"<emphasis>contexts</emphasis>,"
-msgstr ""
+msgid "an improved lifecycle for stateful components, bound to well-defined <emphasis>contexts</emphasis>,"
+msgstr "一个为有状态组件而改良的并且绑定到定义明确的 <emphasis>上下文</emphasis>上的生命周期,"
#. Tag: para
#: part1.xml:18
#, no-c-format
msgid "a typesafe approach to <emphasis>dependency injection</emphasis>,"
-msgstr ""
+msgstr "一个类型安全的<emphasis>依赖注入</emphasis>方法,"
#. Tag: para
#: part1.xml:21
#, no-c-format
-msgid ""
-"interaction via an <emphasis>event notification</emphasis> facility, and"
-msgstr ""
+msgid "interaction via an <emphasis>event notification</emphasis> facility, and"
+msgstr "通过 <emphasis>事件通知</emphasis> 机制实现的交互,并且"
#. Tag: para
#: part1.xml:25
#, no-c-format
-msgid ""
-"a better approach to binding <emphasis>interceptors</emphasis> to "
-"components, along with a new kind of interceptor, called a "
-"<emphasis>decorator</emphasis>, that is more appropriate for use in solving "
-"business problems."
-msgstr ""
+msgid "a better approach to binding <emphasis>interceptors</emphasis> to components, along with a new kind of interceptor, called a <emphasis>decorator</emphasis>, that is more appropriate for use in solving business problems."
+msgstr "一个更好的将<emphasis>拦截器</emphasis>绑定到组件上的方法,同时提供了一个名为<emphasis>装饰器(decorator)</emphasis>的新型拦截器,这种拦截器更加适合解决业务问题。"
#. Tag: para
#: part1.xml:32
#, no-c-format
-msgid ""
-"Dependency injection, together with contextual lifecycle management, saves "
-"the user of an unfamiliar API from having to ask and answer the following "
-"questions:"
-msgstr ""
+msgid "Dependency injection, together with contextual lifecycle management, saves the user of an unfamiliar API from having to ask and answer the following questions:"
+msgstr "依赖注入和具备上下文的生命周期管理节省了开发者出于对接口的不熟悉而不得不处理下列问题所浪费时间:"
#. Tag: para
#: part1.xml:38
#, no-c-format
msgid "what is the lifecycle of this object?"
-msgstr ""
+msgstr "这个对象的生命周期是什么?"
#. Tag: para
#: part1.xml:41
#, no-c-format
msgid "how many simultaneous clients can it have?"
-msgstr ""
+msgstr "它能够有多少个并发的客户端"
#. Tag: para
#: part1.xml:44
#, no-c-format
msgid "is it multithreaded?"
-msgstr ""
+msgstr "它是多线程的么?"
#. Tag: para
#: part1.xml:47
#, no-c-format
msgid "where can I get one from?"
-msgstr ""
+msgstr "我能从哪里得到一个对象?"
#. Tag: para
#: part1.xml:50
#, no-c-format
msgid "do I need to explicitly destroy it?"
-msgstr ""
+msgstr "我需要显式地销毁它么?"
#. Tag: para
#: part1.xml:53
#, no-c-format
msgid "where should I keep my reference to it when I'm not using it directly?"
-msgstr ""
+msgstr "当我不再直接使用它的时候,我需要将它的引用保存到哪里?"
#. Tag: para
#: part1.xml:57
#, no-c-format
-msgid ""
-"how can I add an indirection layer, so that the implementation of this "
-"object can vary at deployment time?"
-msgstr ""
+msgid "how can I add an indirection layer, so that the implementation of this object can vary at deployment time?"
+msgstr "我如何才能添加一个间接层,以便在部署的时候可以更换这个对象的不同实现?"
#. Tag: para
#: part1.xml:61
#, no-c-format
msgid "how should I go about sharing this object between other objects?"
-msgstr ""
+msgstr "我应该如何在其他对象中共享这个对象?"
#. Tag: para
#: part1.xml:65
#, no-c-format
-msgid ""
-"A Web Bean specifies only the type and semantics of other Web Beans it "
-"depends upon. It need not be aware of the actual lifecycle, concrete "
-"implementation, threading model or other clients of any Web Bean it depends "
-"upon. Even better, the concrete implementation, lifecycle and threading "
-"model of a Web Bean it depends upon may vary according to the deployment "
-"scenario, without affecting any client."
-msgstr ""
+msgid "A Web Bean specifies only the type and semantics of other Web Beans it depends upon. It need not be aware of the actual lifecycle, concrete implementation, threading model or other clients of any Web Bean it depends upon. Even better, the concrete implementation, lifecycle and threading model of a Web Bean it depends upon may vary according to the deployment scenario, without affecting any client."
+msgstr "一个Web Bean仅仅需要指定它所依赖的其他Web Bean的类型和语义。它不需要知道他所依赖的任何Web Bean的实际生命周期,具体的实现,线程模型或者这个Web Bean的其他客户端。更棒的是,它所依赖的Web Bean的具体实现和生命周期,线程模型可以根据部署场景而更改,却丝毫不影响任何客户端。"
#. Tag: para
#: part1.xml:72
#, no-c-format
-msgid ""
-"Events, interceptors and decorators enhance the <emphasis>loose-coupling</"
-"emphasis> that is inherent in this model:"
-msgstr ""
+msgid "Events, interceptors and decorators enhance the <emphasis>loose-coupling</emphasis> that is inherent in this model:"
+msgstr "事件,拦截器和装饰器增强了这个模型固有的<emphasis>松耦合</emphasis>特性:"
#. Tag: para
#: part1.xml:77
#, no-c-format
-msgid ""
-"<emphasis>event notifications</emphasis> decouple event producers from event "
-"consumers,"
-msgstr ""
+msgid "<emphasis>event notifications</emphasis> decouple event producers from event consumers,"
+msgstr "<emphasis>事件通知</emphasis>将事件的消费者和事件的产生者解耦,"
#. Tag: para
#: part1.xml:81
#, no-c-format
-msgid ""
-"<emphasis>interceptors</emphasis> decouple technical concerns from business "
-"logic, and"
-msgstr ""
+msgid "<emphasis>interceptors</emphasis> decouple technical concerns from business logic, and"
+msgstr "<emphasis>拦截器</emphasis>将技术关注点从业务逻辑中解耦,并且"
#. Tag: para
#: part1.xml:85
#, no-c-format
-msgid ""
-"<emphasis>decorators</emphasis> allow business concerns to be "
-"compartmentalized."
-msgstr ""
+msgid "<emphasis>decorators</emphasis> allow business concerns to be compartmentalized."
+msgstr "<emphasis>装饰器</emphasis>允许开发者划分业务关注点。"
#. Tag: para
#: part1.xml:90
#, no-c-format
-msgid ""
-"Most importantly, Web Beans provides all these facilities in a "
-"<emphasis>typesafe</emphasis> way. Web Beans never uses string-based "
-"identifiers to determine how collaborating objects fit together. And XML, "
-"though it remains an option, is rarely used. Instead, Web Beans uses the "
-"typing information that is already available in the Java object model, "
-"together with a new pattern, called <emphasis>binding annotations</"
-"emphasis>, to wire together Web Beans, their dependencies, their "
-"interceptors and decorators and their event consumers."
-msgstr ""
+msgid "Most importantly, Web Beans provides all these facilities in a <emphasis>typesafe</emphasis> way. Web Beans never uses string-based identifiers to determine how collaborating objects fit together. And XML, though it remains an option, is rarely used. Instead, Web Beans uses the typing information that is already available in the Java object model, together with a new pattern, called <emphasis>binding annotations</emphasis>, to wire together Web Beans, their dependencies, their interceptors and decorators and their event consumers."
+msgstr "最重要的是,Web Beans以一种<emphasis>类型安全</emphasis>的方式提供所有的特性。Web Beans从来不使用基于字符串的标识符来决定交互的对象如何关联在一起。至于XML, 虽然它仍旧是一个选项,但也可以几乎不使用。取而代之,Web Bean使用Java对象模型的类型信息和一种新的<emphasis>绑定注释</emphasis>模式将Web Beans和它们的依赖以及拦截器,装饰器和事件消费者关联在一起。"
#. Tag: para
#: part1.xml:100
#, no-c-format
-msgid ""
-"The Web Beans services are general and apply to the following types of "
-"components that exist in the Java EE environment:"
-msgstr ""
+msgid "The Web Beans services are general and apply to the following types of components that exist in the Java EE environment:"
+msgstr "Web Beans服务是相当普遍的,可以应用在下列Java EE环境中的组件类型中:"
#. Tag: para
#: part1.xml:105
#, no-c-format
msgid "all JavaBeans,"
-msgstr ""
+msgstr "所有的JavaBeans,"
#. Tag: para
#: part1.xml:108
#, no-c-format
msgid "all EJBs, and"
-msgstr ""
+msgstr "所有的EJB, 和"
#. Tag: para
#: part1.xml:111
#, no-c-format
msgid "all Servlets."
-msgstr ""
+msgstr "所有的Servlet。"
#. Tag: para
#: part1.xml:115
#, no-c-format
-msgid ""
-"Web Beans even provides the necessary integration points so that other kinds "
-"of components defined by future Java EE specifications or by non-standard "
-"frameworks may be cleanly integrated with Web Beans, take advantage of the "
-"Web Beans services, and interact with any other kind of Web Bean."
-msgstr ""
+msgid "Web Beans even provides the necessary integration points so that other kinds of components defined by future Java EE specifications or by non-standard frameworks may be cleanly integrated with Web Beans, take advantage of the Web Beans services, and interact with any other kind of Web Bean."
+msgstr "Web Beans甚至提供了必要的整合点,以便未来的Java EE规范或者其他非标准的框架中的不同组件能够和Web Beans轻松整合,使用Web Beans服务以及和任何其他类型的Web Bean交互。"
#. Tag: para
#: part1.xml:120
#, no-c-format
-msgid ""
-"Web Beans was influenced by a number of existing Java frameworks, including "
-"Seam, Guice and Spring. However, Web Beans has its own very distinct "
-"character: more typesafe than Seam, more stateful and less XML-centric than "
-"Spring, more web and enterprise-application capable than Guice."
-msgstr ""
+msgid "Web Beans was influenced by a number of existing Java frameworks, including Seam, Guice and Spring. However, Web Beans has its own very distinct character: more typesafe than Seam, more stateful and less XML-centric than Spring, more web and enterprise-application capable than Guice."
+msgstr "Web Beans受到了包括Seam, Guice和Spring在内的很多现有的Java框架的影响。然而,Web Beans具有自己鲜明的特性:在类型安全方面优于Seam,比Spring更加具备状态和使用更少的XML, 比Guice更加具备Web和企业应用的能力。"
#. Tag: para
#: part1.xml:125
#, no-c-format
-msgid ""
-"Most importantly, Web Beans is a JCP standard that integrates cleanly with "
-"Java EE, and with any Java SE environment where embeddable EJB Lite is "
-"available."
-msgstr ""
+msgid "Most importantly, Web Beans is a JCP standard that integrates cleanly with Java EE, and with any Java SE environment where embeddable EJB Lite is available."
+msgstr "最重要的是,Web Beans是一个JCP标准,能够干净地整合到Java EE中。Web Beans也可以整合到任何使用轻量的内嵌EJB的Java SE环境中。"
+
16 years
[webbeans-commits] Webbeans SVN: r664 - doc/trunk/reference/zh-CN/modules.
by webbeans-commits@lists.jboss.org
Author: alartin
Date: 2008-12-22 05:10:47 -0500 (Mon, 22 Dec 2008)
New Revision: 664
Modified:
doc/trunk/reference/zh-CN/modules/Book_Info.po
Log:
Modified: doc/trunk/reference/zh-CN/modules/Book_Info.po
===================================================================
--- doc/trunk/reference/zh-CN/modules/Book_Info.po 2008-12-22 10:09:39 UTC (rev 663)
+++ doc/trunk/reference/zh-CN/modules/Book_Info.po 2008-12-22 10:10:47 UTC (rev 664)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:29+0000\n"
-"PO-Revision-Date: 2008-12-19 20:29+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-22 09:36+0800\n"
+"Last-Translator: Sean Wu <alartin(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -17,40 +17,35 @@
#: Book_Info.xml:6
#, no-c-format
msgid "Introduction to Web Beans"
-msgstr ""
+msgstr "Web Beans介绍"
#. Tag: subtitle
#: Book_Info.xml:7
#, no-c-format
-msgid ""
-"The new Java standard for dependency injection and contextual state "
-"management"
-msgstr ""
+msgid "The new Java standard for dependency injection and contextual state management"
+msgstr "关于依赖注入和上下文状态管理的Java新规范"
#. Tag: author
#: Book_Info.xml:10
#, no-c-format
msgid "<firstname>Gavin</firstname> <surname>King</surname>"
-msgstr ""
+msgstr "<firstname>Gavin</firstname> <surname>King</surname>"
#. Tag: affiliation
#: Book_Info.xml:13
#, no-c-format
-msgid ""
-"<jobtitle>Web Beans (JSR-299) specification lead</jobtitle> <orgname>Red Hat "
-"Middleware LLC</orgname>"
-msgstr ""
+msgid "<jobtitle>Web Beans (JSR-299) specification lead</jobtitle> <orgname>Red Hat Middleware LLC</orgname>"
+msgstr "<jobtitle>Web Beans (JSR-299) 规范领导人</jobtitle> <orgname>红帽中间件有限责任公司</orgname>"
#. Tag: author
#: Book_Info.xml:19
#, no-c-format
msgid "<firstname>Pete</firstname> <surname>Muir</surname>"
-msgstr ""
+msgstr "<firstname>Pete</firstname> <surname>Muir</surname>"
#. Tag: affiliation
#: Book_Info.xml:22
#, no-c-format
-msgid ""
-"<jobtitle>Web Beans (JSR-299) Reference Implementation lead</jobtitle> "
-"<orgname>Red Hat Middleware LLC</orgname>"
-msgstr ""
+msgid "<jobtitle>Web Beans (JSR-299) Reference Implementation lead</jobtitle> <orgname>Red Hat Middleware LLC</orgname>"
+msgstr "<jobtitle>Web Beans (JSR-299) 参考实现领导人</jobtitle> <orgname>红帽中间件有限责任公司</orgname>"
+
16 years
[webbeans-commits] Webbeans SVN: r663 - doc/trunk/reference/zh-CN.
by webbeans-commits@lists.jboss.org
Author: alartin
Date: 2008-12-22 05:09:39 -0500 (Mon, 22 Dec 2008)
New Revision: 663
Modified:
doc/trunk/reference/zh-CN/master.po
Log:
Modified: doc/trunk/reference/zh-CN/master.po
===================================================================
--- doc/trunk/reference/zh-CN/master.po 2008-12-22 10:08:08 UTC (rev 662)
+++ doc/trunk/reference/zh-CN/master.po 2008-12-22 10:09:39 UTC (rev 663)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:29+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-22 09:29+0800\n"
+"Last-Translator: Sean Wu <alartin(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -17,22 +17,23 @@
#: master.xml:12
#, no-c-format
msgid "Using contextual objects"
-msgstr ""
+msgstr "使用具备上下文的对象"
#. Tag: title
#: master.xml:25
#, no-c-format
msgid "Developing loosely-coupled code"
-msgstr ""
+msgstr "开发松耦合的代码"
#. Tag: title
#: master.xml:35
#, no-c-format
msgid "Making the most of strong typing"
-msgstr ""
+msgstr "最大程度地使用强类型"
#. Tag: title
#: master.xml:46
#, no-c-format
msgid "Web Beans and the Java EE ecosystem"
-msgstr ""
+msgstr "Web Beans和Java EE生态系统"
+
16 years
[webbeans-commits] Webbeans SVN: r662 - ri/trunk.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-22 05:08:08 -0500 (Mon, 22 Dec 2008)
New Revision: 662
Removed:
ri/trunk/build.xml
Log:
delete build.xml
Deleted: ri/trunk/build.xml
===================================================================
--- ri/trunk/build.xml 2008-12-22 10:06:15 UTC (rev 661)
+++ ri/trunk/build.xml 2008-12-22 10:08:08 UTC (rev 662)
@@ -1,137 +0,0 @@
-<?xml version="1.0"?>
-<project name="DistributionBuilder" default="dist" basedir="." xmlns:artifact="urn:maven-artifact-ant">
-
- <path id="maven-ant-tasks.classpath" path="lib/maven-ant-tasks.jar" />
- <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpathref="maven-ant-tasks.classpath" />
-
- <property name="maven.dir" location="${basedir}/lib/maven" />
-
- <property name="dist.dir" value="dist/webbeans-${version}" />
- <property name="dist.wb.lib.dir" value="${dist.dir}/lib/webbeans" />
- <property name="dist.doc.dir" value="${dist.dir}/doc" />
- <property name="dist.src.dir" value="${dist.dir}/src" />
- <property name="dist.src.doc.dir" value="${dist.src.dir}/reference" />
-
- <property name="refdoc.dir" value="reference-guide" />
-
- <target name="dist" description="Build the distribution">
-
- <fail unless="version" message="You must specify the version with -Dversion=1.2.3" />
-
- <maven target="clean" basedir="${basedir}" />
- <maven target="clean" basedir="${refdoc.dir}" />
- <delete dir="${basedir}/jboss-as/target" />
- <delete dir="${basedir}/webbeans-ri/test-output" />
- <delete dir="${basedir}/webbeans-ri/ObjectStore" />
- <delete dir="${dist.dir}" failonerror="false"/>
- <mkdir dir="${dist.dir}"/>
-
- <mkdir dir="${dist.src.dir}" />
-
- <copy todir="${dist.src.dir}">
- <fileset dir="${basedir}">
- <include name="webbeans-ri/**" />
- <include name="webbeans-ri-spi/**" />
- <include name="webbeans-api/**" />
- <include name="pom.xml" />
- <exclude name="**/.settings/**" />
- <exclude name="**/.classpath" />
- <exclude name="**/.project" />
- </fileset>
- </copy>
-
- <copy todir="${dist.src.doc.dir}">
- <fileset dir="${refdoc.dir}">
- <exclude name="**/.settings/**" />
- <exclude name="**/.classpath" />
- <exclude name="**/.project" />
- <exclude name="**/*.pdf" />
- </fileset>
- </copy>
-
- <copy todir="${dist.dir}">
- <fileset dir="${basedir}">
- <include name="examples/**"/>
- <include name="jboss-as/**"/>
- <include name="lib/**"/>
- <include name="readme.txt"/>
- </fileset>
- </copy>
-
- <maven target="package" basedir="${refdoc.dir}" />
- <mkdir dir="${dist.doc.dir}" />
- <copy todir="${dist.doc.dir}">
- <fileset dir="${refdoc.dir}/target/docbook/publish" />
- </copy>
- <maven target="clean" basedir="${refdoc.dir}" />
-
- <maven target="install" basedir="${basedir}" />
- <artifact:dependencies filesetId="webbeans.fileset" versionsId="webbeans.versions">
- <dependency groupId="org.jboss.webbeans" artifactId="webbeans-ri" version="${version}"/>
- <dependency groupId="org.jboss.webbeans" artifactId="webbeans-ri-spi" version="${version}"/>
- <dependency groupId="org.jboss.webbeans" artifactId="webbeans-api" version="${version}"/>
- <remoteRepository id="repository.jboss.org" url="http://repository.jboss.org/maven2" />
- </artifact:dependencies>
-
- <delete dir="target" failonerror="false"/>
- <mkdir dir="target" />
- <copy todir="target">
- <fileset refid="webbeans.fileset"/>
- <chainedmapper>
- <mapper classpathref="maven-ant-tasks.classpath" classname="org.apache.maven.artifact.ant.VersionMapper" from="${webbeans.versions}" to="flatten" />
- <flattenmapper />
- </chainedmapper>
- </copy>
-
- <mkdir dir="${dist.wb.lib.dir}" />
-
- <copy todir="${dist.wb.lib.dir}">
- <fileset dir="target">
- <include name="webbeans-*.jar" />
- <include name="google*.jar" />
- </fileset>
- </copy>
- <delete dir="target" failonerror="false"/>
-
- <zip destfile="webbeans-${version}.zip">
- <fileset dir="${basedir}/dist">
- <include name="webbeans-${version}/**" />
- </fileset>
- </zip>
- </target>
-
- <target name="deploy-dist" depends="dist">
- <maven target="deploy:deploy-file" basedir="${basedir}">
- <arg line="-DpomFile=${basedir}/pom.xml" />
- <arg line="-Dpackaging=zip" />
- <arg line="-Dversion=${version}" />
- <arg line="-Dfile=${basedir}/webbeans-${version}.zip" />
- <arg line="-Durl=dav:https://snapshots.jboss.org/maven2" />
- <arg line="-DrepositoryId=snapshots.jboss.org" />
- <arg line="-DuniqueVersion=false" />
- </maven>
- </target>
-
- <macrodef name="maven">
- <attribute name="target" />
- <attribute name="basedir" />
- <element name="args" implicit="true" optional="true" />
- <sequential>
- <java classname="org.codehaus.classworlds.Launcher" fork="true" dir="@{basedir}">
- <classpath>
- <fileset dir="${maven.dir}/boot">
- <include name="*.jar" />
- </fileset>
- <fileset dir="${maven.dir}/bin">
- <include name="*.*" />
- </fileset>
- </classpath>
- <sysproperty key="classworlds.conf" value="${maven.dir}/bin/m2.conf" />
- <sysproperty key="maven.home" value="${maven.dir}" />
- <args />
- <arg line="@{target}" />
- </java>
- </sequential>
- </macrodef>
-
-</project>
\ No newline at end of file
16 years
[webbeans-commits] Webbeans SVN: r661 - in ri/trunk: webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap and 4 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-12-22 05:06:15 -0500 (Mon, 22 Dec 2008)
New Revision: 661
Added:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Fires.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Obtains.java
Removed:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observable.java
ri/trunk/webbeans-api/src/main/java/javax/webbeans/Obtainable.java
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/event/EventImpl.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/AnnotatedMethod.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/AuroraFinch.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/BlueFacedParrotFinch.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/EuropeanGoldfinch.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/OrangeCheekedWaxbill.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/StarFinch.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/BlackRumpedWaxbill.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/CommonWaxbill.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/GoldbreastWaxbill.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/JavaSparrow.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/OwlFinch.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/SweeWaxbill.java
Log:
Change @Observable -> @Fires, @Obtainable -> @Obtains
Copied: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Fires.java (from rev 659, ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observable.java)
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Fires.java (rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Fires.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, Red Hat Middleware LLC, and individual contributors
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* Licensed 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 javax.webbeans;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Annotates a variable to be injected with an Event object that can be fired and
+ * observed by observer methods
+ *
+ * @author David Allen
+ * @author Gavin King
+ */
+
+@BindingType
+@Retention(RUNTIME)
+@Target( { TYPE, METHOD, FIELD, PARAMETER })
+@Documented
+public @interface Fires
+{
+}
Property changes on: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Fires.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observable.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observable.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Observable.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -1,43 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2008, Red Hat Middleware LLC, and individual contributors
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* Licensed 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 javax.webbeans;
-
-import static java.lang.annotation.ElementType.FIELD;
-import static java.lang.annotation.ElementType.METHOD;
-import static java.lang.annotation.ElementType.PARAMETER;
-import static java.lang.annotation.ElementType.TYPE;
-import static java.lang.annotation.RetentionPolicy.RUNTIME;
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-/**
- * Annotates a variable to be injected with an Event object that can be fired and
- * observed by observer methods
- *
- * @author David Allen
- * @author Gavin King
- */
-
-@BindingType
-@Retention(RUNTIME)
-@Target( { TYPE, METHOD, FIELD, PARAMETER })
-@Documented
-public @interface Observable
-{
-}
Deleted: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Obtainable.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Obtainable.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Obtainable.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -1,41 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2008, Red Hat Middleware LLC, and individual contributors
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* Licensed 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 javax.webbeans;
-
-import static java.lang.annotation.ElementType.FIELD;
-import static java.lang.annotation.ElementType.METHOD;
-import static java.lang.annotation.ElementType.PARAMETER;
-import static java.lang.annotation.ElementType.TYPE;
-import static java.lang.annotation.RetentionPolicy.RUNTIME;
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.Retention;
-import java.lang.annotation.Target;
-
-/**
- * Annotates a variable to be injected with an Instance object.
- *
- * @author Gavin King
- */
-
-@BindingType
-@Retention(RUNTIME)
-@Target( { TYPE, METHOD, FIELD, PARAMETER })
-@Documented
-public @interface Obtainable
-{
-}
Copied: ri/trunk/webbeans-api/src/main/java/javax/webbeans/Obtains.java (from rev 659, ri/trunk/webbeans-api/src/main/java/javax/webbeans/Obtainable.java)
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/Obtains.java (rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/Obtains.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -0,0 +1,41 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2008, Red Hat Middleware LLC, and individual contributors
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* Licensed 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 javax.webbeans;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+/**
+ * Annotates a variable to be injected with an Instance object.
+ *
+ * @author Gavin King
+ */
+
+@BindingType
+@Retention(RUNTIME)
+@Target( { TYPE, METHOD, FIELD, PARAMETER })
+@Documented
+public @interface Obtains
+{
+}
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -42,10 +42,10 @@
import javax.webbeans.DefinitionException;
import javax.webbeans.Initializer;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
import javax.webbeans.Observer;
import javax.webbeans.Observes;
-import javax.webbeans.Obtainable;
+import javax.webbeans.Obtains;
import org.jboss.webbeans.CurrentManager;
import org.jboss.webbeans.ManagerImpl;
@@ -200,18 +200,18 @@
}
for (AnnotatedMethod<Object> initializerMethod : bean.getInitializerMethods())
{
- for (AnnotatedParameter<Object> parameter : initializerMethod.getAnnotatedParameters(Observable.class))
+ for (AnnotatedParameter<Object> parameter : initializerMethod.getAnnotatedParameters(Fires.class))
{
registerEvent(parameter, beans);
}
}
for (AnnotatedItem injectionPoint : bean.getInjectionPoints())
{
- if ( injectionPoint.isAnnotationPresent(Observable.class) )
+ if ( injectionPoint.isAnnotationPresent(Fires.class) )
{
registerEvent(injectionPoint, beans);
}
- if ( injectionPoint.isAnnotationPresent(Obtainable.class) )
+ if ( injectionPoint.isAnnotationPresent(Obtains.class) )
{
InstanceBean<Object, Field> instanceBean = createInstanceBean(injectionPoint, manager);
beans.add(instanceBean);
@@ -333,7 +333,7 @@
@SuppressWarnings("unchecked")
private void registerEvent(AnnotatedItem injectionPoint, Set<AbstractBean<?, ?>> beans)
{
- if ( injectionPoint.isAnnotationPresent(Observable.class) )
+ if ( injectionPoint.isAnnotationPresent(Fires.class) )
{
EventBean<Object, Method> eventBean = createEventBean(injectionPoint, manager);
beans.add(eventBean);
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/event/EventImpl.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/event/EventImpl.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/event/EventImpl.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -23,7 +23,7 @@
import java.util.Set;
import javax.webbeans.Event;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
import javax.webbeans.Observer;
import javax.webbeans.manager.Manager;
@@ -41,7 +41,7 @@
public class EventImpl<T> extends FacadeImpl<T> implements Event<T>
{
@SuppressWarnings("unchecked")
- private static final Set<Class<? extends Annotation>> FILTERED_ANNOTATIONS = new HashSet<Class<? extends Annotation>>(Arrays.asList(Observable.class));
+ private static final Set<Class<? extends Annotation>> FILTERED_ANNOTATIONS = new HashSet<Class<? extends Annotation>>(Arrays.asList(Fires.class));
/**
* Constructor
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/AnnotatedMethod.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/AnnotatedMethod.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/AnnotatedMethod.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -30,7 +30,7 @@
import javax.webbeans.BeforeTransactionCompletion;
import javax.webbeans.Disposes;
import javax.webbeans.IfExists;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
import javax.webbeans.Observes;
import javax.webbeans.manager.Manager;
@@ -44,7 +44,7 @@
public interface AnnotatedMethod<T> extends AnnotatedItem<T, Method>
{
@SuppressWarnings("unchecked")
- public static final Set<Class<? extends Annotation>> MAPPED_PARAMETER_ANNOTATIONS = new HashSet<Class<? extends Annotation>>(Arrays.asList(Disposes.class, Observes.class, Observable.class, IfExists.class, BeforeTransactionCompletion.class, AfterTransactionCompletion.class, AfterTransactionFailure.class, AfterTransactionSuccess.class));
+ public static final Set<Class<? extends Annotation>> MAPPED_PARAMETER_ANNOTATIONS = new HashSet<Class<? extends Annotation>>(Arrays.asList(Disposes.class, Observes.class, Fires.class, IfExists.class, BeforeTransactionCompletion.class, AfterTransactionCompletion.class, AfterTransactionFailure.class, AfterTransactionSuccess.class));
/**
* Gets the abstracted parameters of the method
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/AuroraFinch.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/AuroraFinch.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/AuroraFinch.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -2,7 +2,7 @@
import javax.webbeans.Event;
import javax.webbeans.Initializer;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
import org.jboss.webbeans.test.beans.StarFinch.Mess;
@@ -12,7 +12,7 @@
private Mess someMess;
@Initializer
- public AuroraFinch(@Observable Event<Mess> eventObject)
+ public AuroraFinch(@Fires Event<Mess> eventObject)
{
// Create a new mess and fire the event for it
someMess = new Mess();
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/BlueFacedParrotFinch.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/BlueFacedParrotFinch.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/BlueFacedParrotFinch.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -1,12 +1,12 @@
package org.jboss.webbeans.test.beans;
import javax.webbeans.Event;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
import javax.webbeans.Observer;
public class BlueFacedParrotFinch
{
- @Observable
+ @Fires
private Event<String> simpleEvent;
public void methodThatFiresEvent()
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/EuropeanGoldfinch.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/EuropeanGoldfinch.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/EuropeanGoldfinch.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -5,7 +5,7 @@
import javax.webbeans.ConversationScoped;
import javax.webbeans.Destructor;
import javax.webbeans.Event;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
import org.jboss.webbeans.test.beans.StarFinch.Mess;
@@ -20,7 +20,7 @@
}
@Destructor @Remove
- public void remove(@Observable Event<Mess> eventObject)
+ public void remove(@Fires Event<Mess> eventObject)
{
// Create a new mess and fire the event for it
someMess = new Mess();
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/OrangeCheekedWaxbill.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/OrangeCheekedWaxbill.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/OrangeCheekedWaxbill.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -2,7 +2,7 @@
import javax.webbeans.Event;
import javax.webbeans.Initializer;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
import javax.webbeans.RequestScoped;
import org.jboss.webbeans.test.beans.StarFinch.Mess;
@@ -18,7 +18,7 @@
}
@Initializer
- public void theInitializerMethod(@Observable Event<Mess> eventObject)
+ public void theInitializerMethod(@Fires Event<Mess> eventObject)
{
// Create a new mess and fire the event for it
someMess = new Mess();
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/StarFinch.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/StarFinch.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/StarFinch.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -2,7 +2,7 @@
import javax.webbeans.Event;
import javax.webbeans.Named;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
import javax.webbeans.Produces;
import javax.webbeans.RequestScoped;
@@ -19,7 +19,7 @@
}
@Produces
- public Mess producerOfMesses(@Observable Event<Mess> messEvent)
+ public Mess producerOfMesses(@Fires Event<Mess> messEvent)
{
Mess newMess = new Mess();
messEvent.fire(newMess);
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/BlackRumpedWaxbill.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/BlackRumpedWaxbill.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/BlackRumpedWaxbill.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -1,11 +1,11 @@
package org.jboss.webbeans.test.beans.broken;
import javax.webbeans.Event;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
public class BlackRumpedWaxbill
{
- @Observable
+ @Fires
private Event simpleEvent;
public void eliminateWarning()
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/CommonWaxbill.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/CommonWaxbill.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/CommonWaxbill.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -2,11 +2,11 @@
import java.util.ArrayList;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
public class CommonWaxbill
{
- @Observable
+ @Fires
private ArrayList<String> simpleEvent;
public void eliminateWarning()
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/GoldbreastWaxbill.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/GoldbreastWaxbill.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/GoldbreastWaxbill.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -1,11 +1,11 @@
package org.jboss.webbeans.test.beans.broken;
import javax.webbeans.Event;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
public class GoldbreastWaxbill
{
- @Observable
+ @Fires
private Event<?> simpleEvent;
public void eliminateWarning()
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/JavaSparrow.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/JavaSparrow.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/JavaSparrow.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -3,11 +3,11 @@
import java.util.ArrayList;
import javax.webbeans.Event;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
public class JavaSparrow
{
- @Observable
+ @Fires
private Event<ArrayList<String>> simpleEvent;
public void eliminateWarning()
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/OwlFinch.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/OwlFinch.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/OwlFinch.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -1,14 +1,14 @@
package org.jboss.webbeans.test.beans.broken;
import javax.webbeans.Event;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
import javax.webbeans.Observer;
import org.jboss.webbeans.test.bindings.AnimalStereotypeAnnotationLiteral;
public class OwlFinch
{
- @Observable
+ @Fires
private Event<String> simpleEvent;
public void methodThatFiresEvent()
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/SweeWaxbill.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/SweeWaxbill.java 2008-12-22 09:49:42 UTC (rev 660)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/beans/broken/SweeWaxbill.java 2008-12-22 10:06:15 UTC (rev 661)
@@ -1,7 +1,7 @@
package org.jboss.webbeans.test.beans.broken;
import javax.webbeans.Event;
-import javax.webbeans.Observable;
+import javax.webbeans.Fires;
import javax.webbeans.Observer;
import org.jboss.webbeans.test.annotations.Role;
@@ -9,7 +9,7 @@
public class SweeWaxbill
{
- @Observable @Role("Admin")
+ @Fires @Role("Admin")
private Event<String> simpleEvent;
public void methodThatFiresEvent()
16 years
[webbeans-commits] Webbeans SVN: r659 - doc/trunk/reference/it-IT/modules.
by webbeans-commits@lists.jboss.org
Author: nico.ben
Date: 2008-12-22 01:08:53 -0500 (Mon, 22 Dec 2008)
New Revision: 659
Modified:
doc/trunk/reference/it-IT/modules/intro.po
Log:
WBRI-69: Italian translation for Web Beans
Modified: doc/trunk/reference/it-IT/modules/intro.po
===================================================================
--- doc/trunk/reference/it-IT/modules/intro.po 2008-12-22 05:38:03 UTC (rev 658)
+++ doc/trunk/reference/it-IT/modules/intro.po 2008-12-22 06:08:53 UTC (rev 659)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-21 13:53+0100\n"
+"PO-Revision-Date: 2008-12-22 07:07+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -24,7 +24,7 @@
#: intro.xml:6
#, no-c-format
msgid "So you're already keen to get started writing your first Web Bean? Or perhaps you're skeptical, wondering what kinds of hoops the Web Beans specification will make you jump through! The good news is that you've probably already written and used hundreds, perhaps thousands of Web Beans. You might not even remember the first Web Bean you wrote."
-msgstr "Non vedi l'ora di iniziare a scrivere il primo Web Beans? O forse sei un pò scettico e ti domandi in quali cerchi ti farà saltare dentro la specifica Web Beans! La buona notizia è che probabilmente hai già scritto e usato centinaia, forse migliaia di Web Beans. Si potrebbe addirittura non ricordare il primo Web Bean scritto."
+msgstr "Non vedi l'ora di iniziare a scrivere il primo Web Beans? O forse sei un pò scettico e ti domandi quali virtuosismi ti farà fare la specifica Web Beans! La buona notizia è che probabilmente hai già scritto e usato centinaia, forse migliaia di Web Beans. Potresti addirittura non ricordare il primo Web Bean scritto."
#. Tag: title
#: intro.xml:13
@@ -172,7 +172,7 @@
#: intro.xml:51
#, no-c-format
msgid "Alternatively, we may obtain an instance by directly calling a method of the Web Bean manager:"
-msgstr ""
+msgstr "In alternativa si può ottenere un'istanza chiamando direttamente un metodo del manager Web Bean:"
#. Tag: programlisting
#: intro.xml:54
@@ -524,13 +524,13 @@
#: intro.xml:267
#, no-c-format
msgid "We'll talk more about scopes in <xref linkend=\"scopescontexts\"/>."
-msgstr ""
+msgstr "Approfondiremo gli scope in <xref linkend=\"scopescontexts\"/>."
#. Tag: title
#: intro.xml:272
#, no-c-format
msgid "Web Bean names and Unified EL"
-msgstr ""
+msgstr "Nomi Web Bean e Unified EL"
#. Tag: para
#: intro.xml:274
@@ -552,7 +552,7 @@
#: intro.xml:280
#, no-c-format
msgid "Now we can easily use the Web Bean in any JSF or JSP page:"
-msgstr ""
+msgstr "Ora si può facilmente utilizzare il Web Bean in ogni pagina JSF o JSP:"
#. Tag: programlisting
#: intro.xml:282
@@ -570,7 +570,7 @@
#: intro.xml:284
#, no-c-format
msgid "It's even easier to just let the name be defaulted by the Web Bean manager:"
-msgstr ""
+msgstr "Si può anche lasciare assegnare al manager Web Bean il nome di default:"
#. Tag: programlisting
#: intro.xml:287
@@ -586,7 +586,7 @@
#: intro.xml:289
#, no-c-format
msgid "In this case, the name defaults to <literal>shoppingCart</literal>—the unqualified class name, with the first character changed to lowercase."
-msgstr ""
+msgstr "In questo caso il nome di default è <literal>shoppingCart</literal>—il nome della classe non qualificata, con il primo carattere messo in minuscolo."
#. Tag: title
#: intro.xml:295
@@ -604,7 +604,7 @@
#: intro.xml:302
#, no-c-format
msgid "It remains possible to directly specify the interceptor class via use of the <literal>@Interceptors</literal> annotation:"
-msgstr ""
+msgstr "Rimane la possibilità di specificare direttamente la classe interceptor tramite l'uso dell'annotazione <literal>@Interceptors</literal>."
#. Tag: programlisting
#: intro.xml:305
@@ -856,7 +856,7 @@
#: intro.xml:437
#, no-c-format
msgid "The result of a producer method is injected just like any other Web Bean."
-msgstr ""
+msgstr "Il risultato del metodo produttore è iniettato come qualsiasi altro Web Bean."
#. Tag: programlisting
#: intro.xml:439
16 years
[webbeans-commits] Webbeans SVN: r658 - ri/trunk/webbeans-api/src/main/java/javax/webbeans/manager.
by webbeans-commits@lists.jboss.org
Author: gavin.king(a)jboss.com
Date: 2008-12-22 00:38:03 -0500 (Mon, 22 Dec 2008)
New Revision: 658
Modified:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Manager.java
Log:
minor
Modified: ri/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Manager.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Manager.java 2008-12-22 03:36:48 UTC (rev 657)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/manager/Manager.java 2008-12-22 05:38:03 UTC (rev 658)
@@ -35,7 +35,7 @@
public interface Manager
{
- public <T> Set<Bean<T>> resolveByType(Class<T> type, Annotation... bindings);
+ public <T> Set<Bean<T>> resolveByType(Class<T> apiType, Annotation... bindings);
public <T> Set<Bean<T>> resolveByType(TypeLiteral<T> apiType, Annotation... bindings);
16 years
[webbeans-commits] Webbeans SVN: r657 - ri/trunk/webbeans-api/src/main/java/javax/webbeans.
by webbeans-commits@lists.jboss.org
Author: gavin.king(a)jboss.com
Date: 2008-12-21 22:36:48 -0500 (Sun, 21 Dec 2008)
New Revision: 657
Added:
ri/trunk/webbeans-api/src/main/java/javax/webbeans/InjectionPoint.java
Log:
Add InjectionPoint API
Added: ri/trunk/webbeans-api/src/main/java/javax/webbeans/InjectionPoint.java
===================================================================
--- ri/trunk/webbeans-api/src/main/java/javax/webbeans/InjectionPoint.java (rev 0)
+++ ri/trunk/webbeans-api/src/main/java/javax/webbeans/InjectionPoint.java 2008-12-22 03:36:48 UTC (rev 657)
@@ -0,0 +1,19 @@
+package javax.webbeans;
+
+import java.lang.annotation.Annotation;
+import java.lang.reflect.Member;
+import java.lang.reflect.Type;
+import java.util.Set;
+
+import javax.webbeans.manager.Bean;
+
+public interface InjectionPoint {
+ public Type getType();
+ public Set<Annotation> getBindingTypes();
+ public Object getInstance();
+ public Bean<?> getBean();
+ public Member getMember();
+ public <T extends Annotation> T getAnnotation(Class<T> annotationType);
+ public Annotation[] getAnnotations();
+ public boolean isAnnotationPresent(Class<? extends Annotation> annotationType);
+}
16 years
[webbeans-commits] Webbeans SVN: r656 - ri/trunk.
by webbeans-commits@lists.jboss.org
Author: dallen6
Date: 2008-12-21 16:32:25 -0500 (Sun, 21 Dec 2008)
New Revision: 656
Modified:
ri/trunk/pom.xml
Log:
Changed source and target version for compilation to Java 6
Modified: ri/trunk/pom.xml
===================================================================
--- ri/trunk/pom.xml 2008-12-21 20:42:11 UTC (rev 655)
+++ ri/trunk/pom.xml 2008-12-21 21:32:25 UTC (rev 656)
@@ -206,8 +206,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
- <source>1.5</source>
- <target>1.5</target>
+ <source>1.6</source>
+ <target>1.6</target>
</configuration>
</plugin>
<plugin>
16 years