[webbeans-commits] Webbeans SVN: r1062 - doc/trunk/reference/ko-KR.
by webbeans-commits@lists.jboss.org
Author: eukim
Date: 2009-01-18 08:52:20 -0500 (Sun, 18 Jan 2009)
New Revision: 1062
Modified:
doc/trunk/reference/ko-KR/interceptors.po
Log:
updated
Modified: doc/trunk/reference/ko-KR/interceptors.po
===================================================================
--- doc/trunk/reference/ko-KR/interceptors.po 2009-01-18 13:36:47 UTC (rev 1061)
+++ doc/trunk/reference/ko-KR/interceptors.po 2009-01-18 13:52:20 UTC (rev 1062)
@@ -8,7 +8,7 @@
"Project-Id-Version: interceptors\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-06 11:30+0000\n"
-"PO-Revision-Date: 2009-01-18 23:35+1000\n"
+"PO-Revision-Date: 2009-01-18 23:51+1000\n"
"Last-Translator: Eunju Kim <eukim(a)redhat.com>\n"
"Language-Team: Korean <ko(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -551,12 +551,11 @@
#. Tag: para
#: interceptors.xml:175
#, no-c-format
-#, fuzzy
msgid ""
"One limitation of the Java language support for annotations is the lack of "
"annotation inheritance. Really, annotations should have reuse built in, to "
"allow this kind of thing to work:"
-msgstr "어노테이션 용 Java 언어 지원의 한계는 어노테이션 상속의 부족입니다. 실제로 어노테이션은 "
+msgstr "어노테이션에 대한 Java 언어 지원 한계는 어노테이션 상속의 결여입니다. 실제로 어노테이션은 재사용 기능이 내장되어 있어 이러한 기능이 작동하게 해야 합니다: "
#. Tag: programlisting
#: interceptors.xml:179
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1061 - doc/trunk/reference/ko-KR.
by webbeans-commits@lists.jboss.org
Author: eukim
Date: 2009-01-18 08:36:47 -0500 (Sun, 18 Jan 2009)
New Revision: 1061
Modified:
doc/trunk/reference/ko-KR/interceptors.po
Log:
updated
Modified: doc/trunk/reference/ko-KR/interceptors.po
===================================================================
--- doc/trunk/reference/ko-KR/interceptors.po 2009-01-18 13:05:07 UTC (rev 1060)
+++ doc/trunk/reference/ko-KR/interceptors.po 2009-01-18 13:36:47 UTC (rev 1061)
@@ -8,7 +8,7 @@
"Project-Id-Version: interceptors\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-06 11:30+0000\n"
-"PO-Revision-Date: 2009-01-16 17:25+1000\n"
+"PO-Revision-Date: 2009-01-18 23:35+1000\n"
"Last-Translator: Eunju Kim <eukim(a)redhat.com>\n"
"Language-Team: Korean <ko(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -17,6 +17,7 @@
"X-Generator: KBabel 1.11.4\n"
"Plural-Forms: nplurals=2; plural=(n!=1);\n\n"
"\n"
+"\n"
#. Tag: title
#: interceptors.xml:4
@@ -44,7 +45,7 @@
msgid ""
"Web Beans features a more sophisticated annotation-based approach to binding "
"interceptors to Web Beans."
-msgstr ""
+msgstr "Web Beans는 Web Beans에 인터셉터를 바인딩하기 위해 보다 복잡한 어노테이션 기반 방식을 특징으로 합니다. "
#. Tag: para
#: interceptors.xml:22
@@ -129,7 +130,7 @@
"Suppose we want to declare that some of our Web Beans are transactional. The "
"first thing we need is an <emphasis>interceptor binding annotation</"
"emphasis> to specify exactly which Web Beans we're interested in:"
-msgstr ""
+msgstr "Web Beans의 일부는 트랜젝션할 수 있음을 명시하고자 한다고 가정합니다. 처음으로 해야할 것은 어떤 Web Beans에 관심이 있는 지를 지정하기 위해 <emphasis>인터셉터 바인딩 어노테이션</emphasis>을 합니다: "
#. Tag: programlisting
#: interceptors.xml:55
@@ -195,7 +196,7 @@
"implement the interceptor that provides this transaction management aspect. "
"All we need to do is create a standard EJB interceptor, and annotate it "
"<literal>@Interceptor</literal> and <literal>@Transactional</literal>."
-msgstr ""
+msgstr "행을 따라 어딘가에 이러한 트랜젝션 관리 측면을 제공하기 위해 실제적으로 인터셉터를 구현해야 합니다. 해야 할 작업은 표준 EJB 인터셉터를 생성하고 이를 <literal>@Interceptor</literal> 및 <literal>@Transactional</literal>로 어노테이션하는 것입니다. "
#. Tag: programlisting
#: interceptors.xml:76
@@ -281,7 +282,7 @@
#: interceptors.xml:95
#, no-c-format
msgid "Whoah! Why the angle bracket stew?"
-msgstr ""
+msgstr "왜 각진 괄호를 써야 합니까? "
#. Tag: para
#: interceptors.xml:97
@@ -335,7 +336,7 @@
#: interceptors.xml:119
#, no-c-format
msgid "Interceptor bindings with members"
-msgstr ""
+msgstr "멤버와 인터셉터 바인딩 "
#. Tag: para
#: interceptors.xml:121
@@ -413,7 +414,7 @@
"But what if we only have one interceptor and we want the manager to ignore "
"the value of <literal>requiresNew</literal> when binding interceptors? We "
"can use the <literal>@NonBinding</literal> annotation:"
-msgstr ""
+msgstr "한 개의 인터샙터만이 있고 인터셉터를 바인딩할 때 <literal>requiresNew</literal> 값을 무시하기 위한 관리자를 원할 경우에는 <literal>@NonBinding</literal> 어노테이션을 사용할 수 있습니다: "
#. Tag: programlisting
#: interceptors.xml:140
@@ -545,16 +546,17 @@
#: interceptors.xml:173
#, no-c-format
msgid "Interceptor binding type inheritance"
-msgstr ""
+msgstr "인터셉터 바인딩 유형 상속 "
#. Tag: para
#: interceptors.xml:175
#, no-c-format
+#, fuzzy
msgid ""
"One limitation of the Java language support for annotations is the lack of "
"annotation inheritance. Really, annotations should have reuse built in, to "
"allow this kind of thing to work:"
-msgstr ""
+msgstr "어노테이션 용 Java 언어 지원의 한계는 어노테이션 상속의 부족입니다. 실제로 어노테이션은 "
#. Tag: programlisting
#: interceptors.xml:179
@@ -597,13 +599,13 @@
"<literal>TransactionInterceptor</literal> and <literal>SecurityInterceptor</"
"literal>. (And even <literal>TransactionalSecureInterceptor</literal>, if it "
"exists.)"
-msgstr ""
+msgstr "<literal>@Action</literal>으로 어노테이션된 Web Bean은 <literal>TransactionInterceptor</literal> 및 <literal>SecurityInterceptor</literal>로 바운딩됩니다. (<literal>TransactionalSecureInterceptor</literal>이 있을 경우 이것으로 바운딩됩니다.) "
#. Tag: title
#: interceptors.xml:195
#, no-c-format
msgid "Use of <literal>@Interceptors</literal>"
-msgstr ""
+msgstr "<literal>@Interceptors</literal> 사용 "
#. Tag: para
#: interceptors.xml:197
@@ -612,7 +614,7 @@
"The <literal>@Interceptors</literal> annotation defined by the EJB "
"specification is supported for both enterprise and simple Web Beans, for "
"example:"
-msgstr ""
+msgstr "EJB 사양에 의해 정의된 <literal>@Interceptors</literal> 어노테이션은 엔터프라이즈 및 단순 Web Beans 모두를 지원합니다. 예: "
#. Tag: programlisting
#: interceptors.xml:200
@@ -634,19 +636,19 @@
#: interceptors.xml:202
#, no-c-format
msgid "However, this approach suffers the following drawbacks:"
-msgstr ""
+msgstr "하지만, 이러한 방식은 다음과 같은 결점을 갖습니다: "
#. Tag: para
#: interceptors.xml:206
#, no-c-format
msgid "the interceptor implementation is hardcoded in business code,"
-msgstr ""
+msgstr "인터셉터 구현은 비지니스 코드에서 하드코어되어 있습니다 "
#. Tag: para
#: interceptors.xml:209
#, no-c-format
msgid "interceptors may not be easily disabled at deployment time, and"
-msgstr ""
+msgstr "인터셉터는 배치시 쉽게 비활성화할 수 없습니다, "
#. Tag: para
#: interceptors.xml:212
@@ -654,11 +656,11 @@
msgid ""
"the interceptor ordering is non-global—it is determined by the order in "
"which interceptors are listed at the class level."
-msgstr ""
+msgstr "인터셉터 순서는 비전역적입니다—이는 클래스 레벨로 열거된 인터셉터 순서에 의해 결정됩니다. "
#. Tag: para
#: interceptors.xml:217
#, no-c-format
msgid "Therefore, we recommend the use of Web Beans-style interceptor bindings."
-msgstr ""
+msgstr "따라서 Web Beans 형식 인터셉터 바인딩을 사용할 것을 권장합니다. "
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1060 - ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/lookup.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-18 08:05:07 -0500 (Sun, 18 Jan 2009)
New Revision: 1060
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/lookup/ResolutionByTypeTest.java
Log:
fix build
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/lookup/ResolutionByTypeTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/lookup/ResolutionByTypeTest.java 2009-01-18 12:48:45 UTC (rev 1059)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/lookup/ResolutionByTypeTest.java 2009-01-18 13:05:07 UTC (rev 1060)
@@ -5,11 +5,11 @@
import javax.webbeans.manager.Bean;
import org.jboss.webbeans.bean.SimpleBean;
-import org.jboss.webbeans.binding.CurrentLiteral;
import org.jboss.webbeans.introspector.AnnotatedClass;
import org.jboss.webbeans.introspector.AnnotatedField;
import org.jboss.webbeans.introspector.jlr.AnnotatedClassImpl;
import org.jboss.webbeans.introspector.jlr.AnnotatedFieldImpl;
+import org.jboss.webbeans.literal.CurrentLiteral;
import org.jboss.webbeans.test.unit.AbstractTest;
import org.testng.annotations.Test;
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1059 - doc/trunk/reference/de-DE.
by webbeans-commits@lists.jboss.org
Author: jdimanos
Date: 2009-01-18 07:48:45 -0500 (Sun, 18 Jan 2009)
New Revision: 1059
Modified:
doc/trunk/reference/de-DE/intro.po
Log:
update
Modified: doc/trunk/reference/de-DE/intro.po
===================================================================
--- doc/trunk/reference/de-DE/intro.po 2009-01-18 08:02:16 UTC (rev 1058)
+++ doc/trunk/reference/de-DE/intro.po 2009-01-18 12:48:45 UTC (rev 1059)
@@ -1,3 +1,4 @@
+# translation of intro.po to
# Language de-DE translations for Introduction_to_Web_Beans package.
# Automatically generated, 2009.
#
@@ -3,19 +4,20 @@
msgid ""
msgstr ""
-"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
+"Project-Id-Version: intro\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-10 14:18+0000\n"
-"PO-Revision-Date: 2009-01-10 14:18+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2009-01-18 23:45+1100\n"
+"Last-Translator: \n"
+"Language-Team: <en(a)li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
#: intro.xml:4
#, no-c-format
msgid "Getting started with Web Beans"
-msgstr ""
+msgstr "Erste Schritte mit Web Beans"
#. Tag: para
@@ -29,12 +31,14 @@
"probably already written and used hundreds, perhaps thousands of Web Beans. "
"You might not even remember the first Web Bean you wrote."
msgstr ""
+"Können Sie es jetzt kaum erwarten Ihr erstes Web Bean zu schreiben? Oder "
+"sind Sie etwas skeptisch und fragen sich, welche Hürden Ihnen bei der Web Beans Spezifikation bevorstehen? Die gute Nachricht ist, dass Sie wahrscheinlich schon hunderte, wenn nicht tausende von Web Beans geschrieben haben. Vielleicht erinnern Sie sich nicht einmal an das erste Web Bean, das Sie je geschrieben haben."
#. Tag: title
#: intro.xml:13
#, no-c-format
msgid "Your first Web Bean"
-msgstr ""
+msgstr "Ihr erstes Web Bean"
#. Tag: para
#: intro.xml:15
@@ -58,7 +62,7 @@
"Suppose that we have two existing Java classes, that we've been using for "
"years in various applications. The first class parses a string into a list "
"of sentences:"
-msgstr ""
+msgstr "Nehmen wir an, Sie besitzen zwei bestehende Java Klassen, die bis dato in verschiedenen Anwendungen verwendet wurden. Die erste Klasse parst einen String in eine Liste von Sätzen:"
#. Tag: programlisting
#: intro.xml:29
@@ -68,6 +72,9 @@
" public List<String> parse(String text) { ... }\n"
"}]]>"
msgstr ""
+"<![CDATA[public class SentenceParser {\n"
+" public List<String> parse(String text) { ... }\n"
+"}]]>"
#. Tag: para
#: intro.xml:31
@@ -76,7 +83,7 @@
"The second existing class is a stateless session bean front-end for an "
"external system that is able to translate sentences from one language to "
"another:"
-msgstr ""
+msgstr "Bei der zweiten bestehenden Klasse handelt es sich um das Front-End eines \"stateless Session Beans\" für ein externes System, das in der Lage ist Sätze von einer Sprache in eine andere zu übersetzen:"
#. Tag: programlisting
#: intro.xml:35
@@ -87,12 +94,16 @@
" public String translate(String sentence) { ... }\n"
"}]]>"
msgstr ""
+"<![CDATA[@Stateless\n"
+"public class SentenceTranslator implements Translator {\n"
+" public String translate(String sentence) { ... }\n"
+"}]]>"
#. Tag: para
#: intro.xml:37
#, no-c-format
msgid "Where <literal>Translator</literal> is the local interface:"
-msgstr ""
+msgstr "Wo <literal>Translator</literal> das lokale Interface ist:"
#. Tag: programlisting
#: intro.xml:39
@@ -103,6 +114,10 @@
" public String translate(String sentence);\n"
"}]]>"
msgstr ""
+"<![CDATA[@Local\n"
+"public interface Translator {\n"
+" public String translate(String sentence);\n"
+"}]]>"
#. Tag: para
#: intro.xml:41
@@ -110,7 +125,7 @@
msgid ""
"Unfortunately, we don't have a preexisting class that translates whole text "
"documents. So let's write a Web Bean that does this job:"
-msgstr ""
+msgstr "Leider besitzen wir keine bereits bestehende Klasse die ganze Textdokumente übersetzt. Schreiben wir also ein Web Bean, das diesen Job übernimmt:"
#. Tag: programlisting
#: intro.xml:44
@@ -138,6 +153,27 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[public class TextTranslator {\n"
+" \n"
+" private SentenceParser sentenceParser;\n"
+" private Translator sentenceTranslator;\n"
+" \n"
+" @Initializer\n"
+" TextTranslator(SentenceParser sentenceParser, Translator "
+"sentenceTranslator) {\n"
+" this.sentenceParser = sentenceParser;\n"
+" this.sentenceTranslator = sentenceTranslator;\n"
+" }\n"
+" \n"
+" public String translate(String text) {\n"
+" StringBuilder sb = new StringBuilder();\n"
+" for (String sentence: sentenceParser.parse(text)) {\n"
+" sb.append(sentenceTranslator.translate(sentence));\n"
+" }\n"
+" return sb.toString();\n"
+" }\n"
+" \n"
+"}]]>"
#. Tag: para
#: intro.xml:46
@@ -145,7 +181,7 @@
msgid ""
"We may obtain an instance of <literal>TextTranslator</literal> by injecting "
"it into a Web Bean, Servlet or EJB:"
-msgstr ""
+msgstr "Wir erhalten eine Instanz von <literal>TextTranslator</literal> durch dessen Einspeisung in ein Web Bean, Servlet oder EJB:"
#. Tag: programlisting
#: intro.xml:49
@@ -156,6 +192,10 @@
" this.textTranslator = textTranslator;\n"
"}]]>"
msgstr ""
+"<![CDATA[@Initializer\n"
+"public setTextTranslator(TextTranslator textTranslator) {\n"
+" this.textTranslator = textTranslator;\n"
+"}]]>"
#. Tag: para
#: intro.xml:51
@@ -163,7 +203,7 @@
msgid ""
"Alternatively, we may obtain an instance by directly calling a method of the "
"Web Bean manager:"
-msgstr ""
+msgstr "Alternativ erhalten wir eine Instanz durch direkten Aufruf einer Methode des Web Bean Managers:"
#. Tag: programlisting
#: intro.xml:54
@@ -172,6 +212,8 @@
"<![CDATA[TextTranslator tt = manager.getInstanceByType(TextTranslator."
"class);]]>"
msgstr ""
+"<![CDATA[TextTranslator tt = manager.getInstanceByType(TextTranslator."
+"class);]]>"
#. Tag: para
#: intro.xml:56
@@ -181,7 +223,7 @@
"no parameters! Is it still a Web Bean? Well, a class that does not have a "
"constructor with no parameters can still be a Web Bean if it has a "
"constructor annotated <literal>@Initializer</literal>."
-msgstr ""
+msgstr "Aber warten Sie: <literal>TextTranslator</literal> besitzt keinen Konstruktor ohne Parameter! Handelt es sich noch um ein Web Bean? Nun, eine Klasse, die keinen Konstruktor ohne Parameter besitzt, kann nach wie vor Web Bean sein, falls es einen mit <literal>@Initializer</literal> annotierten Konstruktor besitzt."
#. Tag: para
#: intro.xml:61
@@ -194,6 +236,9 @@
"Bean. The Web Bean manager will inject other Web Beans to the parameters of "
"the constructor or method."
msgstr ""
+"Wie Sie wahrscheinlich bereits erraten haben, hat die <literal>@Initializer</literal>-Annotation etwas mit Dependency-Einspeisung zu tun! <literal>@Initializer</literal> "
+"kann am Konstruktor oder der Methode eines Web Beans angewendet werden und teilt dem Web "
+"Bean Manager mit, diesen Konstruktor oder diese Methode bei Instantiierung des Web Beans aufzurufen. Der Web Bean Manager speist andere Web Beans in die Parameter des Konstruktors oder der Methode ein."
#. Tag: para
#: intro.xml:68
@@ -213,13 +258,13 @@
#: intro.xml:80
#, no-c-format
msgid "What is a Web Bean?"
-msgstr ""
+msgstr "Was ist ein Web Bean?"
#. Tag: para
#: intro.xml:82
#, no-c-format
msgid "So what, <emphasis>exactly</emphasis>, is a Web Bean?"
-msgstr ""
+msgstr "Was also <emphasis>genau</emphasis> ist ein Web Bean?"
#. Tag: para
#: intro.xml:84
@@ -260,14 +305,13 @@
#: intro.xml:105
#, no-c-format
msgid "the lifecycle of each instance of the Web Bean and"
-msgstr ""
+msgstr "der Lebenszyklus jeder Instanz des Web Beans und"
#. Tag: para
#: intro.xml:108
#, no-c-format
-msgid ""
-"which clients share a reference to a particular instance of the Web Bean."
-msgstr ""
+msgid "which clients share a reference to a particular instance of the Web Bean."
+msgstr "Welche Clients teilen sich eine Referenz zu einer bestimmten Instanz des Web Beans."
#. Tag: para
#: intro.xml:113
@@ -344,37 +388,37 @@
#: intro.xml:153
#, no-c-format
msgid "A Web Bean comprises:"
-msgstr ""
+msgstr "Ein Web Bean besteht aus:"
#. Tag: para
#: intro.xml:156
#, no-c-format
msgid "A (nonempty) set of API types"
-msgstr ""
+msgstr "Einem (nicht leeren) Satz von API-Typen"
#. Tag: para
#: intro.xml:157
#, no-c-format
msgid "A (nonempty) set of binding annotation types"
-msgstr ""
+msgstr "Einem (nicht leeren) Satz von bindenden Annotationstypen"
#. Tag: para
#: intro.xml:158
#, no-c-format
msgid "A scope"
-msgstr ""
+msgstr "Einem Geltungsbereich"
#. Tag: para
#: intro.xml:159
#, no-c-format
msgid "A deployment type"
-msgstr ""
+msgstr "Einem Deployment-Typ"
#. Tag: para
#: intro.xml:160
#, no-c-format
msgid "Optionally, a Web Bean name"
-msgstr ""
+msgstr "Optional einem Web Bean Namen"
#. Tag: para
#: intro.xml:161
@@ -386,19 +430,19 @@
#: intro.xml:162
#, no-c-format
msgid "A Web Bean implementation"
-msgstr ""
+msgstr "Einer Web Bean Implementierung"
#. Tag: para
#: intro.xml:167
#, no-c-format
msgid "Let's see what some of these terms mean, to the Web Bean developer."
-msgstr ""
+msgstr "Sehen wir uns jetzt genauer an, was diese Begriffe für einen Entwickler von Web Beans bedeuten."
#. Tag: title
#: intro.xml:170
#, no-c-format
msgid "API types, binding types and dependency injection"
-msgstr ""
+msgstr "API-Typen, Binding-Typen und Dependency-Einspeisung"
#. Tag: para
#: intro.xml:172
@@ -446,7 +490,7 @@
#: intro.xml:191
#, no-c-format
msgid "<![CDATA[@CreditCard PaymentProcessor paymentProcessor]]>"
-msgstr ""
+msgstr "<![CDATA[@CreditCard PaymentProcessor paymentProcessor]]>"
#. Tag: para
#: intro.xml:193
@@ -482,6 +526,9 @@
"public class CreditCardPaymentProcessor \n"
" implements PaymentProcessor { ... }]]>"
msgstr ""
+"<![CDATA[@CreditCard\n"
+"public class CreditCardPaymentProcessor \n"
+" implements PaymentProcessor { ... }]]>"
#. Tag: para
#: intro.xml:206
@@ -506,7 +553,7 @@
#: intro.xml:217
#, no-c-format
msgid "Deployment types"
-msgstr ""
+msgstr "Deployment-Typen"
#. Tag: para
#: intro.xml:219
@@ -550,6 +597,12 @@
" }\n"
"}]]>"
msgstr ""
+"<![CDATA[@Mock\n"
+"public class MockSentenceTranslator implements Translator {\n"
+" public String translate(String sentence) {\n"
+" return \"Lorem ipsum dolor sit amet\";\n"
+" }\n"
+"}]]>"
#. Tag: para
#: intro.xml:236
@@ -572,7 +625,7 @@
#: intro.xml:246
#, no-c-format
msgid "Scope"
-msgstr ""
+msgstr "Geltungsbereich"
#. Tag: para
#: intro.xml:248
@@ -592,6 +645,8 @@
"For example, any web application may have <emphasis>session scoped</"
"emphasis> Web Beans:"
msgstr ""
+"Web-Anwendungen können zum Beispiel <emphasis>Session-begrenzte</"
+"emphasis> Web Beans besitzen:"
#. Tag: programlisting
#: intro.xml:257
@@ -600,6 +655,8 @@
"<![CDATA[@SessionScoped\n"
"public class ShoppingCart { ... }]]>"
msgstr ""
+"<![CDATA[@SessionScoped\n"
+"public class ShoppingCart { ... }]]>"
#. Tag: para
#: intro.xml:259
@@ -629,7 +686,7 @@
#: intro.xml:272
#, no-c-format
msgid "Web Bean names and Unified EL"
-msgstr ""
+msgstr "Web Bean Namen und Unified EL"
#. Tag: para
#: intro.xml:274
@@ -646,12 +703,14 @@
"<![CDATA[@SessionScoped @Named(\"cart\")\n"
"public class ShoppingCart { ... }]]>"
msgstr ""
+"<![CDATA[@SessionScoped @Named(\"cart\")\n"
+"public class ShoppingCart { ... }]]>"
#. Tag: para
#: intro.xml:280
#, no-c-format
msgid "Now we can easily use the Web Bean in any JSF or JSP page:"
-msgstr ""
+msgstr "Jetzt können wir das Web Bean einfach in einer beliebigen JSF- oder JSP-Seite verwenden:"
#. Tag: programlisting
#: intro.xml:282
@@ -661,12 +720,14 @@
" ....\n"
"</h:dataTable>]]>"
msgstr ""
+"<![CDATA[<h:dataTable value=\"#{cart.lineItems}\" var=\"item\">\n"
+" ....\n"
+"</h:dataTable>]]>"
#. Tag: para
#: intro.xml:284
#, no-c-format
-msgid ""
-"It's even easier to just let the name be defaulted by the Web Bean manager:"
+msgid "It's even easier to just let the name be defaulted by the Web Bean manager:"
msgstr ""
#. Tag: programlisting
@@ -676,6 +737,8 @@
"<![CDATA[@SessionScoped @Named\n"
"public class ShoppingCart { ... }]]>"
msgstr ""
+"<![CDATA[@SessionScoped @Named\n"
+"public class ShoppingCart { ... }]]>"
#. Tag: para
#: intro.xml:289
@@ -689,7 +752,7 @@
#: intro.xml:295
#, no-c-format
msgid "Interceptor binding types"
-msgstr ""
+msgstr "Interzeptor Binding-Typen"
#. Tag: para
#: intro.xml:297
@@ -717,6 +780,9 @@
"@Interceptors(TransactionInterceptor.class)\n"
"public class ShoppingCart { ... }]]>"
msgstr ""
+"<![CDATA[@SessionScoped \n"
+"@Interceptors(TransactionInterceptor.class)\n"
+"public class ShoppingCart { ... }]]>"
#. Tag: para
#: intro.xml:307
@@ -733,6 +799,8 @@
"<![CDATA[@SessionScoped @Transactional\n"
"public class ShoppingCart { ... }]]>"
msgstr ""
+"<![CDATA[@SessionScoped @Transactional\n"
+"public class ShoppingCart { ... }]]>"
#. Tag: para
#: intro.xml:313
@@ -746,7 +814,7 @@
#: intro.xml:321
#, no-c-format
msgid "What kinds of objects can be Web Beans?"
-msgstr ""
+msgstr "Welche Art von Objekten können Web Beans sein?"
#. Tag: para
#: intro.xml:323
@@ -760,7 +828,7 @@
#: intro.xml:327
#, no-c-format
msgid "Simple Web Beans"
-msgstr ""
+msgstr "Einfache Web Beans"
#. Tag: para
#: intro.xml:329
@@ -817,7 +885,7 @@
#: intro.xml:358
#, no-c-format
msgid "Enterprise Web Beans"
-msgstr ""
+msgstr "Enterprise Web Beans"
#. Tag: para
#: intro.xml:360
@@ -866,6 +934,15 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@Stateful @SessionScoped\n"
+"public class ShoppingCart {\n"
+"\n"
+" ...\n"
+" \n"
+" @Remove\n"
+" public void destroy() {}\n"
+"\n"
+"}]]>"
#. Tag: para
#: intro.xml:380
@@ -886,7 +963,7 @@
#: intro.xml:390
#, no-c-format
msgid "concurrency management,"
-msgstr ""
+msgstr "Nebenläufigkeits-Management,"
#. Tag: para
#: intro.xml:393
@@ -906,7 +983,7 @@
#: intro.xml:400
#, no-c-format
msgid "timers and asynchronous methods,"
-msgstr ""
+msgstr "Timer und asynchrone Methoden,"
#. Tag: para
#: intro.xml:404
@@ -959,7 +1036,7 @@
#: intro.xml:427
#, no-c-format
msgid "Producer methods"
-msgstr ""
+msgstr "Producer-Methoden"
#. Tag: para
#: intro.xml:429
@@ -987,19 +1064,28 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@ApplicationScoped\n"
+"public class Generator {\n"
+"\n"
+" private Random random = new Random( System.currentTimeMillis() );\n"
+" \n"
+" @Produces @Random int next() {\n"
+" return random.nextInt(100);\n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: para
#: intro.xml:437
#, no-c-format
-msgid ""
-"The result of a producer method is injected just like any other Web Bean."
-msgstr ""
+msgid "The result of a producer method is injected just like any other Web Bean."
+msgstr "Einspeisung des Ergebnisses einer Producer-Methode erfolgt wie bei einem regulären Web Bean."
#. Tag: programlisting
#: intro.xml:439
#, no-c-format
msgid "<![CDATA[@Random int randomNumber]]>"
-msgstr ""
+msgstr "<![CDATA[@Random int randomNumber]]>"
#. Tag: para
#: intro.xml:441
@@ -1024,6 +1110,9 @@
" return createConnection( user.getId(), user.getPassword() );\n"
"}]]>"
msgstr ""
+"<![CDATA[@Produces @RequestScoped Connection connect(User user) {\n"
+" return createConnection( user.getId(), user.getPassword() );\n"
+"}]]>"
#. Tag: para
#: intro.xml:449
@@ -1041,6 +1130,9 @@
" connection.close();\n"
"}]]>"
msgstr ""
+"<![CDATA[void close(@Disposes Connection connection) {\n"
+" connection.close();\n"
+"}]]>"
#. Tag: para
#: intro.xml:453
@@ -1062,7 +1154,7 @@
#: intro.xml:461
#, no-c-format
msgid "JMS endpoints"
-msgstr ""
+msgstr "JMS-Endpunkte"
#. Tag: para
#: intro.xml:463
@@ -1073,3 +1165,4 @@
"objects required to send messages to queues and topics. We'll discuss JMS "
"endpoints in <xref linkend=\"jms\"/>."
msgstr ""
+
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1058 - doc/trunk/reference/ko-KR.
by webbeans-commits@lists.jboss.org
Author: eukim
Date: 2009-01-18 03:02:16 -0500 (Sun, 18 Jan 2009)
New Revision: 1058
Modified:
doc/trunk/reference/ko-KR/xml.po
Log:
updated
Modified: doc/trunk/reference/ko-KR/xml.po
===================================================================
--- doc/trunk/reference/ko-KR/xml.po 2009-01-18 03:59:50 UTC (rev 1057)
+++ doc/trunk/reference/ko-KR/xml.po 2009-01-18 08:02:16 UTC (rev 1058)
@@ -8,7 +8,7 @@
"Project-Id-Version: xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-06 11:30+0000\n"
-"PO-Revision-Date: 2009-01-18 13:57+1000\n"
+"PO-Revision-Date: 2009-01-18 18:00+1000\n"
"Last-Translator: Eunju Kim <eukim(a)redhat.com>\n"
"Language-Team: Korean <ko(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -151,7 +151,7 @@
"And this is all the code we need to declare that <literal>Date</literal> is "
"a simple Web Bean! An instance of <literal>Date</literal> may now be "
"injected by any other Web Bean:"
-msgstr ""
+msgstr "<literal>Date</literal>는 단순한 Web Bean임을 명시해야 할 모든 코드입니다! <literal>Date</literal>의 인스턴스는 기타 다른 Web Bean에 의해 삽입될 수 있습니다: "
#. Tag: programlisting
#: xml.xml:62
@@ -171,7 +171,7 @@
msgid ""
"We can declare the scope, deployment type and interceptor binding types "
"using direct child elements of the Web Bean declaration:"
-msgstr ""
+msgstr "Web Bean 명시의 직접적인 자식 요소를 사용하여 범위, 배포 유형, 인터셉터 바인딩 유형을 명시할 수 있습니다: "
#. Tag: programlisting
#: xml.xml:72
@@ -352,7 +352,7 @@
"a set of initial field values. This Web Bean has a special, container-"
"generated binding and is therefore injectable only to the specific injection "
"point at which it is declared."
-msgstr ""
+msgstr "<literal><Name></literal> 요소는 초기화 영역값 설정과 함께 <literal>@Dependent</literal> 범위의 간단한 Web Bean 및 <literal>Name</literal> 클래스를 명시합니다. Web Bean은 특정한 컨테이너 생성 바인딩이 있으므로 명시된 특정 삽입 지점에만 삽입할 수 있습니다. "
#. Tag: para
#: xml.xml:116
@@ -361,7 +361,7 @@
"This simple but powerful feature allows the Web Beans XML format to be used "
"to specify whole graphs of Java objects. It's not quite a full databinding "
"solution, but it's close!"
-msgstr ""
+msgstr "이러한 간단하지만 강력한 기능은 Web Beans XML 포맷이 Java 객체의 전체 그래프를 지정하는데 사용하게 합니다. 이는 완전한 데이터바인딩 솔루션이 아니지만, 근접한 솔루션입니다! "
#. Tag: title
#: xml.xml:123
@@ -377,7 +377,7 @@
"developers, or who don't have access to our code, we need to provide a "
"schema. There's nothing specific to Web Beans about writing or using the "
"schema."
-msgstr ""
+msgstr "Java 개발자 이외나 또는 코드로 액세스할 수 없는 사람들에 의해 작성된 XML 문서 형식을 원하실 경우, 스키마를 제공해야 합니다. 스키마를 사용 또는 작성에 관해 Web Beans에 특정한 사항이 없습니다. "
#. Tag: programlisting
#: xml.xml:130
@@ -418,5 +418,5 @@
"Writing an XML schema is quite tedious. Therefore, the Web Beans RI project "
"will provide a tool which automatically generates the XML schema from "
"compiled Java code."
-msgstr ""
+msgstr "XML 스키마 작성은 다소 장황합니다. 따라서 Web Beans RI 프로젝트는 컴파일된 자바 코드에서 XML 스키마를 자동으로 생성하는 도구를 제공하게 됩니다. "
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1057 - doc/trunk/reference/ko-KR.
by webbeans-commits@lists.jboss.org
Author: eukim
Date: 2009-01-17 22:59:50 -0500 (Sat, 17 Jan 2009)
New Revision: 1057
Modified:
doc/trunk/reference/ko-KR/xml.po
Log:
updated
Modified: doc/trunk/reference/ko-KR/xml.po
===================================================================
--- doc/trunk/reference/ko-KR/xml.po 2009-01-18 01:39:46 UTC (rev 1056)
+++ doc/trunk/reference/ko-KR/xml.po 2009-01-18 03:59:50 UTC (rev 1057)
@@ -8,7 +8,7 @@
"Project-Id-Version: xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-06 11:30+0000\n"
-"PO-Revision-Date: 2009-01-16 10:04+1000\n"
+"PO-Revision-Date: 2009-01-18 13:57+1000\n"
"Last-Translator: Eunju Kim <eukim(a)redhat.com>\n"
"Language-Team: Korean <ko(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -19,6 +19,7 @@
"\n"
"\n"
"\n"
+"\n"
#. Tag: title
#: xml.xml:4
@@ -33,31 +34,31 @@
"So far, we've seen plenty of examples of Web Beans declared using "
"annotations. However, there are a couple of occasions when we can't use "
"annotations to define the Web Bean:"
-msgstr ""
+msgstr "지금까지 어노테이션을 사용하여 명시된 여러 가지 Web Beans의 예를 살펴보았습니다. 하지만 Web Bean을 정의하기 위해 어노테이션을 사용할 수 없는 경우가 종종 있습니다: "
#. Tag: para
#: xml.xml:12
#, no-c-format
msgid "when the implementation class comes from some preexisting library, or"
-msgstr ""
+msgstr "구현 클래스가 일부 기존 라이브러에서 비롯되었을 경우, "
#. Tag: para
#: xml.xml:15
#, no-c-format
msgid "when there should be multiple Web Beans with the same implementation class."
-msgstr ""
+msgstr "동일한 구현 클래스를 갖는 다수의 Web Beans이 있을 경우 "
#. Tag: para
#: xml.xml:20
#, no-c-format
msgid "In either of these cases, Web Beans gives us two options:"
-msgstr ""
+msgstr "이러한 경우, Web Beans는 두 가지 옵션을 제공합니다: "
#. Tag: para
#: xml.xml:23
#, no-c-format
msgid "write a producer method, or"
-msgstr ""
+msgstr "생산자 방식 작성 또는 "
#. Tag: para
#: xml.xml:24
@@ -75,7 +76,7 @@
"class and member names as the string values of XML elements and attributes, "
"Web Beans lets you use the class or member name as the name of the XML "
"element."
-msgstr ""
+msgstr "다수의 프레임워크는 XML을 사용하여 Java 클래스 관련 메타테이터를 제공합니다. 하지만, Web Beans는 다양한 접근 방법을 사용하여 Java 클래스 이름, 영역, 방식을 대부분의 다른 프레임워크에 지정합니다. XML 요소 및 속성의 문자열 값으로 클래스 및 멤버 이름을 작성하는 대신, Web Beans는 XML 요소 이름으로 클래스 또는 멤버 이름을 사용하게 합니다. "
#. Tag: para
#: xml.xml:33
@@ -86,7 +87,7 @@
"to generate the XML schema automatically from the compiled Java code. Or, an "
"integrated development environment could perform the same validation without "
"the need for the explicit intermediate generation step."
-msgstr ""
+msgstr "이러한 접근 방법의 장점은 XML 문서에서 스펠링 오류가 나타나지 않게 하는 XML 스키마를 작성할 수 있다는 것입니다. 컴파일된 Java 코드에서 XML 스키마를 자동으로 생성하기 위한 도구를 만들 수 도 있습니다. 또는 통합된 개발 환경은 중간 생성 단계를 거치지 않고 동일한 검증을 실행할 수 있습니다. "
#. Tag: title
#: xml.xml:40
@@ -103,6 +104,8 @@
"package name. For the package <literal>com.mydomain.myapp</literal>, the XML "
"namespace is <literal>urn:java:com.mydomain.myapp</literal>."
msgstr ""
+"각각의 Java 패키지의 경우, Web Beans는 해당 XML namespace를 지정합니다. namespace는 Java 패키지 이름에 <literal>urn:java:</literal>를 덧붙이기하여 형성됩니다. <literal>com.mydomain.myapp</literal> 패키지의 경우, XML "
+"namespace는 <literal>urn:java:com.mydomain.myapp</literal>입니다. "
#. Tag: para
#: xml.xml:47
@@ -113,7 +116,7 @@
"name of the Java type. Fields and methods of the type are specified by child "
"elements in the same namespace. If the type is an annotation, members are "
"specified by attributes of the element."
-msgstr ""
+msgstr "패키지에 속한 Java 유형은 패키지에 해당하는 namespace에 있는 XML 요소를 사용하여 참조합니다. 요소 이름은 Java 유형의 이름이 됩니다. 유형 영역 및 방식은 동일한 namespace에 있는 자식 요소에 의해 지정됩니다. 유형이 어노테이션되어 있을 경우, 멤버는 요소의 속성에 의해 지정됩니다. "
#. Tag: para
#: xml.xml:53
@@ -121,7 +124,7 @@
msgid ""
"For example, the element <literal><util:Date/></literal> in the "
"following XML fragment refers to the class <literal>java.util.Date</literal>:"
-msgstr ""
+msgstr "예를 들어, 다음의 XML 부분에 있는 <literal><util:Date/></literal> 요소는 <literal>java.util.Date</literal> 클래스를 참조합니다: "
#. Tag: programlisting
#: xml.xml:56
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1056 - doc/trunk/reference/ko-KR.
by webbeans-commits@lists.jboss.org
Author: eukim
Date: 2009-01-17 20:39:46 -0500 (Sat, 17 Jan 2009)
New Revision: 1056
Modified:
doc/trunk/reference/ko-KR/ri-spi.po
Log:
updated
Modified: doc/trunk/reference/ko-KR/ri-spi.po
===================================================================
--- doc/trunk/reference/ko-KR/ri-spi.po 2009-01-18 01:09:33 UTC (rev 1055)
+++ doc/trunk/reference/ko-KR/ri-spi.po 2009-01-18 01:39:46 UTC (rev 1056)
@@ -8,7 +8,7 @@
"Project-Id-Version: ri-spi\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-08 14:07+0000\n"
-"PO-Revision-Date: 2009-01-18 00:35+1000\n"
+"PO-Revision-Date: 2009-01-18 11:39+1000\n"
"Last-Translator: Eunju Kim <eukim(a)redhat.com>\n"
"Language-Team: Korean <ko(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -19,6 +19,7 @@
"\n"
"\n"
"\n"
+"\n"
#. Tag: title
#: ri-spi.xml:4
@@ -354,7 +355,7 @@
"however you may want to alter the binding and lookup (for example in an "
"environment where JNDI isn't available). To do this, implement <literal>org."
"jboss.webbeans.spi.resources.Naming</literal>:"
-msgstr ""
+msgstr "Web Beans RI는 기준에 따라 JNDI 바인딩 및 lookup을 구현하지만, 바인딩 및 lookup을 변경하고자 하실 수 있습니다 (예를 들어 JNDI를 사용할 수 없는 환경에서). 이를 위해 <literal>org.jboss.webbeans.spi.resources.Naming</literal>을 구현합니다: "
#. Tag: programlisting
#: ri-spi.xml:90
@@ -408,7 +409,7 @@
#: ri-spi.xml:92 ri-spi.xml:113
#, no-c-format
msgid "and tell the RI to use it:"
-msgstr ""
+msgstr "RI에게 사용할 것을 알립니다: "
#. Tag: programlisting
#: ri-spi.xml:96
@@ -420,7 +421,7 @@
#: ri-spi.xml:101
#, no-c-format
msgid "Resource loading"
-msgstr ""
+msgstr "리소스 불러오기 "
#. Tag: para
#: ri-spi.xml:103
@@ -432,6 +433,8 @@
"environments. If this is case, you can implement <literal>org.jboss.webbeans."
"spi.ResourceLoader</literal>:"
msgstr ""
+"Web Beans RI는 여러번 classpath에서 클래스 및 리소스를 불러와야 합니다. 기본값으로 RI를 불러오기 위해 사용되었던 동일한 classloader에서 로딩되지만, 일부 환경에서는 작동하지 않을 수 도 있습니다. 이러한 경우, <literal>org.jboss.webbeans."
+"spi.ResourceLoader</literal>를 구현할 수 있습니다: "
#. Tag: programlisting
#: ri-spi.xml:111
@@ -507,7 +510,7 @@
#: ri-spi.xml:124
#, no-c-format
msgid "The contract with the container"
-msgstr ""
+msgstr "컨테이너와 계약 "
#. Tag: para
#: ri-spi.xml:126
@@ -515,13 +518,13 @@
msgid ""
"There are a number of requirements that the Web Beans RI places on the "
"container for correct functioning that fall outside implementation of APIs"
-msgstr ""
+msgstr "API의 외부 구현에서의 올바른 기능을 실행하게 하기 위해 Web Beans RI이 컨테이너에 위치하게 해야 할 여러 요구 사항이 있습니다 "
#. Tag: term
#: ri-spi.xml:134
#, no-c-format
msgid "Classloader isolation"
-msgstr ""
+msgstr "Classloader 분리 "
#. Tag: para
#: ri-spi.xml:138
@@ -531,13 +534,13 @@
"deployment of multiple applications, you must enable, automatically, or "
"through user configuation, classloader isolation for each Web Beans "
"application."
-msgstr ""
+msgstr "Web Beans RI를 다수의 애플리케이션의 운용을 지원하는 환경으로 통합할 경우, 각각의 Web Beans 애플리케이션에 대한 클래스로더 분리를 자동으로 또는 사용자 설정을 통해 반드시 활성화해야 합니다. "
#. Tag: term
#: ri-spi.xml:147
#, no-c-format
msgid "Servlet listener"
-msgstr ""
+msgstr "Servlet 청취자 "
#. Tag: para
#: ri-spi.xml:151
@@ -547,13 +550,13 @@
"register <literal>org.jboss.webbeans.servlet.WebBeansListener</literal> as a "
"Servlet listener, either automatically, or through user configuration, for "
"each Web Beans application which uses Servlet."
-msgstr ""
+msgstr "Web Beans를 Servlet 환경으로 통합할 경우, Servlet을 사용하는 각각의 Web Beans 애플리케이션에 대해 자동으로 또는 사용자 설정을 통해 <literal>org.jboss.webbeans.servlet.WebBeansListener</literal>를 Servlet 청취자로 등록해야 합니다. "
#. Tag: term
#: ri-spi.xml:162
#, no-c-format
msgid "Session Bean Interceptor"
-msgstr ""
+msgstr "Session Bean 인터셉터 "
#. Tag: para
#: ri-spi.xml:166
@@ -564,13 +567,13 @@
"a EJB interceptor for all EJBs in the application, either automatically, or "
"through user configuration, for each Web Beans application which uses "
"enterprise beans."
-msgstr ""
+msgstr "Web Beans를 EJB 환경으로 통합하고자 할 경우 엔터프라이즈 beans를 사용하는 각각의 Web Beans 애플리케이션 용으로 모든 EJB 애플리케이션에 대해 EJB 인터셉터로서 <literal>org.jboss.webbeans.ejb.SessionBeanInterceptor</literal>를 자동으로 또는 사용자 설정을 통해 등록해야 합니다. "
#. Tag: term
#: ri-spi.xml:177
#, no-c-format
msgid "The <literal>webbeans-ri.jar</literal>"
-msgstr ""
+msgstr "<literal>webbeans-ri.jar</literal> "
#. Tag: para
#: ri-spi.xml:181
@@ -580,5 +583,5 @@
"deployment of applications, you must insert the <literal>webbeans-ri.jar</"
"literal> into the applications isolated classloader. It cannot be loaded "
"from a shared classloader."
-msgstr ""
+msgstr "Web Beans를 애플리케이션 운용을 지원하는 환경으로 통합하고자 할 경우, <literal>webbeans-ri.jar</literal>를 애플리케이션 분리 classloader로 삽입해야 합니다. 이는 공유 classloader에서 불러올 수 없습니다. "
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1055 - in ri/trunk/webbeans-ri/src: main/java/org/jboss/webbeans/bean and 12 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-17 20:09:33 -0500 (Sat, 17 Jan 2009)
New Revision: 1055
Added:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/CurrentLiteral.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/DeployedLiteral.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/InitializedLiteral.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/NewLiteral.java
Removed:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/binding/
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/AbstractBean.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewEnterpriseBean.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewSimpleBean.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/SimpleResourceLoader.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/context/AbstractContext.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/context/beanmap/AbstractBeanMap.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/ForwardingEjbDescriptor.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/InternalEjbDescriptor.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/AnnotatedMember.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AbstractAnnotatedItem.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AnnotatedParameterImpl.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/JDKProvider.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/Log.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/Log4JProvider.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/LogImpl.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/LogProvider.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/Logging.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/resource/AbstractNamingContext.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/AbstractUserTransaction.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/Transaction.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/UTTransaction.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/UserTransaction.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/Proxies.java
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/lookup/ResolutionByTypeTest.java
Log:
name changes and javadoc
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -62,7 +62,6 @@
import org.jboss.webbeans.introspector.jlr.AnnotatedClassImpl;
import org.jboss.webbeans.resources.spi.NamingContext;
import org.jboss.webbeans.resources.spi.ResourceLoader;
-import org.jboss.webbeans.util.BeanValidation;
import org.jboss.webbeans.util.Proxies;
import org.jboss.webbeans.util.Reflections;
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/AbstractBean.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/AbstractBean.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/AbstractBean.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -39,10 +39,10 @@
import javax.webbeans.manager.Bean;
import org.jboss.webbeans.ManagerImpl;
-import org.jboss.webbeans.binding.CurrentBinding;
import org.jboss.webbeans.injection.InjectionPointImpl;
import org.jboss.webbeans.introspector.AnnotatedItem;
import org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem.AnnotationMap;
+import org.jboss.webbeans.literal.CurrentLiteral;
import org.jboss.webbeans.log.LogProvider;
import org.jboss.webbeans.log.Logging;
import org.jboss.webbeans.model.MergedStereotypes;
@@ -169,7 +169,7 @@
else if (bindingTypes.size() == 0)
{
log.trace("Adding default @Current binding type");
- this.bindingTypes.add(new CurrentBinding());
+ this.bindingTypes.add(new CurrentLiteral());
}
else
{
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewEnterpriseBean.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewEnterpriseBean.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewEnterpriseBean.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,20 @@
+/*
+ * 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 org.jboss.webbeans.bean;
import java.lang.annotation.Annotation;
@@ -9,13 +26,18 @@
import javax.webbeans.Standard;
import org.jboss.webbeans.ManagerImpl;
-import org.jboss.webbeans.binding.NewBinding;
import org.jboss.webbeans.introspector.AnnotatedClass;
import org.jboss.webbeans.introspector.jlr.AnnotatedClassImpl;
+import org.jboss.webbeans.literal.NewLiteral;
+/**
+ *
+ * @author Nicklas Karlsson
+ *
+ */
public class NewEnterpriseBean<T> extends EnterpriseBean<T>
{
- private static Set<Annotation> NEW_BINDING_SET = new HashSet<Annotation>(Arrays.asList(new NewBinding()));
+ private static Set<Annotation> NEW_BINDING_SET = new HashSet<Annotation>(Arrays.asList(new NewLiteral()));
public static <T> NewEnterpriseBean<T> of(AnnotatedClass<T> clazz, ManagerImpl manager)
{
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewSimpleBean.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewSimpleBean.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewSimpleBean.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,20 @@
+/*
+ * 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 org.jboss.webbeans.bean;
import java.lang.annotation.Annotation;
@@ -9,14 +26,19 @@
import javax.webbeans.Standard;
import org.jboss.webbeans.ManagerImpl;
-import org.jboss.webbeans.binding.NewBinding;
import org.jboss.webbeans.context.DependentContext;
import org.jboss.webbeans.introspector.AnnotatedClass;
import org.jboss.webbeans.introspector.jlr.AnnotatedClassImpl;
+import org.jboss.webbeans.literal.NewLiteral;
+/**
+ *
+ * @author Nicklas Karlsson
+ *
+ */
public class NewSimpleBean<T> extends SimpleBean<T>
{
- private static Set<Annotation> NEW_BINDING_SET = new HashSet<Annotation>(Arrays.asList(new NewBinding()));
+ private static Set<Annotation> NEW_BINDING_SET = new HashSet<Annotation>(Arrays.asList(new NewLiteral()));
public static <T> NewSimpleBean<T> of(AnnotatedClass<T> clazz, ManagerImpl manager)
{
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/SimpleResourceLoader.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/SimpleResourceLoader.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/SimpleResourceLoader.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,19 @@
+/*
+ * 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 org.jboss.webbeans.bootstrap;
import java.io.IOException;
@@ -7,6 +23,15 @@
import org.jboss.webbeans.resources.spi.ResourceLoadingException;
import org.jboss.webbeans.util.EnumerationIterable;
+/**
+ * A simple resource loader.
+ *
+ * Uses {@link SimpleResourceLoader}'s classloader if the Thread Context
+ * Classloader isn't available
+ *
+ * @author Pete Muir
+ *
+ */
public class SimpleResourceLoader implements ResourceLoader
{
@@ -15,7 +40,14 @@
try
{
- return Class.forName(name);
+ if (Thread.currentThread().getContextClassLoader() != null)
+ {
+ return Thread.currentThread().getContextClassLoader().loadClass(name);
+ }
+ else
+ {
+ return Class.forName(name);
+ }
}
catch (ClassNotFoundException e)
{
@@ -29,14 +61,28 @@
public URL getResource(String name)
{
- return getClass().getResource(name);
+ if (Thread.currentThread().getContextClassLoader() != null)
+ {
+ return Thread.currentThread().getContextClassLoader().getResource(name);
+ }
+ else
+ {
+ return getClass().getResource(name);
+ }
}
public Iterable<URL> getResources(String name)
{
try
{
- return new EnumerationIterable<URL>(getClass().getClassLoader().getResources(name));
+ if (Thread.currentThread().getContextClassLoader() != null)
+ {
+ return new EnumerationIterable<URL>(Thread.currentThread().getContextClassLoader().getResources(name));
+ }
+ else
+ {
+ return new EnumerationIterable<URL>(getClass().getClassLoader().getResources(name));
+ }
}
catch (IOException e)
{
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 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -48,8 +48,6 @@
import org.jboss.webbeans.bean.ProducerFieldBean;
import org.jboss.webbeans.bean.ProducerMethodBean;
import org.jboss.webbeans.bean.SimpleBean;
-import org.jboss.webbeans.binding.DeployedBinding;
-import org.jboss.webbeans.binding.InitializedBinding;
import org.jboss.webbeans.bootstrap.spi.EjbDiscovery;
import org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery;
import org.jboss.webbeans.ejb.EJBApiAbstraction;
@@ -61,6 +59,8 @@
import org.jboss.webbeans.introspector.AnnotatedMethod;
import org.jboss.webbeans.introspector.jlr.AnnotatedClassImpl;
import org.jboss.webbeans.jsf.JSFApiAbstraction;
+import org.jboss.webbeans.literal.DeployedLiteral;
+import org.jboss.webbeans.literal.InitializedLiteral;
import org.jboss.webbeans.log.LogProvider;
import org.jboss.webbeans.log.Logging;
import org.jboss.webbeans.resources.spi.NamingContext;
@@ -303,12 +303,12 @@
// bean is an EJB!
getManager().getEjbDescriptorCache().addAll(getEjbDiscovery().discoverEjbs());
registerBeans(getWebBeanDiscovery().discoverWebBeanClasses());
- getManager().fireEvent(getManager(), new InitializedBinding());
+ getManager().fireEvent(getManager(), new InitializedLiteral());
List<Bean<?>> beans = getManager().getBeans();
log.info("Web Beans initialized. Validating beans.");
getManager().getResolver().resolveInjectionPoints();
BeanValidation.validate(getManager().getBeans());
- getManager().fireEvent(getManager(), new DeployedBinding());
+ getManager().fireEvent(getManager(), new DeployedLiteral());
}
}
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/context/AbstractContext.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/context/AbstractContext.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/context/AbstractContext.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -21,6 +21,13 @@
import javax.webbeans.manager.Context;
+/**
+ * Common Context operation
+ *
+ * @author Nicklas Karlsson
+ * @author Pete Muir
+ *
+ */
public abstract class AbstractContext implements Context
{
// The scope type
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/context/beanmap/AbstractBeanMap.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/context/beanmap/AbstractBeanMap.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/context/beanmap/AbstractBeanMap.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -29,6 +29,12 @@
import org.jboss.webbeans.servlet.ApplicationBeanMap;
import org.jboss.webbeans.util.Names;
+/**
+ * Provides common BeanMap operations
+ *
+ * @author Nicklas Karlsson
+ *
+ */
public abstract class AbstractBeanMap implements BeanMap
{
// The log provider
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/ForwardingEjbDescriptor.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/ForwardingEjbDescriptor.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/ForwardingEjbDescriptor.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,19 @@
+/*
+ * 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 org.jboss.webbeans.ejb;
import java.lang.reflect.Method;
@@ -5,6 +21,13 @@
import org.jboss.webbeans.ejb.spi.BusinessInterfaceDescriptor;
import org.jboss.webbeans.ejb.spi.EjbDescriptor;
+/**
+ * Forwarding helper class for {@link EjbDescriptor} to support the decorator
+ * pattern
+ *
+ * @author Pete Muir
+ *
+ */
public abstract class ForwardingEjbDescriptor<T> implements EjbDescriptor<T>
{
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/InternalEjbDescriptor.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/InternalEjbDescriptor.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ejb/InternalEjbDescriptor.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,20 @@
+/*
+ * 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 org.jboss.webbeans.ejb;
import java.util.Collections;
@@ -7,6 +24,14 @@
import org.jboss.webbeans.ejb.spi.BusinessInterfaceDescriptor;
import org.jboss.webbeans.ejb.spi.EjbDescriptor;
+/**
+ * More powerful version of {@link EjbDescriptor} that exposes Maps for some
+ * metadata. The {@link EjbDescriptor} to enhance should be passed to the
+ * constructor
+ *
+ * @author Pete Muir
+ *
+ */
public class InternalEjbDescriptor<T> extends ForwardingEjbDescriptor<T> implements EjbDescriptor<T>
{
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/AnnotatedMember.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/AnnotatedMember.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/AnnotatedMember.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,7 +1,28 @@
+/*
+ * 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 org.jboss.webbeans.introspector;
import java.lang.reflect.Member;
-
+/**
+ * AnnotedMember provides enhanced access to an annotated member
+ *
+ * @author Pete Muir
+ *
+ */
public interface AnnotatedMember<T, S extends Member> extends AnnotatedItem<T, S>
{
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AbstractAnnotatedItem.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AbstractAnnotatedItem.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AbstractAnnotatedItem.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -29,8 +29,8 @@
import javax.webbeans.BindingType;
-import org.jboss.webbeans.binding.CurrentBinding;
import org.jboss.webbeans.introspector.AnnotatedItem;
+import org.jboss.webbeans.literal.CurrentLiteral;
import org.jboss.webbeans.util.Proxies;
import org.jboss.webbeans.util.Reflections;
import org.jboss.webbeans.util.Strings;
@@ -152,7 +152,7 @@
}
// The array of default binding types
- private static final Annotation[] DEFAULT_BINDING_ARRAY = { new CurrentBinding() };
+ private static final Annotation[] DEFAULT_BINDING_ARRAY = { new CurrentLiteral() };
// The set of default binding types
private static final Set<Annotation> DEFAULT_BINDING = new HashSet<Annotation>(Arrays.asList(DEFAULT_BINDING_ARRAY));
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AnnotatedParameterImpl.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AnnotatedParameterImpl.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/introspector/jlr/AnnotatedParameterImpl.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -18,7 +18,6 @@
package org.jboss.webbeans.introspector.jlr;
import java.lang.annotation.Annotation;
-import java.lang.reflect.Member;
import java.lang.reflect.Type;
import javax.webbeans.BindingType;
Added: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/CurrentLiteral.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/CurrentLiteral.java (rev 0)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/CurrentLiteral.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -0,0 +1,28 @@
+/*
+ * 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 org.jboss.webbeans.literal;
+
+import javax.webbeans.AnnotationLiteral;
+import javax.webbeans.Current;
+
+/**
+ * Annotation literal for @Current
+ *
+ * @author Pete Muir
+ */
+public class CurrentLiteral extends AnnotationLiteral<Current> implements Current {}
Property changes on: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/CurrentLiteral.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/DeployedLiteral.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/DeployedLiteral.java (rev 0)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/DeployedLiteral.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -0,0 +1,31 @@
+/*
+ * 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 org.jboss.webbeans.literal;
+
+import javax.webbeans.AnnotationLiteral;
+import javax.webbeans.manager.Deployed;
+
+/**
+ * Annotation literal for @Deployed
+ *
+ * @author Nicklas Karlsson
+ */
+public class DeployedLiteral extends AnnotationLiteral<Deployed> implements Deployed
+{
+
+}
Property changes on: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/DeployedLiteral.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/InitializedLiteral.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/InitializedLiteral.java (rev 0)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/InitializedLiteral.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -0,0 +1,31 @@
+/*
+ * 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 org.jboss.webbeans.literal;
+
+import javax.webbeans.AnnotationLiteral;
+import javax.webbeans.manager.Initialized;
+
+/**
+ * Annotation literal for @Initialized
+ *
+ * @author Pete Muir
+ */
+public class InitializedLiteral extends AnnotationLiteral<Initialized> implements Initialized
+{
+
+}
Property changes on: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/InitializedLiteral.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/NewLiteral.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/NewLiteral.java (rev 0)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/NewLiteral.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -0,0 +1,28 @@
+/*
+ * 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 org.jboss.webbeans.literal;
+
+import javax.webbeans.AnnotationLiteral;
+import javax.webbeans.New;
+
+/**
+ * Annotation literal for @Current
+ *
+ * @author Pete Muir
+ */
+public class NewLiteral extends AnnotationLiteral<New> implements New {}
Property changes on: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/literal/NewLiteral.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/JDKProvider.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/JDKProvider.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/JDKProvider.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,19 @@
+/*
+ * 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 org.jboss.webbeans.log;
import java.util.logging.Level;
@@ -3,4 +19,9 @@
import java.util.logging.Logger;
+/**
+ *
+ * @author Gavin King
+ *
+ */
class JDKProvider implements LogProvider
{
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/Log.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/Log.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/Log.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,5 +1,26 @@
+/*
+ * 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 org.jboss.webbeans.log;
+/**
+ *
+ * @author Gavin King
+ *
+ */
public interface Log
{
public boolean isDebugEnabled();
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/Log4JProvider.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/Log4JProvider.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/Log4JProvider.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,8 +1,28 @@
package org.jboss.webbeans.log;
-
+/*
+ * 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.
+ */
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
+/**
+ *
+ * @author Gavin King
+ *
+ */
final class Log4JProvider implements LogProvider
{
private final Logger logger;
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/LogImpl.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/LogImpl.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/LogImpl.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,19 @@
+/*
+ * 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 org.jboss.webbeans.log;
import java.io.Externalizable;
@@ -5,6 +21,11 @@
import java.io.ObjectInput;
import java.io.ObjectOutput;
+/**
+ *
+ * @author Gavin King
+ *
+ */
class LogImpl implements Log, Externalizable
{
private transient LogProvider log;
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/LogProvider.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/LogProvider.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/LogProvider.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,5 +1,26 @@
+/*
+ * 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 org.jboss.webbeans.log;
+/**
+ *
+ * @author Gavin King
+ *
+ */
public interface LogProvider
{
public void trace(Object object);
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/Logging.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/Logging.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/log/Logging.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,5 +1,26 @@
+/*
+ * 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 org.jboss.webbeans.log;
+/**
+ *
+ * @author Gavin King
+ *
+ */
public class Logging
{
private static final boolean isLog4JAvailable;
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/resource/AbstractNamingContext.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/resource/AbstractNamingContext.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/resource/AbstractNamingContext.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,20 @@
+/*
+ * 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 org.jboss.webbeans.resource;
import java.util.ArrayList;
@@ -9,6 +26,12 @@
import org.jboss.webbeans.resources.spi.NamingContext;
+/**
+ * Provides common functionality required by a NamingContext
+ *
+ * @author Pete Muir
+ *
+ */
public abstract class AbstractNamingContext implements NamingContext
{
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/AbstractUserTransaction.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/AbstractUserTransaction.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/AbstractUserTransaction.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,19 @@
+/*
+ * 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 org.jboss.webbeans.transaction;
import static javax.transaction.Status.STATUS_ACTIVE;
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/Transaction.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/Transaction.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/Transaction.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,19 @@
+/*
+ * 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 org.jboss.webbeans.transaction;
import javax.webbeans.Current;
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/UTTransaction.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/UTTransaction.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/UTTransaction.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,19 @@
+/*
+ * 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 org.jboss.webbeans.transaction;
import javax.transaction.HeuristicMixedException;
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/UserTransaction.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/UserTransaction.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/transaction/UserTransaction.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,19 @@
+/*
+ * 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 org.jboss.webbeans.transaction;
import javax.transaction.Synchronization;
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/Proxies.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/Proxies.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/util/Proxies.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -1,3 +1,19 @@
+/*
+ * 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 org.jboss.webbeans.util;
import java.lang.reflect.Type;
@@ -11,6 +27,13 @@
import org.jboss.webbeans.bean.AbstractBean;
+/**
+ * Utilties for working with Javassist proxies
+ *
+ * @author Nicklas Karlsson
+ * @author Pete Muir
+ *
+ */
public class Proxies
{
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/lookup/ResolutionByTypeTest.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/lookup/ResolutionByTypeTest.java 2009-01-18 00:07:54 UTC (rev 1054)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/lookup/ResolutionByTypeTest.java 2009-01-18 01:09:33 UTC (rev 1055)
@@ -5,7 +5,7 @@
import javax.webbeans.manager.Bean;
import org.jboss.webbeans.bean.SimpleBean;
-import org.jboss.webbeans.binding.CurrentBinding;
+import org.jboss.webbeans.binding.CurrentLiteral;
import org.jboss.webbeans.introspector.AnnotatedClass;
import org.jboss.webbeans.introspector.AnnotatedField;
import org.jboss.webbeans.introspector.jlr.AnnotatedClassImpl;
@@ -24,7 +24,7 @@
AnnotatedField<Tuna> tuna = new AnnotatedFieldImpl<Tuna>(FishFarm.class.getDeclaredField("tuna"), fishFarmClass);
assert tuna.getType().isAssignableFrom(Tuna.class);
assert tuna.getBindingTypes().size() == 1;
- assert tuna.getBindingTypes().contains(new CurrentBinding());
+ assert tuna.getBindingTypes().contains(new CurrentLiteral());
assert tuna.getType().isAssignableFrom(Tuna.class);
}
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1054 - doc/trunk/reference/en-US.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-17 19:07:54 -0500 (Sat, 17 Jan 2009)
New Revision: 1054
Modified:
doc/trunk/reference/en-US/ri-spi.xml
Log:
Update for SPI changes
Modified: doc/trunk/reference/en-US/ri-spi.xml
===================================================================
--- doc/trunk/reference/en-US/ri-spi.xml 2009-01-18 00:04:09 UTC (rev 1053)
+++ doc/trunk/reference/en-US/ri-spi.xml 2009-01-18 00:07:54 UTC (rev 1054)
@@ -38,6 +38,11 @@
property values are the fully qualified class name of the
implementation class.
</para>
+
+ <para>
+ All interfaces in the SPI support the decorator pattern and provide a
+ <literal>Forwarding</literal> class.
+ </para>
<section>
<title>Web Bean Discovery</title>
@@ -57,13 +62,6 @@
*/
public Iterable<URL> discoverWebBeansXml();
- /**
- * Gets a descriptor for each EJB in the application
- *
- * @return The bean class to descriptor map
- */
- public Iterable<EjbDescriptor<?>> discoverEjbs();
-
}]]></programlisting>
<para>
@@ -73,12 +71,51 @@
</para>
<para>
+ The Web Beans RI can be told to load your implementation of
+ <literal>WebBeanDiscovery</literal> using the property
+ <literal>org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery</literal> with the
+ fully qualified class name as the value. For example:
+ </para>
+
+ <programlisting>org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery=org.jboss.webbeans.integration.jbossas.WebBeanDiscoveryImpl</programlisting>
+
+ <para>
+ If the Web Beans RI is being used in a servlet container, it
+ expects a constructor of the form:
+ </para>
+
+ <programlisting><![CDATA[public WebBeanDiscoveryImpl(ServletContext servletContext) {}]]></programlisting>
+
+ <para>
+ The servlet context can be used to allow your implementation of
+ <literal>WebBeanDiscovery</literal> to interact with the container.
+ </para>
+
+ </section>
+
+ <section>
+ <title>EJB Discovery</title>
+
+ <para>
The Web Beans RI also delegates EJB3 bean discovery to the container
so that it doesn't have to scan for EJB3 annotations or parse
<literal>ejb-jar.xml</literal>. For each EJB in the application an
EJBDescriptor should be discovered:
</para>
+ <programlisting role="JAVA"><![CDATA[public interface EjbDiscovery
+{
+ public static final String PROPERTY_NAME = EjbDiscovery.class.getName();
+
+ /**
+ * Gets a descriptor for each EJB in the application
+ *
+ * @return The bean class to descriptor map
+ */
+ public Iterable<EjbDescriptor<?>> discoverEjbs();
+
+}]]></programlisting>
+
<programlisting role="JAVA"><![CDATA[public interface EjbDescriptor<T> {
/**
@@ -144,30 +181,39 @@
*/
public String getEjbName();
- /**
- * @return The JNDI string which can be used to lookup a proxy which
- * implements all local business interfaces
- *
- */
- public String getLocalJndiName();
}]]></programlisting>
<para>
- The contract described the JavaDoc is enough to implement
- an EJBDescriptor. In addition to these two interfaces, there is
- <literal>BusinessInterfaceDescriptor</literal> which represents a local
- business interface (encapsulating the interface class and jndi name).
+ The <literal>EjbDescriptor</literal> is fairly self-explanatory,
+ and should return the relevant metadata as defined in the EJB
+ specification. In addition to these two interfaces, there is
+ <literal>BusinessInterfaceDescriptor</literal> which represents a
+ local business interface (encapsulating the interface class and
+ jndi name used to look up an instance of the EJB).
</para>
-
+
<para>
The Web Beans RI can be told to load your implementation of
- <literal>WebBeanDiscovery</literal> using the property
- <literal>org.jboss.webbeans.bootstrap.WebBeanDiscovery</literal> with the
+ <literal>EjbDiscovery</literal> using the property
+ <literal>org.jboss.webbeans.bootstrap.spi.EjbDiscovery</literal> with the
fully qualified class name as the value. For example:
</para>
- <programlisting>org.jboss.webbeans.bootstrap.spi.WebBeanDiscovery=org.jboss.webbeans.integration.jbossas.WebBeanDiscoveryImpl</programlisting>
+ <programlisting>org.jboss.webbeans.bootstrap.spi.EjbDiscovery=org.jboss.webbeans.integration.jbossas.EjbDiscoveryImpl</programlisting>
+
+ <para>
+ If the Web Beans RI is being used in a servlet container, it
+ expects a constructor of the form:
+ </para>
+
+ <programlisting><![CDATA[public EjbDiscoveryImpl(ServletContext servletContext) {}]]></programlisting>
+
+ <para>
+ The servlet context can be used to allow your implementation of
+ <literal>EjbDiscovery</literal> to interact with the container.
+ </para>
+
</section>
<section>
@@ -178,10 +224,10 @@
standards, however you may want to alter the binding and lookup (for
example in an environment where JNDI isn't available). To do this,
implement
- <literal>org.jboss.webbeans.spi.resources.Naming</literal>:
+ <literal>org.jboss.webbeans.spi.resources.NamingContext</literal>:
</para>
- <programlisting role="JAVA"><![CDATA[public interface Naming extends Serializable {
+ <programlisting role="JAVA"><![CDATA[public interface NamingContext extends Serializable {
/**
* Typed JNDI lookup
@@ -196,10 +242,10 @@
/**
* Binds an item to JNDI
*
- * @param key The key to bind under
+ * @param name The key to bind under
* @param value The item to bind
*/
- public void bind(String key, Object value);
+ public void bind(String name, Object value);
}]]></programlisting>
@@ -207,7 +253,19 @@
and tell the RI to use it:
</para>
- <programlisting>org.jboss.webbeans.resources.spi.Naming=com.acme.MyNaming</programlisting>
+ <programlisting>org.jboss.webbeans.resources.spi.NamingContext=com.acme.MyNamingContext</programlisting>
+
+ <para>
+ If the Web Beans RI is being used in a servlet container, it
+ expects a constructor of the form:
+ </para>
+
+ <programlisting><![CDATA[public MyNamingContext(ServletContext servletContext) {}]]></programlisting>
+
+ <para>
+ The servlet context can be used to allow your implementation of
+ <literal>NamingContext</literal> to interact with the container.
+ </para>
</section>
@@ -257,6 +315,18 @@
</para>
<programlisting>org.jboss.webbeans.resources.spi.ResourceLoader=com.acme.ResourceLoader</programlisting>
+
+ <para>
+ If the Web Beans RI is being used in a servlet container, it
+ expects a constructor of the form:
+ </para>
+
+ <programlisting><![CDATA[public MyResourceLoader(ServletContext servletContext) {}]]></programlisting>
+
+ <para>
+ The servlet context can be used to allow your implementation of
+ <literal>ResourceLoader</literal> to interact with the container.
+ </para>
</section>
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1053 - ri/trunk.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-17 19:04:09 -0500 (Sat, 17 Jan 2009)
New Revision: 1053
Modified:
ri/trunk/pom.xml
Log:
enforce maven version
Modified: ri/trunk/pom.xml
===================================================================
--- ri/trunk/pom.xml 2009-01-17 23:57:33 UTC (rev 1052)
+++ ri/trunk/pom.xml 2009-01-18 00:04:09 UTC (rev 1053)
@@ -281,6 +281,25 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>enforce-versions</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireMavenVersion>
+ <version>2.0.9</version>
+ </requireMavenVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<pluginManagement>
17 years, 2 months