[webbeans-commits] Webbeans SVN: r2796 - in ri/trunk: impl/src/main/java/org/jboss/webbeans/bootstrap and 7 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-06-09 10:27:57 -0400 (Tue, 09 Jun 2009)
New Revision: 2796
Added:
ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/context/StringHolder.java
ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/field/Target.java
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/context/ContextLifecycle.java
ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/ServiceRegistry.java
ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/ForwardingServiceRegistry.java
ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/SimpleServiceRegistry.java
ri/trunk/tests/src/main/java/org/jboss/webbeans/test/AbstractWebBeansTest.java
ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/context/ParameterizedTypeScopedTest.java
ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/field/ParameterizedProducerTest.java
ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/lookup/LookupInstanceTest.java
Log:
More clean up
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-06-09 01:29:25 UTC (rev 2795)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-06-09 14:27:57 UTC (rev 2796)
@@ -51,7 +51,6 @@
import javax.enterprise.inject.AmbiguousResolutionException;
import javax.enterprise.inject.BindingType;
import javax.enterprise.inject.Stereotype;
-import javax.enterprise.inject.TypeLiteral;
import javax.enterprise.inject.UnproxyableResolutionException;
import javax.enterprise.inject.UnsatisfiedResolutionException;
import javax.enterprise.inject.deployment.Production;
@@ -782,45 +781,14 @@
* @param bindings The binding types to match
* @return An instance of the bean
*
- * @see javax.enterprise.inject.spi.BeanManager#getInstanceByType(java.lang.Class,
- * java.lang.annotation.Annotation[])
*/
@Deprecated
public <T> T getInstanceByType(Class<T> type, Annotation... bindings)
{
- return getInstanceByType(ResolvableAnnotatedClass.of(type, bindings), bindings);
+ AnnotatedItem<T, ?> element = ResolvableAnnotatedClass.of(type, bindings);
+ return (T) getReference(getBean(element, bindings), type);
}
- /**
- * Returns an instance by type literal and binding types
- *
- * @param type The type to match
- * @param bindings The binding types to match
- * @return An instance of the bean
- *
- * @see javax.enterprise.inject.spi.BeanManager#getInstanceByType(javax.enterprise.inject.TypeLiteral,
- * java.lang.annotation.Annotation[])
- */
- @Deprecated
- public <T> T getInstanceByType(TypeLiteral<T> type, Annotation... bindings)
- {
- return getInstanceByType(ResolvableAnnotatedClass.of(type, bindings), bindings);
- }
-
- /**
- * Resolve an instance, verify that the resolved bean can be instantiated,
- * and return
- *
- * @param element The annotated item to match
- * @param bindings The binding types to match
- * @return An instance of the bean
- */
- @Deprecated
- public <T> T getInstanceByType(AnnotatedItem<T, ?> element, Annotation... bindings)
- {
- return (T) getReference(getBean(element, bindings), element.getType());
- }
-
public <T> Bean<T> getBean(AnnotatedItem<T, ?> element, Annotation... bindings)
{
Set<Bean<?>> beans = getBeans(element, bindings);
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java 2009-06-09 01:29:25 UTC (rev 2795)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bootstrap/WebBeansBootstrap.java 2009-06-09 14:27:57 UTC (rev 2796)
@@ -213,9 +213,8 @@
log.debug("Web Beans initialized. Validating beans.");
manager.getResolver().resolveInjectionPoints();
new BeanValidator(manager).validate();
- manager.fireEvent(new AfterDeploymentValidationImpl());
manager.getResolver().resolveInjectionPoints();
-
+ manager.fireEvent(new AfterDeploymentValidationImpl());
endDeploy(requestBeanStore);
}
}
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/context/ContextLifecycle.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/context/ContextLifecycle.java 2009-06-09 01:29:25 UTC (rev 2795)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/context/ContextLifecycle.java 2009-06-09 14:27:57 UTC (rev 2796)
@@ -22,6 +22,9 @@
*/
package org.jboss.webbeans.context;
+import javax.enterprise.inject.Any;
+import javax.enterprise.inject.Instance;
+
import org.jboss.webbeans.CurrentManager;
import org.jboss.webbeans.bootstrap.api.Lifecycle;
import org.jboss.webbeans.context.api.BeanStore;
@@ -41,6 +44,8 @@
{
private static LogProvider log = Logging.getLogProvider(ContextLifecycle.class);
+
+ @Any private Instance<ConversationManager> conversationManager;
public void restoreSession(String id, BeanStore sessionBeanStore)
{
Modified: ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/ServiceRegistry.java
===================================================================
--- ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/ServiceRegistry.java 2009-06-09 01:29:25 UTC (rev 2795)
+++ ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/ServiceRegistry.java 2009-06-09 14:27:57 UTC (rev 2796)
@@ -6,7 +6,7 @@
* @author Pete Muir
*
*/
-public interface ServiceRegistry
+public interface ServiceRegistry extends Iterable<Service>
{
/**
Modified: ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/ForwardingServiceRegistry.java
===================================================================
--- ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/ForwardingServiceRegistry.java 2009-06-09 01:29:25 UTC (rev 2795)
+++ ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/ForwardingServiceRegistry.java 2009-06-09 14:27:57 UTC (rev 2796)
@@ -1,5 +1,7 @@
package org.jboss.webbeans.bootstrap.api.helpers;
+import java.util.Iterator;
+
import org.jboss.webbeans.bootstrap.api.Service;
import org.jboss.webbeans.bootstrap.api.ServiceRegistry;
@@ -23,4 +25,9 @@
return delegate().get(type);
}
+ public Iterator<Service> iterator()
+ {
+ return delegate().iterator();
+ }
+
}
Modified: ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/SimpleServiceRegistry.java
===================================================================
--- ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/SimpleServiceRegistry.java 2009-06-09 01:29:25 UTC (rev 2795)
+++ ri/trunk/spi/src/main/java/org/jboss/webbeans/bootstrap/api/helpers/SimpleServiceRegistry.java 2009-06-09 14:27:57 UTC (rev 2796)
@@ -17,7 +17,9 @@
package org.jboss.webbeans.bootstrap.api.helpers;
import java.util.HashMap;
+import java.util.Iterator;
import java.util.Map;
+import java.util.Map.Entry;
import org.jboss.webbeans.bootstrap.api.Service;
import org.jboss.webbeans.bootstrap.api.ServiceRegistry;
@@ -79,4 +81,40 @@
return services.equals(obj);
}
+ public Iterator<Service> iterator()
+ {
+ return new ValueIterator<Class<? extends Service>, Service>()
+ {
+
+ @Override
+ protected Iterator<Entry<Class<? extends Service>, Service>> delegate()
+ {
+ return services.entrySet().iterator();
+ }
+
+ };
+ }
+
+ private static abstract class ValueIterator<K, V> implements Iterator<V>
+ {
+
+ protected abstract Iterator<Entry<K, V>> delegate();
+
+ public boolean hasNext()
+ {
+ return delegate().hasNext();
+ }
+
+ public V next()
+ {
+ return delegate().next().getValue();
+ }
+
+ public void remove()
+ {
+ delegate().remove();
+ }
+
+ }
+
}
Modified: ri/trunk/tests/src/main/java/org/jboss/webbeans/test/AbstractWebBeansTest.java
===================================================================
--- ri/trunk/tests/src/main/java/org/jboss/webbeans/test/AbstractWebBeansTest.java 2009-06-09 01:29:25 UTC (rev 2795)
+++ ri/trunk/tests/src/main/java/org/jboss/webbeans/test/AbstractWebBeansTest.java 2009-06-09 14:27:57 UTC (rev 2796)
@@ -165,9 +165,20 @@
{
throw new RuntimeException("No beans resolved to " + beanType + " with bindings " + Arrays.asList(bindings));
}
- @SuppressWarnings("deprecated")
+ @SuppressWarnings("unchecked")
Bean<T> bean = (Bean<T>) beans.iterator().next();
return bean;
}
+ @SuppressWarnings("unchecked")
+ public <T> T createContextualInstance(Class<T> beanType, Annotation... bindings)
+ {
+ return (T) createContextualInstance((Type) beanType, bindings);
+ }
+
+ public Object createContextualInstance(Type beanType, Annotation... bindings)
+ {
+ return getCurrentManager().getReference(getBean(beanType, bindings), beanType);
+ }
+
}
Modified: ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/context/ParameterizedTypeScopedTest.java
===================================================================
--- ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/context/ParameterizedTypeScopedTest.java 2009-06-09 01:29:25 UTC (rev 2795)
+++ ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/context/ParameterizedTypeScopedTest.java 2009-06-09 14:27:57 UTC (rev 2796)
@@ -2,8 +2,6 @@
import java.util.List;
-import javax.enterprise.inject.TypeLiteral;
-
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.webbeans.test.AbstractWebBeansTest;
import org.testng.annotations.Test;
@@ -15,10 +13,7 @@
@Test
public void testStringList()
{
- List<String> str = getCurrentManager().getInstanceByType(new TypeLiteral<List<String>>()
- {
- });
-
+ List<String> str = createContextualInstance(StringHolder.class).getStrings();
assert str.size() == 2;
}
}
Added: ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/context/StringHolder.java
===================================================================
--- ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/context/StringHolder.java (rev 0)
+++ ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/context/StringHolder.java 2009-06-09 14:27:57 UTC (rev 2796)
@@ -0,0 +1,19 @@
+package org.jboss.webbeans.test.unit.context;
+
+import java.util.List;
+
+import javax.enterprise.inject.Current;
+
+
+public class StringHolder
+{
+
+ @Current
+ private List<String> strings;
+
+ public List<String> getStrings()
+ {
+ return strings;
+ }
+
+}
Property changes on: ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/context/StringHolder.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/field/ParameterizedProducerTest.java
===================================================================
--- ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/field/ParameterizedProducerTest.java 2009-06-09 01:29:25 UTC (rev 2795)
+++ ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/field/ParameterizedProducerTest.java 2009-06-09 14:27:57 UTC (rev 2796)
@@ -3,8 +3,6 @@
import java.util.Collection;
import java.util.List;
-import javax.enterprise.inject.TypeLiteral;
-
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.webbeans.test.AbstractWebBeansTest;
import org.testng.annotations.Test;
@@ -16,9 +14,8 @@
@Test
public void testParameterizedListInjection()
{
- assert getCurrentManager().getInstanceByType(new TypeLiteral<List<String>>()
- {
- }).size() == 2;
+ List<String> strings = createContextualInstance(Target.class).getStringList();
+ assert strings.size() == 2;
ParameterizedListInjection item = getCurrentManager().getInstanceByType(ParameterizedListInjection.class);
assert item.getFieldInjection().size() == 2;
@@ -30,9 +27,8 @@
@Test
public void testParameterizedCollectionInjection()
{
- assert getCurrentManager().getInstanceByType(new TypeLiteral<Collection<String>>()
- {
- }).size() == 2;
+ Collection<String> strings = createContextualInstance(Target.class).getStrings();
+ assert strings.size() == 2;
ParameterizedCollectionInjection item = getCurrentManager().getInstanceByType(ParameterizedCollectionInjection.class);
assert item.getFieldInjection().size() == 2;
@@ -56,7 +52,8 @@
@Test
public void testIntegerCollectionInjection()
{
- assert getCurrentManager().getInstanceByType(new TypeLiteral<Collection<Integer>>(){}).size() == 4;
+ Collection<Integer> integers = createContextualInstance(Target.class).getIntegers();
+ assert integers.size() == 4;
IntegerCollectionInjection item = getCurrentManager().getInstanceByType(IntegerCollectionInjection.class);
assert item.getFieldInjection().size() == 4;
Added: ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/field/Target.java
===================================================================
--- ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/field/Target.java (rev 0)
+++ ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/field/Target.java 2009-06-09 14:27:57 UTC (rev 2796)
@@ -0,0 +1,32 @@
+package org.jboss.webbeans.test.unit.implementation.producer.field;
+
+import java.util.Collection;
+import java.util.List;
+
+import javax.enterprise.inject.Current;
+
+public class Target
+{
+
+ @Current private Collection<String> strings;
+
+ @Current private Collection<Integer> integers;
+
+ @Current private List<String> stringList;
+
+ public Collection<String> getStrings()
+ {
+ return strings;
+ }
+
+ public Collection<Integer> getIntegers()
+ {
+ return integers;
+ }
+
+ public List<String> getStringList()
+ {
+ return stringList;
+ }
+
+}
Property changes on: ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/field/Target.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/lookup/LookupInstanceTest.java
===================================================================
--- ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/lookup/LookupInstanceTest.java 2009-06-09 01:29:25 UTC (rev 2795)
+++ ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/lookup/LookupInstanceTest.java 2009-06-09 14:27:57 UTC (rev 2796)
@@ -18,7 +18,7 @@
@Test
public void testLookupInstance() throws Exception
{
- assert getCurrentManager().getInstanceByType(new TypeLiteral<Instance<List<?>>>(){}, new ObtainsLiteral()) == null;
+ assert createContextualInstance(new TypeLiteral<Instance<List<?>>>(){}.getRawType(), new ObtainsLiteral()) == null;
}
}
15 years, 7 months
[webbeans-commits] Webbeans SVN: r2795 - tck/trunk/impl/src/main/resources.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-06-08 21:29:25 -0400 (Mon, 08 Jun 2009)
New Revision: 2795
Modified:
tck/trunk/impl/src/main/resources/tck-audit.xml
Log:
updated chapter 10 assertions, fixed invalid xml
Modified: tck/trunk/impl/src/main/resources/tck-audit.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-audit.xml 2009-06-08 22:16:53 UTC (rev 2794)
+++ tck/trunk/impl/src/main/resources/tck-audit.xml 2009-06-09 01:29:25 UTC (rev 2795)
@@ -95,8 +95,7 @@
<assertion id="m">
<text>If an injection point type is a type variable, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
+ </assertion>
</section>
<section id="2.2.2" title="Typecasting between bean types">
@@ -369,7 +368,7 @@
</section>
- <section id="2.5.5" title="Default deployment type">
+ <section id="2.5.4" title="Default deployment type">
<assertion id="a0">
<text>If a producer method does not declare any stereotype with a declared default deployment type, then the default deployment type is the deployment type of the bean that declares the producer method or field.</text>
@@ -457,7 +456,7 @@
</assertion>
</section>
- <section id="2.6.4" title="Beans with no EL name">
+ <section id="2.6.3" title="Beans with no EL name">
<assertion id="a">
<text>If |@Named| is not specified, by neither the bean nor its stereotypes, a bean has no EL name</text>
@@ -553,7 +552,7 @@
</assertion>
</section>
- <section id="2.7.1.5" title="Stereotypes with additional stereotypes">
+ <section id="2.7.1.4" title="Stereotypes with additional stereotypes">
<assertion id="a">
<text>A stereotype may declare other stereotypes</text>
</assertion>
@@ -611,7 +610,6 @@
<text>The built-in stereotype |(a)javax.enterprise.inject.Model| is intended for use with beans that define the model layer of an MVC web application architecture such as JSF</text>
<note>Tested by API signature test</note>
</assertion>
-
</section>
<section id="3" title="Bean Implementation">
@@ -628,8 +626,7 @@
</assertion>
</section>
- <section id="3.2" title="Managed beans">
-
+ <section id="3.2" title="Managed beans">
<assertion id="f0">
<text>If the bean class of a managed bean is annotated with both the |@Interceptor| and |@Decorator| stereotypes, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
</assertion>
@@ -645,12 +642,10 @@
<assertion id="g">
<text>If the managed bean class is a parameterized type, it must have scope |@Dependent|. If a managed bean with a parameterized bean class declares any scope other than |@Dependent|, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
+ </assertion>
</section>
<section id="3.2.1" title="Which Java classes are managed beans?">
-
<assertion id="b">
<text>A top-level Java class is not a managed bean if it is a non-static inner class</text>
</assertion>
@@ -678,8 +673,7 @@
<assertion id="q">
<text>A top-level Java class is only a managed bean if it has an appropriate constructor - a constructor annotated |@Initializer|</text>
- </assertion>
-
+ </assertion>
</section>
<section id="3.2.2" title="Bean types of a managed bean">
@@ -718,12 +712,10 @@
</assertion>
</section>
- <section id="3.2.4" title="Bean constructors">
-
+ <section id="3.2.4" title="Bean constructors">
<assertion id="a">
<text>When the container instantiates a managed bean, it calls the bean constructor. The bean constructor is a constructor of the bean class</text>
- </assertion>
-
+ </assertion>
</section>
<section id="3.2.4.1" title="Declaring a bean constructor">
@@ -746,12 +738,10 @@
<assertion id="ea">
<text>If a bean constructor has a parameter annotated |@Observes|, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
+ </assertion>
</section>
- <section id="3.2.4.2" title="Bean constructor parameters">
-
+ <section id="3.2.4.2" title="Bean constructor parameters">
<assertion id="b">
<text>A bean constructor may have any number of parameters.</text>
</assertion>
@@ -769,7 +759,6 @@
<assertion id="da">
<text>If the bean class of X does not directly extend the bean class of another managed bean, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
</assertion>
-
</section>
<section id="3.2.6" title="Default name for a managed bean">
@@ -815,8 +804,7 @@
<assertion id="i">
<text>If the session bean class is a parameterized type, it must have scope |@Dependent|. If a session bean with a parameterized bean class declares any scope other than |@Dependent|, the container automatically detects the problem and treats it as a
definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
- </assertion>
-
+ </assertion>
</section>
<section id="3.3.1" title="EJB remove methods of session beans">
@@ -838,12 +826,10 @@
<assertion id="dba">
<text>If the application directly calls an EJB remove method of an instance of a session bean that is a stateful session bean and has scope |@Dependent| then the container ignores the instance instead of destroying it when |Contextual.destroy()| is called, as defined in Section 6.5, "Lifecycle of stateful session beans"</text>
- </assertion>
-
+ </assertion>
</section>
- <section id="3.3.2" title="Bean types of a session bean">
-
+ <section id="3.3.2" title="Bean types of a session bean">
<assertion id="aa">
<text>The set of bean types for a session bean contains all local interfaces of the bean and their superinterfaces.</text>
</assertion>
@@ -895,6 +881,7 @@
<assertion id="aa">
<text>If a bean class of a session bean X is annotated |@Specializes|, then the bean class of X must directly extend the bean class of another session bean Y. Then X directly specializes Y, as defined in Section 4.3 "Specialization".</text>
+ </assertion>
<assertion id="da">
<text>If the bean class of X does not directly extend the bean class of another session bean, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
@@ -907,7 +894,6 @@
<assertion id="f">
<text>Session bean X that specializes session bean Y must support a bean-class local view if Y supports a bean-class local view</text>
</assertion>
-
</section>
<section id="3.3.5" title="Default name for a session bean">
@@ -968,8 +954,7 @@
</assertion>
</section>
- <section id="3.4.1" title="Bean types of a producer method">
-
+ <section id="3.4.1" title="Bean types of a producer method">
<assertion id="a">
<text>If the return type of a producer method is an interface, the set of bean types contains the return type, all interfaces it extends directly or indirectly and |java.lang.Object|</text>
</assertion>
@@ -1026,8 +1011,7 @@
</assertion>
</section>
- <section id="3.4.3" title="Producer method parameters">
-
+ <section id="3.4.3" title="Producer method parameters">
<assertion id="b">
<text>A producer method may have any number of parameters.</text>
</assertion>
@@ -1052,8 +1036,7 @@
</assertion>
</section>
- <section id="3.4.5" title="Disposal methods">
-
+ <section id="3.4.5" title="Disposal methods">
<assertion id="a">
<text>A disposal method must be a method of a managed bean class or session bean class.</text>
</assertion>
@@ -1075,8 +1058,7 @@
</assertion>
</section>
- <section id="3.4.6" title="Disposed parameter of a disposal method">
-
+ <section id="3.4.6" title="Disposed parameter of a disposal method">
<assertion id="a">
<text>Each disposal method must have exactly one disposed parameter, of the same type as the corresponding producer method return type</text>
</assertion>
@@ -1090,8 +1072,7 @@
</assertion>
</section>
- <section id="3.4.7" title="Declaring a disposal method">
-
+ <section id="3.4.7" title="Declaring a disposal method">
<assertion id="a">
<text>A disposal method may be declared by annotating a parameter |(a)javax.enterprise.inject.Disposes|. That parameter is the disposed parameter</text>
</assertion>
@@ -1121,15 +1102,13 @@
</assertion>
</section>
- <section id="3.4.8" title="Disposal method parameters">
-
+ <section id="3.4.8" title="Disposal method parameters">
<assertion id="a">
- <text>In addition to the disposed parameter, a disposal method may declare additional parameters, which may also specify bindings. These additional parameters are injection points.</text>
+ <text>In addition to the disposed parameter, a disposal method may declare additional parameters, which may also specify bindings. These additional parameters are injection points.</text>
</assertion>
</section>
- <section id="3.4.9" title="Disposal method resolution">
-
+ <section id="3.4.9" title="Disposal method resolution">
<assertion id="aa">
<text>When searching for disposal methods for a producer method, the container searches for disposal methods which are declared by the same bean class as the producer method, and for which the disposed parameter resolves to the producer method, according to the typesafe resolution algorithm defined in Section 5.1, "Typesafe resolution algorithm".</text>
</assertion>
@@ -1143,15 +1122,13 @@
</assertion>
</section>
- <section id="3.4.10" title="Default name for a producer method">
-
+ <section id="3.4.10" title="Default name for a producer method">
<assertion id="a">
<text>The default name for a producer method is the method name, unless the method follows the JavaBeans property getter naming convention, in which case the default name is the JavaBeans property name</text>
</assertion>
</section>
- <section id="3.5" title="Producer fields">
-
+ <section id="3.5" title="Producer fields">
<assertion id="a">
<text>A producer field must be a field of a managed bean class or session bean class</text>
</assertion>
@@ -1198,8 +1175,7 @@
</assertion>
</section>
- <section id="3.5.1" title="Bean types of a producer field">
-
+ <section id="3.5.1" title="Bean types of a producer field">
<assertion id="a">
<text>The bean types of a producer field depend upon the field type. If the field type is an interface, the set of bean types contains the field type, all interfaces it extends directly or indirectly and java.lang.Object</text>
</assertion>
@@ -1213,8 +1189,7 @@
</assertion>
</section>
- <section id="3.5.2" title="Declaring a producer field using annotations">
-
+ <section id="3.5.2" title="Declaring a producer field using annotations">
<assertion id="a">
<text>A producer field may be declared by annotating a field with the |(a)javax.enterprise.inject.Produces| annotation</text>
</assertion>
@@ -1246,8 +1221,7 @@
</assertion>
</section>
- <section id="3.6" title="Resources">
-
+ <section id="3.6" title="Resources">
<assertion id="k">
<text>A resource always has scope |@Dependent|</text>
</assertion>
@@ -1255,11 +1229,9 @@
<assertion id="l">
<text>A resource may not declare a bean EL name</text>
</assertion>
-
</section>
- <section id="3.6.1" title="Declaring a resource">
-
+ <section id="3.6.1" title="Declaring a resource">
<assertion id="aa">
<text>A resource may be declared by specifying a Java EE component environment injection annotation as part of a producer field declaration.</text>
</assertion>
@@ -1307,8 +1279,7 @@
</assertion>
</section>
- <section id="3.7" title="Message destinations">
-
+ <section id="3.7" title="Message destinations">
<assertion id="b">
<text>JMS queue resources must allow the direct injection of the |Queue|</text>
</assertion>
@@ -1459,12 +1430,10 @@
<assertion id="am">
<text>A JMS |TopicPublisher| resource may not declare a bean name</text>
- </assertion>
-
+ </assertion>
</section>
- <section id="3.7.1" title="Bean types of a message destination">
-
+ <section id="3.7.1" title="Bean types of a message destination">
<assertion id="a">
<text>For message destination that represent a queue, the bean types are |Queue|, |QueueConnection|, |QueueSession| and |QueueSender|</text>
</assertion>
@@ -1478,8 +1447,7 @@
</assertion>
</section>
- <section id="3.7.2" title="Declaring a message destination">
-
+ <section id="3.7.2" title="Declaring a message destination">
<assertion id="d">
<text>A message destination may be declared by specifying a |@Resource| annotation as part of a producer field declaration of type |Topic| or |Queue|.</text>
</assertion>
@@ -1493,8 +1461,7 @@
</assertion>
</section>
- <section id="3.8" title="Injected fields">
-
+ <section id="3.8" title="Injected fields">
<assertion id="aa">
<text>An injected field is a non-static~, non-final~ field of a bean class.</text>
</assertion>
@@ -1517,12 +1484,10 @@
<assertion id="h">
<text>If a field is a producer field, it is not an injected field</text>
- </assertion>
-
+ </assertion>
</section>
- <section id="3.8.1" title="Declaring an injected field">
-
+ <section id="3.8.1" title="Declaring an injected field">
<assertion id="a">
<text>An injected field may be declared by annotating the field with any binding type</text>
</assertion>
@@ -1557,6 +1522,7 @@
<text>The application may call initializer methods directly, but then no parameters will be passed to the method by the container</text>
<note>This is a statement of intent</note>
</assertion>
+ </section>
<section id="3.9.1" title="Declaring an initializer method">
<assertion id="a">
@@ -2457,7 +2423,7 @@
<section id="5.5.2" title="The built-in Instance">
<assertion id="a">
- <text>The container must provide a built-in bean with |Instance<X>| for every legal bean type X in its set of bean types</text>
+ <text>The container must provide a built-in bean with |Instance<X>| for every legal bean type X in its set of bean types</text>
</assertion>
<assertion id="b">
@@ -3264,10 +3230,10 @@
</assertion>
</section>
- <section id="6.9" title="Lifecycle of resources">
+ <section id="7.7" title="Lifecycle of resources">
<assertion id="l">
<text>When the |create()| method of a |Bean| object that represents a resource is called, the container creates and returns a container-
-specific internal reference to the Java EE component environment resource, entity manager, entity manager factory, remote EJB instance or web service reference. This reference is not directly exposed to the application./text>
+specific internal reference to the Java EE component environment resource, entity manager, entity manager factory, remote EJB instance or web service reference. This reference is not directly exposed to the application.</text>
</assertion>
<assertion id="m">
@@ -3506,7 +3472,7 @@
<section id="9.1" title="Interceptor binding types">
<assertion id="a">
- <text>An interceptor binding type is a Java annotation defined as |@Target({TYPE, METHOD})| or |@Target(TYPE)| and |(a)Retention(RUNTIME)|./text>
+ <text>An interceptor binding type is a Java annotation defined as |@Target({TYPE, METHOD})| or |@Target(TYPE)| and |@Retention(RUNTIME)|.</text>
</assertion>
<assertion id="b">
@@ -3622,7 +3588,7 @@
<assertion id="b">
<text>For a method, the bean interceptor bindings include the interceptor bindings declared by the bean at the class level, including
-interceptor bindings declared as meta-annotations of other interceptor bindings, recursively, and of stereotypes, together with all interceptor bindings declared at the method level, including interceptor bindings declared as meta-annotations of other interceptor bindings, recursively./text>
+interceptor bindings declared as meta-annotations of other interceptor bindings, recursively, and of stereotypes, together with all interceptor bindings declared at the method level, including interceptor bindings declared as meta-annotations of other interceptor bindings, recursively.</text>
</assertion>
<assertion id="c">
@@ -3664,18 +3630,14 @@
</section>
- <section id="7.1" title="Event types and binding types">
+ <section id="10.1" title="Event types and binding types">
- <assertion id="a">
- <text>An event object is an instance of a concrete Java class with no [type variables] or wildcards</text>
+ <assertion id="aa">
+ <text>An event object is an instance of a concrete Java class with no type variables.</text>
</assertion>
- <assertion id="b">
- <text>An event object is an instance of a concrete Java class with no type variables or [wildcards]</text>
- </assertion>
-
<assertion id="c">
- <text>The event types of the event include all superclasses and interfaces of the class of the event object</text>
+ <text>The event types of the event include all superclasses and interfaces of the runtime class of the event object.</text>
</assertion>
<assertion id="d">
@@ -3691,129 +3653,145 @@
</assertion>
<assertion id="g">
- <text>All event binding types must specify the |(a)javax.inject.BindingType| meta-annotation</text>
+ <text>All event binding types must specify the |(a)javax.enterprise.inject.BindingType| meta-annotation</text>
</assertion>
+ <assertion id="i">
+ <text>Every event has the binding |(a)javax.enterprise.inject.Any|, even if it does not explicitly declare this binding.</text>
+ </assertion>
+ </section>
+
+ <section id="10.2" title="Observer resolution algorithm">
<assertion id="h">
- <text>An event consumer will be notified of an event if the observed event type it specifies is one of the event types of the event, and if all the observed event bindings it specifies are event bindings of the event</text>
+ <text>An event consumer will be notified of an event if the observed event type it specifies is one of the event types of the event, and if all the observed event bindings it specifies are event bindings of the event.</text>
</assertion>
+
+ <assertion id="j">
+ <text>If the runtime type of the event object contains a type variable, the container must throw an |IllegalArgumentException|.</text>
+ </assertion>
+ </section>
+ <section id="10.2.1" title="Event binding types with members">
+ <assertion id="a">
+ <text>The binding type for an |Event| binding may have annotation members</text>
+ </assertion>
+
+ <assertion id="b" testable="false">
+ <text>The container uses |equals()| to compare event binding type member values</text>
+ <note>Since only primitive types are allowed, the call to equals() cannot be checked</note>
+ </assertion>
</section>
- <section id="7.2" title="Firing an event via the Manager interface">
-
+ <section id="10.2.2" title="Multiple event bindings">
<assertion id="a">
- <text>The |Manager| interface provides the |fireEvent()| method for firing events</text>
+ <text>An event parameter may have multiple bindings</text>
</assertion>
<assertion id="b">
- <text>If the type of the event object passed to |fireEvent()| contains [type variables] or wildcards, an |IllegalArgumentException| is thrown</text>
+ <text>An observer method will only be notified if all the observed event bindings are specified when the event is fired</text>
</assertion>
<assertion id="c">
- <text>If the type of the event object passed to |fireEvent()| contains type variables or [wildcards], an |IllegalArgumentException| is thrown</text>
+ <text>Other, less specific, observers will also be notified of events with multiple event bindings</text>
</assertion>
-
- <assertion id="d">
- <text>If an instance of an annotation that is not a binding type is passed to |fireEvent()|, an |IllegalArgumentException| is thrown. (Not in PRD2, but should appear in next revision)</text>
- </assertion>
-
+ </section>
+
+ <section id="10.3" title="The Observer interface">
+ <assertion id="a">
+ <text>Observers of events implement the |javax.enterprise.event.Observer| interface.</text>
+ </assertion>
</section>
- <section id="7.3" title="Observing events via the Observer interface">
+ <section id="10.4" title="Firing events">
<assertion id="a">
- <text>Observers of events implement the |javax.event.Observer| interface</text>
+ <text>Beans fire events via an instance of the |javax.enterprise.event.Event| interface, which may be injected.</text>
</assertion>
<assertion id="b">
- <text>An observer instance may be registered with the container by calling |Manager.addObserver()|</text>
+ <text>The method |fire()| accepts an event object.</text>
</assertion>
<assertion id="c">
- <text>In the signature of |Manager.addObserver()|, the first parameter is the observer object, the second parameter is the observed event type, and the remaining parameters are optional observed event bindings</text>
+ <text>Any combination of bindings may be specified at the injection point.</text>
</assertion>
<assertion id="d">
- <text>The observer is notified when an event object that is assignable to the observed event type is raised with the observed event bindings</text>
+ <text>Or, the application may specify bindings dynamically.</text>
</assertion>
<assertion id="e">
- <text>An observer instance may be deregistered by calling |Manager.removeObserver()|</text>
+ <text>The |observe()| method registers an observer.</text>
+ </assertion>
+ </section>
+
+ <section id="10.4.1" title="The Event interface">
+ <assertion id="c">
+ <text>The |Event| interface provides a method for firing events of a specific type</text>
</assertion>
- <assertion id="f">
- <text>If the observed event type passed to ~|addObserver()|~ or |removeObserver()| contains ~type variables~ or wildcards, an |IllegalArgumentException| is thrown</text>
+ <assertion id="d">
+ <text>The |Event| interface provides a method for registering observers for events of the same type.</text>
</assertion>
- <assertion id="g">
- <text>If the observed event type passed to ~|addObserver()|~ or |removeObserver()| contains type variables or ~wildcards~, an |IllegalArgumentException| is thrown</text>
+ <assertion id="ea">
+ <text>The |select()| method of the provided implementation of |Event |returns a child |Event| for a subtype of the event type and additional event bindings. If no subtype is given, the event type is the same as the parent.</text>
</assertion>
- <assertion id="h">
- <text>If the observed event type passed to |addObserver()| or ~|removeObserver()|~ contains ~type variables~ or wildcards, an |IllegalArgumentException| is thrown</text>
+ <assertion id="eb">
+ <text>If two instances of the same binding type are passed to |select()|, a |DuplicateBindingTypeException| is thrown.</text>
</assertion>
- <assertion id="i">
- <text>If the observed event type passed to |addObserver()| or ~|removeObserver()|~ contains type variables or ~wildcards~, an |IllegalArgumentException| is thrown</text>
+ <assertion id="ec">
+ <text>If an instance of an annotation that is not a binding type is passed to |select()|, an |IllegalArgumentException| is thrown.</text>
</assertion>
- <assertion id="j">
- <text>If two instances of the same binding type are passed to ~|addObserver()|~ or |removeObserver()|, a |DuplicateBindingTypeException| is thrown</text>
+ <assertion id="ed">
+ <text>The |fire()| method of the provided implementation of |Event| must call |BeanManager.fireEvent()|, passing the event type and bindings specified at the injection point. A child |Event| passes the event subtype and additional bindings, along with the bindings of its parent.</text>
</assertion>
- <assertion id="k">
- <text>If two instances of the same binding type are passed to |addObserver()| or ~|removeObserver()|~, a |DuplicateBindingTypeException| is thrown</text>
+ <assertion id="ee">
+ <text>The |observe()| method of the provided implementation of |Event| must call |BeanManager.addObserver()|, passing the given observer object along with the event type and bindings specified at the injection point. A child |Event| passes the event subtype and additional bindings, along with the bindings of its parent.</text>
</assertion>
-
- <assertion id="l">
- <text>If an instance of an annotation that is not a binding type is passed to ~|addObserver()|~ or |removeObserver()|, an |IllegalArgumentException| is thrown</text>
- </assertion>
+ </section>
- <assertion id="m">
- <text>If an instance of an annotation that is not a binding type is passed to |addObserver()| or ~|removeObserver()|~, an |IllegalArgumentException| is thrown</text>
+ <section id="10.4.2" title="The built-in Event">
+ <assertion id="a">
+ <text>The container must provide a built-in bean with |Event<X>| for every legal observed event type X in its set of bean types.</text>
</assertion>
- </section>
-
- <section id="7.4" title="Observer notification">
-
- <assertion id="a" testable="false">
- <text>When an event is fired by the application the container must determine the observers for that event by calling |Manager.resolveObservers()|, passing the event object and all event bindings</text>
- <note>This is not testable</note>
- </assertion>
<assertion id="b">
- <text>When an event is fired by the application the container must, for each observer, call the |notify()| method of the Observer interface, passing the event object</text>
+ <text>The container must provide a built-in bean with every event binding type in its set of binding types.</text>
</assertion>
<assertion id="c">
- <text>If an observer throws an exception, the exception aborts processing of the event. No other observers of that event will be called. The |fireEvent()| method rethrows the exception</text>
+ <text>The container must provide a built-in bean with deployment type |@Standard|.</text>
</assertion>
<assertion id="d">
- <text>Any observer called before completion of a transaction may call |setRollbackOnly()| to force a transaction rollback</text>
+ <text>The container must provide a built-in bean with scope |@Dependent|.</text>
</assertion>
<assertion id="e">
- <text>An observer may not directly ~initiate~, commit or rollback JTA transactions</text>
+ <text>The container must provide a built-in bean with no bean EL name.</text>
</assertion>
-
+
<assertion id="f">
- <text>An observer may not directly initiate, ~commit~ or rollback JTA transactions</text>
+ <text>The container must provide a built-in bean with an implementation provided automatically by the container.</text>
</assertion>
-
+
<assertion id="g">
- <text>An observer may not directly initiate, commit or ~rollback~ JTA transactions</text>
+ <text>The built-in implementation must be a passivation capable dependency, as defined in Section 6.6.2, "Passivation capable
+dependencies".</text>
</assertion>
+ </section>
- </section>
-
- <section id="7.5" title="Observer methods">
+ <section id="10.5" title="Observer methods">
<assertion id="a">
<text>An observer method is an observer defined via annotations, instead of by explicitly implementing the Observer interface. Unlike regular observers, observer methods are automatically discovered and registered by the container</text>
</assertion>
<assertion id="b">
- <text>An observer method must be a method of a simple bean class or session bean class</text>
+ <text>An observer method must be a method of a managed bean class or session bean class</text>
</assertion>
<assertion id="c">
@@ -3821,7 +3799,7 @@
</assertion>
<assertion id="d">
- <text>If the bean is a session bean, the observer method must be a business method of the EJB or a static method of the bean class</text>
+ <text>If the bean is a session bean, the observer method must be either a business method of the EJB or a static method of the bean class</text>
</assertion>
<assertion id="e">
@@ -3833,72 +3811,59 @@
</assertion>
</section>
- <section id="7.5.1" title="Event parameter of an observer method">
+ <section id="10.5.1" title="Event parameter of an observer method">
<assertion id="a">
<text>Each observer method must have exactly one event parameter, of the same type as the event type it observes. When searching for observer methods for an event, the container considers the type and bindings of the event parameter</text>
</assertion>
<assertion id="b">
<text>If the event parameter does not explicitly declare any binding, the observer method observes events with no binding</text>
- </assertion>
-
- <assertion id="c">
- <text>If the type of the event parameter contains type variables or wildcards, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
+ </assertion>
</section>
- <section id="7.5.2" title="Declaring an observer method using annotations">
+ <section id="10.5.2" title="Declaring an observer method">
<assertion id="a">
- <text>A observer method may be declared using annotations by annotating a parameter |(a)javax.event.Observes|. That parameter is the event parameter.</text>
+ <text>An observer method may be declared by annotating a parameter |(a)javax.enterprise.event.Observes|. That parameter is the event parameter. The declared type of the parameter is the observed event type.</text>
</assertion>
<assertion id="b">
- <text>If a method has more than one parameter annotated |@Observes|, a |DefinitionException| is thrown by the container at deployment time</text>
+ <text>If a method has more than one parameter annotated |@Observes|, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
</assertion>
<assertion id="c">
- <text>If an observer method is annotated |@Produces| a |DefinitionException| is thrown by the container at deployment time</text>
+ <text>Observed event bindings may be declared by annotating the event parameter.</text>
</assertion>
<assertion id="d">
- <text>If an observer method is annotated |@Initializer| a |DefinitionException| is thrown by the container at deployment time</text>
+ <text>If an observer method is annotated |@Produces| the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
</assertion>
<assertion id="e">
- <text>If an observer method has a parameter annotated |@Disposes|, a |DefinitionException| is thrown by the container at deployment time</text>
+ <text>If an observer method is annotated |@Initializer| the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
</assertion>
<assertion id="f">
- <text>If a non-static method of a session bean class has a parameter annotated |@Observes|, and the method is not a business method of the EJB, a |DefinitionException| is thrown by the container at deployment time</text>
+ <text>If an observer method is has a parameter annotated |@Disposes|, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
</assertion>
<assertion id="g">
- <text>The event parameter may declare bindings</text>
- </assertion>
+ <text>If a non-static method of a session bean class has a parameter annotated |@Observes|, and the method is not a business method of the EJB, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
+ </assertion>
</section>
- <section id="7.5.3" title="Declaring an observer method using XML">
-
- </section>
-
- <section id="7.5.4" title="Observer method parameters">
+ <section id="10.5.3" title="Observer method parameters">
<assertion id="a">
- <text>In addition to the event parameter, observer methods may declare additional parameters, which may declare bindings. The container calls the method |Manager.getInstanceToInject()| defined in Section 5.7.1, "Resolving dependencies" to determine a value for each parameter of an observer method and calls the observer method with those parameter values</text>
+ <text>In addition to the event parameter, observer methods may declare additional parameters, which may declare bindings. These additional parameters are injection points.</text>
</assertion>
</section>
- <section id="7.5.5" title="Conditional observer methods">
+ <section id="10.5.4" title="Conditional observer methods">
<assertion id="a">
- <text>Conditional observer methods are observer methods which are notified of an event only if an instance of the bean that defines the observer method already exists in the current context</text>
+ <text>A conditional observer method may be declared by annotating the event parameter with the |(a)javax.enterprise.event.IfExists| annotation.</text>
</assertion>
-
- <assertion id="b">
- <text>A conditional observer methods may be declared by annotating the event parameter with the |(a)javax.event.IfExists| annotation</text>
- </assertion>
-
</section>
- <section id="7.5.6" title="Transactional observer methods">
+ <section id="10.5.5" title="Transactional observer methods">
<assertion id="a">
<text>Transactional observer methods are observer methods which receive event notifications during the before or after completion phase of the transaction in which the event was fired. If no transaction is in progress when the event is fired, they are notified at the same time as other observers</text>
</assertion>
@@ -3919,57 +3884,70 @@
<text>An after failure observer method is called during the after completion phase of the transaction, only when the transaction fails</text>
</assertion>
- <assertion id="g">
- <text>A transactional observer method may be declared by annotating the event parameter of the observer method or ~in XML by a child element of the |<Observes>| element~</text>
+ <assertion id="ga">
+ <text>A transactional observer method may be declared by annotating the event parameter of the observer method with one of the four following annotations defined in the package |javax.enterprise.event|.</text>
</assertion>
- <assertion id="h">
- <text>The |(a)javax.event.BeforeTransactionCompletion| annotation or |<BeforeTransactionCompletion>| element specifies that the observer method is a before completion observer method</text>
+ <assertion id="ha">
+ <text>The |@BeforeTransactionCompletion| annotation specifies that the observer method is a before completion observer method.</text>
</assertion>
- <assertion id="i">
- <text>The |(a)javax.event.AfterTransactionCompletion| annotation or |<AfterTransactionCompletion>| element specifies that the observer method is an after completion observer method</text>
+ <assertion id="ia">
+ <text>The |@AfterTransactionCompletion| annotation specifies that the observer method is an after completion observer method.</text>
</assertion>
- <assertion id="j">
- <text>The |(a)javax.event.AfterTransactionSuccess| annotation or |<AfterTransactionSuccess>| element specifies that the observer method is an after success observer method</text>
+ <assertion id="ja">
+ <text>The |@AfterTransactionSuccess| annotation specifies that the observer method is an after success observer method.</text>
</assertion>
- <assertion id="k">
- <text>The |(a)javax.event.AfterTransactionFailure| annotation or |<AfterTransactionFailure>| element specifies that the observer method is an after failure observer method</text>
+ <assertion id="ka">
+ <text>The |@AfterTransactionFailure| annotation specifies that the observer method is an after failure observer method.</text>
</assertion>
- <assertion id="l">
- <text>A transactional observer method may not specify more than one of the four types. If a transactional observer method specifies more than one of the four types, a |DefinitionException| is thrown by the container at deployment time</text>
+ <assertion id="la">
+ <text>A transactional observer method may not specify more than one of the four types. If a transactional observer method specifies more than one of the four types, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
+ </assertion>
+ </section>
+
+ <section id="10.5.6" title="Asynchronous observer methods">
+ <assertion id="a">
+ <text>An asynchronous observer method may be declared by annotating the event parameter of the observer method |(a)javax.enterprise.event.Asynchronously|.</text>
</assertion>
+
+ <assertion id="b">
+ <text>An asynchronous observer method may also be a transactional observer method. However, it may not be a before completion observer method or a conditional observer method. If an asynchronous observer method is specified as a before completion or conditional observer method, the container automatically detects the problem and treats it as a definition error, as defined in Section 12.4, "Problems detected automatically by the container".</text>
+ </assertion>
</section>
- <section id="7.5.7" title="Asynchronous observer methods">
+ <section id="10.6" title="Observer notification">
+ <assertion id="a">
+ <text>When an event is fired by the application, the container must determine the observers for that event according to the observer resolution algorithm, then for each observer, call the |notify()| method of the |Observer| interface, passing the event object.</text>
+ </assertion>
<assertion id="b">
- <text>An asynchronous observer method may be declared by annotating the event parameter of the observer method |(a)javax.event.Asynchronously| or ~in XML by a child |<Asynchronously>| element of the |<Observes>| element~</text>
+ <text>The order in which observers are called in not defined, and so portable applications should not rely upon the order in which observers are called.</text>
</assertion>
<assertion id="c">
- <text>An asynchronous observer method may also be a transactional observer method</text>
+ <text>Observers may throw exceptions. If an observer throws an exception, the exception aborts processing of the event. No other observers of that event will be called. The |fireEvent()| method rethrows the exception.</text>
</assertion>
<assertion id="d">
- <text>If an asynchronous observer method is also a transactional observer method, it ~may not be a before completion observer method~ or a conditional observer method. If an asynchronous observer method is specified as a before completion or conditional observer method, a |DefinitionException| is thrown by the container at deployment time</text>
+ <text>Any observer called before completion of a transaction may call setRollbackOnly() to force a transaction rollback.</text>
</assertion>
<assertion id="e">
- <text>If an asynchronous observer method is also a transactional observer method, it may not be a before completion observer method or a ~conditional observer method~. If an asynchronous observer method is specified as a before completion or conditional observer method, a |DefinitionException| is thrown by the container at deployment time</text>
+ <text>An observer may not directly initiate, commit or rollback JTA transactions.</text>
</assertion>
</section>
- <section id="7.5.8" title="Observer object for an observer method">
- <assertion id="a">
- <text>For every observer method of an enabled bean, the container is responsible for providing and registering an appropriate implementation of the Observer interface, that delegates event notifications to the observer method</text>
+ <section id="10.6.1" title="Observer method notification">
+ <assertion id="aa">
+ <text>For every observer method of an enabled bean, the container is responsible for providing and registering an implementation of the |Observer| interface, that delegates event notifications to the observer method, by calling the observer method as defined in Section 5.4.8, "Invocation of observer methods".</text>
</assertion>
<assertion id="b">
- <text>The |notify()| method of the |Observer| implementation for an observer method either invokes the observer method ~immediately~, or asynchronously, or registers the observer method for later invocation during the transaction completion phase, using a JTA Synchronization</text>
+ <text>The |notify()| method of the |Observer| implementation for an observer method either invokes the observer method ~immediately~, or asynchronously, or registers the observer method for later invocation during the transaction completion phase, using a JTA Synchronization.</text>
</assertion>
<assertion id="c">
@@ -4000,31 +3978,7 @@
<text>The container is not required to guarantee delivery of asynchronous events in the case of a server shutdown or failure</text>
<note>This is just a note about the lack of an assertion, and therefore is not testable.</note>
</assertion>
-
- <assertion id="j">
- <text>To invoke an observer method, the container must pass the event object to the event parameter and the object returned by |Manager.getInstanceToInject()| to each of the other parameters</text>
- </assertion>
-
- <assertion id="k">
- <text>If the observer method is static, the container must invoke the method</text>
- </assertion>
-
- <assertion id="l">
- <text>If the observer method is non-static, the container must obtain the |Bean| object for the most specialized bean that specializes the bean which declares the observer method</text>
- </assertion>
-
- <assertion id="m">
- <text>Placeholder for path 2</text>
- </assertion>
-
- <assertion id="n">
- <text>Placeholder for path 3</text>
- </assertion>
-
- <assertion id="o">
- <text>Placeholder for path 4 etc</text>
- </assertion>
-
+
<assertion id="p" testable="false">
<text>If the observer is a transactional or asynchronous observer method, any exception is caught and logged by the container</text>
<note>Cannot be tested as they are not under our control</note>
@@ -4037,13 +3991,9 @@
<assertion id="r">
<text>If the exception is a checked exception, it is wrapped and rethrown as an (unchecked) |ObserverException|</text>
</assertion>
-
- <assertion id="s">
- <text>The observer object is registered by calling |Manager.addObserver()|, passing the event parameter type as the observed event type, and the bindings of the event parameter as the observed event bindings</text>
- </assertion>
</section>
- <section id="7.5.9" title="Observer invocation context">
+ <section id="10.6.2" title="Observer method invocation context">
<assertion id="a">
<text>If the observer method is an asynchronous observer method, it is called with no active transaction, no client security context and with a new request context that is destroyed when the observer method returns. The application context is also active</text>
</assertion>
@@ -4062,702 +4012,44 @@
<assertion id="e">
<text>The transaction and security contexts for a business method of a session bean also depend upon the transaction attribute and |@RunAs| descriptor, if any</text>
- </assertion>
+ </assertion>
</section>
-
- <section id="7.6" title="The Event interface">
- <assertion id="a">
- <text>An instance of the |javax.event.Event| interface may be injected via use of the |(a)javax.event.Fires| binding</text>
- </assertion>
- <assertion id="b">
- <text>Additional bindings may be specified at the injection point for |javax.event.Event|</text>
- </assertion>
-
- <assertion id="c">
- <text>The |Event| interface provides a method for firing events of a specific type</text>
- </assertion>
-
- <assertion id="d">
- <text>The |Event| interface provides a method for registering observers for events of the same type</text>
- </assertion>
-
- <assertion id="e">
- <text>The first parameter of the |fire()| method is the event object. The remaining parameters are event bindings</text>
- </assertion>
-
- <assertion id="f">
- <text>The first parameter of the |observe()| method is the observer object. The remaining parameters are the observed event bindings</text>
- </assertion>
-
- <assertion id="g">
- <text>If two instances of the same binding type are passed to |fire()| or |observes()|, a |DuplicateBindingTypeException| is thrown</text>
- </assertion>
-
- <assertion id="h">
- <text>If an instance of an annotation that is not a binding type is passed to |fire()| or |observes()|, an |IllegalArgumentException| is thrown</text>
- </assertion>
-
- <assertion id="i">
- <text>The |@Fires| annotation or |<Fires>| element may be applied to any injection point of type |Event|, where an actual type parameter is specified</text>
- </assertion>
-
- <assertion id="j">
- <text>If the type of the injection point is not of type |Event| a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="k">
- <text>If the type of the injection point has no actual type parameter specified a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="l">
- <text>If the type of the injection point parameter contains a type variable a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="m">
- <text>If the type of the injection point parameter contains a wildcard a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="n">
- <text>Whenever the |@Fires| annotation appears at an injection point, an implicit bean exists with exactly the bean type and bindings that appear at the injection point</text>
- </assertion>
-
- <assertion id="o">
- <text>Whenever the |@Fires| annotation appears at an injection point, an implicit bean exists with deployment type |@Standard|,</text>
- </assertion>
-
- <assertion id="p">
- <text>Whenever the |@Fires| annotation appears at an injection point, an implicit bean exists with |@Dependent| scope</text>
- </assertion>
-
- <assertion id="q">
- <text>Whenever the |@Fires| annotation appears at an injection point, an implicit bean exists with no bean name</text>
- </assertion>
-
- <assertion id="r">
- <text>Whenever the |@Fires| annotation appears at an injection point, an implicit bean exists with an implementation provided automatically by the container</text>
- </assertion>
-
- <assertion id="s">
- <text>The |fire()| method of the provided implementation of |Event| must call |Manager.fireEvent()|, passing the event object passed to |Event.fire()|, all bindings declared at the injection point (except |@Fires|), and all bindings passed to |Event.fire()|</text>
- </assertion>
-
- <assertion id="t">
- <text>The application may fire events by calling the |fire()| method</text>
- </assertion>
-
- <assertion id="u">
- <text>The |observe()| method of the provided implementation of |Event| must call |Manager.addObserver()|, passing the observer object passed to |Event.observe()|, all bindings declared at the injection point (except |@Fires|), and all bindings passed to |Event.observer()|</text>
- </assertion>
-
- <assertion id="v">
- <text>The application may register observers by calling the |observe()| method</text>
- </assertion>
- </section>
-
- <section id="7.7" title="Observer resolution">
+ <section id="10.7" title="JMS event mappings">
<assertion id="a">
- <text>The method |Manager.resolveObservers()| resolves observers for an event - the first parameter of |resolveObservers()| is the event object. The remaining parameters are event bindings</text>
+ <text>An event type may be mapped to a JMS topic.</text>
</assertion>
<assertion id="b">
- <text>If the type of the event object passed to |resolveObservers()| contains type variables, an |IllegalArgumentException| is thrown</text>
+ <text>An event mapping is a special kind of observer method that is declared by an interface.</text>
</assertion>
<assertion id="c">
- <text>If the type of the event object passed to |resolveObservers()| contains wildcards, an |IllegalArgumentException| is thrown</text>
+ <text>The event parameter specifies the mapped event type and bindings.</text>
</assertion>
<assertion id="d">
- <text>If two instances of the same binding type are passed to |resolveObservers()|, a |DuplicateBindingTypeException| is thrown</text>
+ <text>Every message destination representing a topic that any injected parameter resolves to is a mapped topic.</text>
</assertion>
<assertion id="e">
- <text>If an instance of an annotation that is not a binding type is passed to |resolveObservers()|, an |IllegalArgumentException| is thrown</text>
+ <text>An event mapping may be specified as a member of any interface.</text>
</assertion>
<assertion id="f">
- <text>When searching for observers for an event, the event object must be assignable to the observed event type, taking type parameters into consideration</text>
+ <text>All observers of mapped event types must be asynchronous observer methods. If an observer for a mapped event type is not an asynchronous observer method, the container automatically detects the problem and treats it as a deployment problem, as defined in Section 12.4, "Problems detected automatically by the container".</text>
</assertion>
<assertion id="g">
- <text>When searching for observers for an event, for each observed event binding, (a) an instance of the binding type must have been passed to |fireEvent()| and (b) any member values of the binding type must match the member values of the instance passed to |fireEvent()|</text>
+ <text>For every event mapping, the container must send a message containing the serialized event and its event bindings to every mapped topic whenever an event with the mapped event type and bindings is fired, and monitor every mapped topic for messages containing events of that mapped event type and bindings and notify all local observers whenever a message containing an event is received. Thus, events with the mapped event type and bindings are distributed to other processes which have the same event mapping.</text>
</assertion>
</section>
-
- <section id="7.7.1" title="Event binding types with members">
- <assertion id="a">
- <text>The binding type for an |Event| binding may have annotation members</text>
- </assertion>
-
- <assertion id="b" testable="false">
- <text>The container uses |equals()| to compare event binding type member values</text>
- <note>Since only primitive types are allowed, the call to equals() cannot be checked</note>
- </assertion>
- </section>
-
- <section id="7.7.2" title="Multiple event bindings">
- <assertion id="a">
- <text>An event parameter may have multiple bindings</text>
- </assertion>
-
- <assertion id="b">
- <text>An observer method will only be notified if all the observed event bindings are specified when the event is fired</text>
- </assertion>
-
- <assertion id="c">
- <text>Other, less specific, observers will also be notified of events with multiple event bindings</text>
- </assertion>
- </section>
-
- <section id="7.8" title="JMS event mappings">
- <assertion id="a">
- <text>An event type may be mapped to a JMS resource that represents a topic</text>
- </assertion>
-
- <assertion id="b">
- <text>Multiple event types may be mapped to the same topic</text>
- </assertion>
-
- <assertion id="c">
- <text>All observers of mapped event types must be asynchronous observer methods. If an observer for a mapped event type is not an asynchronous observer method, a |DeploymentException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="d">
- <text>When an event type is mapped to a topic, the container must send a message containing the serialized event and its event bindings to the topic whenever an event with that type is fired</text>
- </assertion>
-
- <assertion id="e">
- <text>When an event type is mapped to a topic, the container must listen for messages containing events of that type sent to the topic, and notify all observers of the event type whenever a message containing an event of that type is received</text>
- </assertion>
-
- <assertion id="f">
- <text>Events of a mapped event type are distributed to other processes which have the same event type mapped to the same topic</text>
- </assertion>
- </section>
-
- <section id="8" title="Scopes and contexts">
-
- </section>
-
-
- <section id="8.3.1" title="Dependent objects">
- <assertion id="a" testable="false">
- <text>A bean, EJB or servlet may obtain an instance of a bean with scope |@Dependent| via dependency injection or by calling |Manager.getInstance()|, |Manager.getInstanceByType()| or |Instance.get()| when the |@Dependent| scope is active</text>
- <note>A statement of intent</note>
- </assertion>
-
- </section>
-
- <section id="8.4" title="Passivating scopes and serialization">
- <assertion id="a">
- <text>The container must validate that every bean declared with a passivating scope truly is serializable - EJB local objects are serializable. Therefore, a session bean may declare any passivating scope</text>
- </assertion>
-
- <assertion id="b">
- <text>Simple beans are not required to be serializable. If a simple bean declares a passivating scope, and the bean class is not serializable, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="cc">
- <text>If a ~producer method or ~field declares a passivating scope and returns a non-serializable object at runtime, an |IllegalProductException| is thrown by the container</text>
- </assertion>
-
- <assertion id="cd">
- <text>If a producer method~ or field~ declares a passivating scope and returns a non-serializable object at runtime, an |IllegalProductException| is thrown by the container</text>
- </assertion>
-
- <assertion id="ca">
- <text>Check a producer method which declares a passivating scope and returns a serializable product works</text>
- <note>Sanity test</note>
- </assertion>
-
- <assertion id="cb">
- <text>Check a producer method which declares a passivating scope and returns a primitive product works</text>
- <note>Sanity test</note>
- </assertion>
-
- <assertion id="d" testable="false">
- <text>The built-in session and conversation scopes are passivating</text>
- <note>This is an API signature test</note>
- </assertion>
-
- <assertion id="e" testable="false">
- <text>No other built-in scope besides session and conversation scopes are passivating</text>
- <note>This is an API signature test</note>
- </assertion>
-
- <assertion id="f">
- <text>A contextual instance of a bean may be serialized when the bean declares a passivating scope, and context passivation occurs</text>
- </assertion>
-
- <assertion id="g">
- <text>A contextual instance of a bean may be serialized when the bean is an EJB stateful session bean, and it is passivated by the EJB container</text>
- </assertion>
-
- <assertion id="h" testable="false">
- <text>In either case of assertion f or g above, any non-transient field that holds a reference to another bean must be serialized along with the bean that is being serialized. Therefore, the reference must be to a serializable type</text>
- <note>An explanation</note>
- </assertion>
-
- <assertion id="i">
- <text>Any reference to a bean which declares a normal scope is serializable</text>
- </assertion>
-
- <assertion id="j">
- <text>EJB local objects are serializable, therefore, any reference to a session bean of scope |@Dependent| is serializable</text>
- </assertion>
-
- <assertion id="k">
- <text>If a simple bean of scope |@Dependent| and a nonserializable bean class is injected into a stateful session bean an |UnserializableDependencyException| must be thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="l">
- <text>If a simple bean of scope |@Dependent| and a nonserializable bean class is injected into a non-transient field an |UnserializableDependencyException| must be thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="m">
- <text>If a simple bean of scope |@Dependent| and a nonserializable bean class is injected into a bean constructor parameter of a bean which declares a passivating scope, an |UnserializableDependencyException| must be thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="n">
- <text>If a simple bean of scope |@Dependent| and a nonserializable bean class is injected into an initializer method parameter of a bean which declares a passivating scope, an |UnserializableDependencyException| must be thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="o">
- <text>If a simple bean of scope |@Dependent| and a nonserializable bean class is injected into a parameter of a producer method which declares a passivating scope, an |UnserializableDependencyException| must be thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="p">
- <text>If a producer method or field of scope |@Dependent| returns a non-serializable object for injection into a stateful session bean, an |IllegalProductException| is thrown by the container</text>
- </assertion>
-
- <assertion id="q">
- <text>If a producer method or field of scope |@Dependent| returns a non-serializable object for injection into a non-transient field an |IllegalProductException| is thrown by the container</text>
- </assertion>
-
- <assertion id="r">
- <text>If a producer method or field of scope |@Dependent| returns a non-serializable object for injection into a bean constructor parameter of a bean which declares a passivating scope, an |IllegalProductException| is thrown by the container</text>
- </assertion>
-
- <assertion id="s">
- <text>If a producer method or field of scope |@Dependent| returns a non-serializable object for injection into an initializer method parameter of a bean which declares a passivating scope, an |IllegalProductException| is thrown by the container</text>
- </assertion>
-
- <assertion id="t">
- <text>If a producer method or field of scope |@Dependent| returns a non-serializable object for injection into a parameter of a producer method which declares a passivating scope, an |IllegalProductException| is thrown by the container</text>
- </assertion>
-
- <assertion id="u">
- <text>The container must guarantee that JMS resource proxy objects are serializable</text>
- </assertion>
-
- <assertion id="v">
- <text>The method |Bean.isSerializable()| may be used to detect if a bean is serializable</text>
- </assertion>
- </section>
-
- <section id="8.5" title="Context management for built-in scopes">
-
- <assertion id="a">
- <text>The container provides an implementation of the |Context| interface for each of the built-in scopes</text>
- </assertion>
-
- <assertion id="b">
- <text>For each of the built-in normal scopes, contexts propagate across any Java method call, including invocation of EJB local business methods</text>
- </assertion>
-
- <assertion id="c">
- <text>The built-in contexts do not propagate across remote method invocations or to asynchronous processes such as JMS message listeners or EJB timer service timeouts</text>
- </assertion>
-
- </section>
-
- <section id="8.5.1" title="Request context lifecycle">
-
- <assertion id="a">
- <text>The request scope is active during the |service()| method of any servlet in the web application</text>
- </assertion>
-
- <assertion id="b">
- <text>The request scope is active during the |doFilter()| method of any servlet filter</text>
- </assertion>
-
- <assertion id="c">
- <text>The request context is destroyed at the end of the servlet request, after the |service()| method and all |doFilter()| methods return</text>
- </assertion>
-
- <assertion id="d">
- <text>The request scope is active during any Java EE web service invocation</text>
- </assertion>
-
- <assertion id="e">
- <text>The request context is destroyed after a web service invocation completes</text>
- </assertion>
-
- <assertion id="f">
- <text>The request scope is active during any asynchronous observer method notification</text>
- </assertion>
-
- <assertion id="g">
- <text>The request context is destroyed after a asynchronous observer method notification completes</text>
- </assertion>
-
- <assertion id="h">
- <text>The request scope is active during any remote method invocation of any EJB</text>
- </assertion>
-
- <assertion id="i">
- <text>The request scope is active during any call to an EJB timeout method</text>
- <note>Only applicable in EJB 3.1 environments</note>
- </assertion>
-
- <assertion id="j">
- <text>The request scope is active during message delivery to any EJB message-driven bean</text>
- </assertion>
-
- <assertion id="k">
- <text>The request context is destroyed after the remote EJB method invocation completes</text>
- </assertion>
-
- <assertion id="l">
- <text>The request context is destroyed after the invocation of an EJB timeout method</text>
- <note>Only applicable in EJB 3.1 environments</note>
- </assertion>
-
- <assertion id="m">
- <text>The request context is destroyed after message delivery to an EJB message-drive bean completes</text>
- </assertion>
- </section>
-
- <section id="8.5.2" title="Session context lifecycle">
-
- <assertion id="a">
- <text>The session scope is active during the |service()| method of any servlet in the web application</text>
- </assertion>
-
- <assertion id="b">
- <text>The session scope is active during the |doFilter()| method of any servlet filter</text>
- </assertion>
-
- <assertion id="c">
- <text>The session context is shared between all servlet requests that occur in the same HTTP servlet session</text>
- </assertion>
-
- <assertion id="d">
- <text>The session context is destroyed when the HTTPSession is invalidated</text>
- </assertion>
-
- <assertion id="e">
- <text>The session context is destroyed when the HTTPSession times out</text>
- </assertion>
- </section>
-
- <section id="8.5.3" title="Application context lifecycle">
-
- <assertion id="a">
- <text>The application scope is active during the |service()| method of any servlet in the web application</text>
- </assertion>
-
- <assertion id="b">
- <text>The application scope is active during the |doFilter()| method of any servlet filter</text>
- </assertion>
-
- <assertion id="c">
- <text>The application scope is active during any Java EE web service invocation</text>
- </assertion>
-
- <assertion id="d">
- <text>The application scope is active during any asynchronous observer method notification</text>
- </assertion>
-
- <assertion id="e">
- <text>The application scope is active during any remote method invocation of any EJB</text>
- </assertion>
-
- <assertion id="f">
- <text>The application scope is active during any call to an EJB timeout method</text>
- </assertion>
-
- <assertion id="g">
- <text>The application scope is active during message delivery to any EJB message-driven bean</text>
- </assertion>
-
- <assertion id="h">
- <text>The application context is shared between all servlet requests that execute within the same application</text>
- </assertion>
-
- <assertion id="i">
- <text>The application context is shared between all asynchronous observer method notifications that execute within the same application</text>
- </assertion>
-
- <assertion id="j">
- <text>The application context is shared between all web service invocations that execute within the same application</text>
- </assertion>
-
- <assertion id="k">
- <text>The application context is shared between all EJB remote method invocations that execute within the same application</text>
- </assertion>
-
- <assertion id="l">
- <text>The application context is shared between all EJB timeouts that execute within the same application</text>
- </assertion>
-
- <assertion id="m">
- <text>The application context is shared between all message deliveries to message driven beans that execute within the same application</text>
- </assertion>
-
- <assertion id="n">
- <text>The application context is destroyed when the application is undeployed</text>
- </assertion>
- </section>
-
- <section id="8.6" title="Context management for custom scopes">
-
- <assertion id="a">
- <text>A custom implementation of |Context| may be associated with any scope type at any point in the execution of the application, by calling |Manager.addContext()|</text>
- </assertion>
-
- <assertion id="b">
- <text>Every time |Manager.getInstance()| is called, for example, during instance or EL name resolution, the container must call |Manager.getContext()| to retrieve an active context object associated with the bean scope</text>
- </assertion>
-
- <assertion id="c">
- <text>If no active context object exists for the given scope type, |Manager.getContext()| must throw a |ContextNotActiveException|</text>
- </assertion>
-
- <assertion id="d">
- <text>If more than one active context object exists for the given scope type, |Manager.getContext()| must throw an |IllegalStateException|</text>
- </assertion>
- </section>
-
- <section id="9" title="XML based metadata">
-
- <assertion id="b">
- <text>Multiple namespaces are accommodated, each representing a Java package</text>
- </assertion>
-
- <assertion id="c">
- <text>XML elements belonging to these namespaces represent Java types, fields and methods</text>
- </assertion>
-
- <assertion id="d">
- <text>Each namespace may declare an XML schema</text>
- </assertion>
-
- <assertion id="e">
- <text>If a |beans.xml| file contains any XML element without a declared namespace, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- </section>
-
- <section id="9.1" title="XML namespace for a Java package">
- <assertion id="a">
- <text>Every Java package has a corresponding XML namespace. The namespace URN consists of the package name, with the prefix |urn:java:|</text>
- </assertion>
-
- <assertion id="b">
- <text>Each namespace may, optionally, have a schema</text>
- </assertion>
-
- <assertion id="c">
- <text>An XML element belonging to such a namespace represents a Java type in the corresponding Java package, or a method or field of a type in that package</text>
- </assertion>
-
- <assertion id="d">
- <text>If there is a Java type in the package with the same name as the XML element, the XML element can be interpreted to represent that Java type</text>
- </assertion>
-
- <assertion id="e">
- <text>Type parameters may be specified by child elements of the element that represents the type</text>
- </assertion>
-
- <assertion id="f">
- <text>Members of a type may be specified by child elements of the element that represents the type, in the same namespace as the element that represents the type</text>
- </assertion>
-
- </section>
-
- <section id="9.2" title="XML namespace aggregating multiple packages">
- <assertion id="a">
- <text>Alternatively, a namespace may represent several Java packages. Such a namespace must have a URN consisting of the prefix |urn:java:| followed by a period-separated list of valid Java identifiers</text>
- </assertion>
-
- <assertion id="b">
- <text>The list of packages for such a namespace must be defined in a classpath resource named namespace in the path named by the identifier list</text>
- </assertion>
-
- <assertion id="c">
- <text>The format of the file is a list of packages, separated by whitespace</text>
- </assertion>
-
- <assertion id="d">
- <text>An XML element belonging to such a namespace represents a Java type in one of the listed packages, or a method or field of a type in one of the listed packages</text>
- </assertion>
-
- <assertion id="e">
- <text>If there are multiple packages containing a Java type with the same name as the XML element, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="f">
- <text>If there is exactly one Java type in the listed packages with the same name as the XML element, the XML element can be interpreted to represent that Java type</text>
- </assertion>
- </section>
-
- <section id="9.2.1" title="The Java EE namespace">
- <assertion id="a">
- <text>The Java EE namespace |urn:java:ee| represents the following packages: |java.lang|, |java.util|, |javax.annotation|, |javax.inject|, |javax.context|, |javax.interceptor|, |javax.decorator|, |javax.event|, |javax.ejb|, |javax.persistence|, |javax.xml.ws|, |javax.jms|, and |javax.sql|</text>
- </assertion>
-
- <assertion id="b" testable="false">
- <text>Several elements in the |urn:java:ee| namespace do not represent Java types</text>
- <note>Intent</note>
- </assertion>
-
- <assertion id="c" testable="false">
- <text>The root |<Beans>| element, together with the |<Deploy>|, |<Interceptors>| and |<Decorators>| elements belong to the namespace |urn:java:ee| and do not represent Java types nor members of Java types</text>
- <note>Intent</note>
- </assertion>
-
- <assertion id="d">
- <text>Java array types may be represented by an |<Array>| element in the namespace |urn:java:ee|, with a child element representing the element type</text>
- </assertion>
-
- <assertion id="e">
- <text>Primitive types may be represented by the XML element that represents the corresponding wrapper type in |java.lang|, since primitive and wrapper types are considered identical for the purposes of typesafe resolution, and assignable for the purposes of injection</text>
- </assertion>
- </section>
-
- <section id="9.3" title="Standard schema location for a namespace">
- <assertion id="a">
- <text>The container must validate all namespaces for which schemas are available in the classpath</text>
- </assertion>
-
- <assertion id="b">
- <text>The container searches for a schema for each namespace in the classpath directory corresponding to the namespace</text>
- </assertion>
-
- <assertion id="c">
- <text>The schema must be named schema.xsd</text>
- </assertion>
- </section>
-
- <section id="9.4" title="Stereotype, binding type and interceptor binding type declarations">
- <assertion id="a">
- <text>An XML element that appears as a direct child of the root |<Beans>| element is interpreted as a binding type declaration if it has a direct child |<BindingType>| element in the Java EE namespace, as defined in Section 2.3.2, "Defining new binding types"</text>
- </assertion>
-
- <assertion id="b">
- <text>An XML element that appears as a direct child of the root |<Beans>| element is interpreted as an interceptor binding type if it has a direct child |<InterceptorBindingType>| element in the Java EE namespace, as defined in Section A.3.4, "Interceptor bindings"</text>
- </assertion>
-
- <assertion id="c">
- <text>An XML element that appears as a direct child of the root |<Beans>| element is interpreted as a stereotype declaration if it has a direct child |<Stereotype>| element in the Java EE namespace, as defined in Section 2.7.1, "Defining new stereotypes"</text>
- </assertion>
-
- <assertion id="d">
- <text>The XML element is interpreted as a Java type. If no such Java type exists in the classpath, a |DefinitionException| is thrown by the container at deployment time. If the type is not an annotation type, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="e">
- <text>If the annotation type is already declared as a binding type using annotations, the annotations are ignored by the container and the XML-based declaration is used</text>
- </assertion>
-
- <assertion id="f">
- <text>If the annotation type is already declared as an interceptor binding type using annotations, the annotations are ignored by the container and the XML-based declaration is used</text>
- </assertion>
-
- <assertion id="g">
- <text>If the annotation type is already declared as a stereotype using annotations, the annotations are ignored by the container and the XML-based declaration is used</text>
- </assertion>
-
- <assertion id="h">
- <text>If a certain annotation type is declared more than once as a binding type, interceptor binding type or stereotype using XML, a |DeploymentException| is thrown by the container at deployment time</text>
- </assertion>
- </section>
-
- <section id="9.4.1" title="Child elements of a stereotype declaration">
- <assertion id="a">
- <text>Every direct child element of a stereotype declaration is interpreted as a Java type</text>
- </assertion>
-
- <assertion id="b">
- <text>If no such Java type exists in the classpath, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="c">
- <text>If the type is not an annotation type, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="d">
- <text>If the annotation type is a scope type, the default scope of the stereotype was declared</text>
- </assertion>
-
- <assertion id="e">
- <text>If the annotation type is a deployment type, the default scope of the stereotype was declared</text>
- </assertion>
-
- <assertion id="f">
- <text>If the annotation type is a interceptor binding type, an interceptor binding of the stereotype was declared</text>
- </assertion>
-
- <assertion id="g">
- <text>If the annotation type is |javax.annotation.Named|, a stereotype with name defaulting was declared</text>
- </assertion>
-
- <assertion id="h">
- <text>Otherwise, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
- </section>
-
- <section id="9.4.2" title="Child elements of an interceptor binding type declaration">
- <assertion id="a">
- <text>Every direct child element of an interceptor binding type declaration is interpreted as a Java type</text>
- </assertion>
-
- <assertion id="b">
- <text>If no such Java type exists in the classpath, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="c">
- <text>If the type is not an annotation type, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- <assertion id="d">
- <text>If the annotation type is an interceptor binding type, an inherited interceptor binding was declared, as defined in Section A.3.4.1, "Interceptor binding types with additional interceptor bindings"</text>
- </assertion>
-
- <assertion id="e">
- <text>If the annotation type is not an interceptor binding type, a |DefinitionException| is thrown by the container at deployment time</text>
- </assertion>
-
- </section>
-
- <section id="9.12" title="Deployment declarations">
- <assertion id="a">
- <text>The |<Deploy>|, |<Interceptors>| and |<Decorators>| elements in the Java EE namespace determine which beans, interceptors and decorators are enabled in a particular deployment</text>
- </assertion>
- </section>
-
- <section id="9.12.1" title="The <Deploy> declaration">
- <assertion id="a">
- <text>Each direct child element of a |<Deploy>| element is interpreted as the declaring an enabled deployment type, as specified in Section 2.5.6, "Enabled deployment types"</text>
- </assertion>
-
- <assertion id="b">
- <text>Each child element is interpreted as a Java annotation type. If no such Java type exists in the classpath, a |DefinitionException| is thrown by the container at deployment time. If the type is not a deployment type, a |DefinitionException| is thrown by the container at deployment time.</text>
- </assertion>
-
- <assertion id="c">
- <text>If the same deployment type is declared more than once, a |DefinitionException| is thrown by the container at deployment time.</text>
- </assertion>
- </section>
-
+
<section id="11" title="Packaging and Deployment">
</section>
- <section id="11.1" title="Deployment lifecycle">
-
+ <section id="11.1" title="Deployment lifecycle">
<assertion id="a">
<text>First, the container performs bean discovery and registers |Bean| and |Observer| objects for the discovered beans. The container detects definition errors by validating the bean classes and metadata, throwing a |DeploymentException| and aborting deployment of the application if any definition errors exist, as defined in Section 10.1, "Definition errors".</text>
<note>Test that beans and observers are registered and definition exceptions occur before @Initialized, and that this causes the app deployment to fail</note>
@@ -4785,8 +4077,7 @@
</section>
- <section id="11.2" title="Bean discovery">
-
+ <section id="11.2" title="Bean discovery">
<assertion id="a" implied="true">
<text>When bean discovery occurs, the container considers any |beans.xml| file in any metadata directory of the application classpath (standalone WAR)</text>
</assertion>
15 years, 7 months
[webbeans-commits] Webbeans SVN: r2794 - in ri/trunk: impl/src/main/java/org/jboss/webbeans and 2 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-06-08 18:16:53 -0400 (Mon, 08 Jun 2009)
New Revision: 2794
Modified:
ri/trunk/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/AbstractProducerBean.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/DisposalMethodBean.java
ri/trunk/porting-package/src/main/java/org/jboss/webbeans/tck/BeansImpl.java
Log:
Tidy up
Modified: ri/trunk/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java
===================================================================
--- ri/trunk/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java 2009-06-08 20:33:56 UTC (rev 2793)
+++ ri/trunk/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java 2009-06-08 22:16:53 UTC (rev 2794)
@@ -117,7 +117,7 @@
* The Bean representation of the bean.
* @return the mest specialized enabled bean
*/
- public <X> Bean<X> getMostSpecializedBean(Bean<X> bean);
+ public <X> Bean<? extends X> getMostSpecializedBean(Bean<X> bean);
/**
* Returns the PassivationCapableBean with the given identifier.
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-06-08 20:33:56 UTC (rev 2793)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-06-08 22:16:53 UTC (rev 2794)
@@ -700,26 +700,8 @@
throw new IllegalStateException("More than one context active for scope type " + scopeType.getName());
}
return activeContexts.iterator().next();
- }
- @Deprecated
- public <T> T getInstance(Bean<T> bean)
- {
- return getInstance(bean, true);
}
-
- @Deprecated
- public <T> T getInstance(Bean<T> bean, boolean create)
- {
- if (create)
- {
- return (T) getInjectableReference(bean, CreationalContextImpl.of(bean));
- }
- else
- {
- return (T) getInjectableReference(bean, null);
- }
- }
public Object getInjectableReference(Bean<?> bean, CreationalContext<?> creationalContext)
{
@@ -836,7 +818,7 @@
@Deprecated
public <T> T getInstanceByType(AnnotatedItem<T, ?> element, Annotation... bindings)
{
- return getInstance(getBean(element, bindings));
+ return (T) getReference(getBean(element, bindings), element.getType());
}
public <T> Bean<T> getBean(AnnotatedItem<T, ?> element, Annotation... bindings)
@@ -1112,7 +1094,7 @@
- public <X> Bean<X> getMostSpecializedBean(Bean<X> bean)
+ public <X> Bean<? extends X> getMostSpecializedBean(Bean<X> bean)
{
Bean<?> key = bean;
while (specializedBeans.containsKey(key))
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/AbstractProducerBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/AbstractProducerBean.java 2009-06-08 20:33:56 UTC (rev 2793)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/AbstractProducerBean.java 2009-06-08 22:16:53 UTC (rev 2794)
@@ -325,7 +325,7 @@
return creationalContextImpl.getIncompleteInstance(getDeclaringBean());
}
}
- return manager.getInstance(getDeclaringBean());
+ return manager.getReference(getDeclaringBean(), getDeclaringBean().getType());
}
}
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/DisposalMethodBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/DisposalMethodBean.java 2009-06-08 20:33:56 UTC (rev 2793)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/DisposalMethodBean.java 2009-06-08 22:16:53 UTC (rev 2794)
@@ -182,7 +182,8 @@
public void invokeDisposeMethod(Object instance, CreationalContext<?> creationalContext)
{
- Object beanInstance = disposalMethodInjectionPoint.isStatic() ? declaringBean : getManager().getInstance(declaringBean);
+ // TODO WTF - why isn't this using getReceiver!? Why is it assigning the beanInstance as the beanObject!?!
+ Object beanInstance = disposalMethodInjectionPoint.isStatic() ? declaringBean : getManager().getReference(declaringBean, declaringBean.getType());
disposalMethodInjectionPoint.invokeWithSpecialValue(beanInstance, Disposes.class, instance, manager, creationalContext, IllegalArgumentException.class);
}
Modified: ri/trunk/porting-package/src/main/java/org/jboss/webbeans/tck/BeansImpl.java
===================================================================
--- ri/trunk/porting-package/src/main/java/org/jboss/webbeans/tck/BeansImpl.java 2009-06-08 20:33:56 UTC (rev 2793)
+++ ri/trunk/porting-package/src/main/java/org/jboss/webbeans/tck/BeansImpl.java 2009-06-08 22:16:53 UTC (rev 2794)
@@ -83,7 +83,7 @@
public <T> T createBeanInstance(Bean<T> bean)
{
- return CurrentManager.rootManager().getCurrent().getInstance(bean, true);
+ return (T) CurrentManager.rootManager().getCurrent().getReference(bean, Object.class);
}
public <T> void destroyAndRemoveBeanInstance(Bean<T> bean, T instance)
15 years, 7 months
[webbeans-commits] Webbeans SVN: r2793 - in ri/trunk: impl/src/main/java/org/jboss/webbeans/el and 3 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-06-08 16:33:56 -0400 (Mon, 08 Jun 2009)
New Revision: 2793
Added:
ri/trunk/impl/src/main/java/org/jboss/webbeans/el/ForwardingELResolver.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolver.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolverImpl.java
Removed:
ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolver.java
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java
ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/named/NamedBeanWithBindingTest.java
ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/method/NamedProducerTest.java
ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/method/NamedProducerWithBindingTest.java
ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/proxy/ProxyTest.java
Log:
more tidy up :-)
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-06-08 19:41:03 UTC (rev 2792)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-06-08 20:33:56 UTC (rev 2793)
@@ -80,7 +80,7 @@
import org.jboss.webbeans.context.ApplicationContext;
import org.jboss.webbeans.context.CreationalContextImpl;
import org.jboss.webbeans.el.Namespace;
-import org.jboss.webbeans.el.WebBeansELResolver;
+import org.jboss.webbeans.el.WebBeansELResolverImpl;
import org.jboss.webbeans.event.EventManager;
import org.jboss.webbeans.event.EventObserver;
import org.jboss.webbeans.event.ObserverImpl;
@@ -194,7 +194,8 @@
*/
private transient final EventManager eventManager;
private transient final Resolver resolver;
- private final transient NonContextualInjector nonContextualInjector;
+ private final transient NonContextualInjector nonContextualInjector;
+ private final transient ELResolver webbeansELResolver;
/*
* Activity scoped data structures
@@ -304,6 +305,7 @@
this.resolver = new Resolver(this);
this.eventManager = new EventManager(this);
this.nonContextualInjector = new NonContextualInjector(this);
+ this.webbeansELResolver = new WebBeansELResolverImpl(this);
this.childActivities = new CopyOnWriteArraySet<ManagerImpl>();
this.currentInjectionPoint = new ThreadLocal<Stack<InjectionPoint>>()
{
@@ -740,14 +742,13 @@
}
- /**
- * XXX this is not correct, as the current implementation of getInstance does not
- * pay attention to what type the resulting instance needs to implement (non-Javadoc)
- * @see javax.enterprise.inject.spi.BeanManager#getReference(javax.enterprise.inject.spi.Bean, java.lang.reflect.Type)
+ /*
+ * TODO this is not correct, as the current implementation of getInstance does not
+ * pay attention to what type the resulting instance needs to implement
*/
public Object getReference(Bean<?> bean, Type beanType)
{
- return getInstance(bean,true);
+ return getInjectableReference(bean, CreationalContextImpl.of(bean));
}
@SuppressWarnings("unchecked")
@@ -793,33 +794,6 @@
}
/**
- * Gets an instance by name, returning null if none is found and throwing an
- * exception if too many beans match
- *
- * @param name The name to match
- * @return An instance of the bean
- *
- * @see javax.enterprise.inject.spi.BeanManager#getInstanceByName(java.lang.String)
- */
- @Deprecated
- public Object getInstanceByName(String name)
- {
- Set<Bean<?>> beans = getBeans(name);
- if (beans.size() == 0)
- {
- return null;
- }
- else if (beans.size() > 1)
- {
- throw new AmbiguousResolutionException("Resolved multiple Web Beans with " + name);
- }
- else
- {
- return getInstance(beans.iterator().next());
- }
- }
-
- /**
* Returns an instance by API type and binding types
*
* @param type The API type to match
@@ -1246,7 +1220,7 @@
public ELResolver getELResolver()
{
- return new WebBeansELResolver();
+ return webbeansELResolver;
}
}
Added: ri/trunk/impl/src/main/java/org/jboss/webbeans/el/ForwardingELResolver.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/el/ForwardingELResolver.java (rev 0)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/el/ForwardingELResolver.java 2009-06-08 20:33:56 UTC (rev 2793)
@@ -0,0 +1,49 @@
+package org.jboss.webbeans.el;
+
+import java.util.Iterator;
+
+import javax.el.ELContext;
+import javax.el.ELResolver;
+
+public abstract class ForwardingELResolver extends ELResolver
+{
+
+ protected abstract ELResolver delegate();
+
+ @Override
+ public Class<?> getCommonPropertyType(ELContext context, Object base)
+ {
+ return delegate().getCommonPropertyType(context, base);
+ }
+
+ @Override
+ public Iterator<?> getFeatureDescriptors(ELContext context, Object base)
+ {
+ return delegate().getFeatureDescriptors(context, base);
+ }
+
+ @Override
+ public Class<?> getType(ELContext context, Object base, Object property)
+ {
+ return delegate().getType(context, base, property);
+ }
+
+ @Override
+ public Object getValue(ELContext context, Object base, Object property)
+ {
+ return delegate().getValue(context, base, property);
+ }
+
+ @Override
+ public boolean isReadOnly(ELContext context, Object base, Object property)
+ {
+ return delegate().isReadOnly(context, base, property);
+ }
+
+ @Override
+ public void setValue(ELContext context, Object base, Object property, Object value)
+ {
+ delegate().setValue(context, base, property, value);
+ }
+
+}
Property changes on: ri/trunk/impl/src/main/java/org/jboss/webbeans/el/ForwardingELResolver.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Deleted: ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolver.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolver.java 2009-06-08 19:41:03 UTC (rev 2792)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolver.java 2009-06-08 20:33:56 UTC (rev 2793)
@@ -1,171 +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 org.jboss.webbeans.el;
-
-import java.beans.FeatureDescriptor;
-import java.util.Iterator;
-
-import javax.el.ELContext;
-import javax.el.ELResolver;
-import javax.inject.ExecutionException;
-
-import org.jboss.webbeans.CurrentManager;
-import org.jboss.webbeans.ManagerImpl;
-
-/**
- * An EL-resolver against the named beans
- *
- * @author Pete Muir
- */
-public class WebBeansELResolver extends ELResolver
-{
-
- private static final class ValueHolder<T>
- {
-
- private T value;
-
- public T getValue()
- {
- return value;
- }
-
- public void setValue(T value)
- {
- this.value = value;
- }
-
- }
-
- /**
- * @see javax.el.ELResolver#getCommonPropertyType(ELContext, Object)
- */
- @Override
- public Class<?> getCommonPropertyType(ELContext context, Object base)
- {
- return null;
- }
-
- /**
- * @see javax.el.ELResolver#getFeatureDescriptors(ELContext, Object)
- */
- @Override
- public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base)
- {
- return null;
- }
-
- /**
- * @see javax.el.ELResolver#getType(ELContext, Object, Object)
- */
- @Override
- public Class<?> getType(ELContext context, Object base, Object property)
- {
- return null;
- }
-
- /**
- * @see javax.el.ELResolver#getValue(ELContext, Object, Object)
- */
- @Override
- public Object getValue(ELContext context, Object base, Object property)
- {
- if (property != null)
- {
- final ManagerImpl manager = CurrentManager.rootManager().getCurrent();
- String propertyString = property.toString();
- Namespace namespace = null;
- if (base == null)
- {
- if (manager.getRootNamespace().contains(propertyString))
- {
- context.setPropertyResolved(true);
- return manager.getRootNamespace().get(propertyString);
- }
- }
- else if (base instanceof Namespace)
- {
- namespace = (Namespace) base;
- // We're definitely the responsible party
- context.setPropertyResolved(true);
- if (namespace.contains(propertyString))
- {
- // There is a child namespace
- return namespace.get(propertyString);
- }
- }
- else
- {
- // let the standard EL resolver chain handle the property
- return null;
- }
- final String name;
- if (namespace != null)
- {
- // Try looking in the manager for a bean
- name = namespace.qualifyName(propertyString);
- }
- else
- {
- name = propertyString;
- }
- final ValueHolder<Object> holder = new ValueHolder<Object>();
- try
- {
- new RunInDependentContext()
- {
-
- @Override
- protected void execute() throws Exception
- {
- holder.setValue(manager.getInstanceByName(name));
- }
-
- }.run();
- }
- catch (Exception e)
- {
- throw new ExecutionException("Error resolving property " + propertyString + " against base " + base, e);
- }
- if (holder.getValue() != null)
- {
- context.setPropertyResolved(true);
- return holder.getValue();
- }
- }
- return null;
- }
-
- /**
- * @see javax.el.ELResolver#isReadOnly(ELContext, Object, Object)
- */
- @Override
- public boolean isReadOnly(ELContext context, Object base, Object property)
- {
- return false;
- }
-
- /**
- * @see javax.el.ELResolver#setValue(ELContext, Object, Object, Object)
- */
- @Override
- public void setValue(ELContext context, Object base, Object property, Object value)
- {
- }
-
-}
-
Added: ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolver.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolver.java (rev 0)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolver.java 2009-06-08 20:33:56 UTC (rev 2793)
@@ -0,0 +1,16 @@
+package org.jboss.webbeans.el;
+
+import javax.el.ELResolver;
+
+import org.jboss.webbeans.CurrentManager;
+
+public class WebBeansELResolver extends ForwardingELResolver
+{
+
+ @Override
+ protected ELResolver delegate()
+ {
+ return CurrentManager.rootManager().getCurrent().getELResolver();
+ }
+
+}
Property changes on: ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolver.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied: ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolverImpl.java (from rev 2774, ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolver.java)
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolverImpl.java (rev 0)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/el/WebBeansELResolverImpl.java 2009-06-08 20:33:56 UTC (rev 2793)
@@ -0,0 +1,181 @@
+/*
+ * 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.el;
+
+import java.beans.FeatureDescriptor;
+import java.util.Iterator;
+
+import javax.el.ELContext;
+import javax.el.ELResolver;
+import javax.enterprise.inject.spi.Bean;
+import javax.inject.ExecutionException;
+
+import org.jboss.webbeans.ManagerImpl;
+
+/**
+ * An EL-resolver against the named beans
+ *
+ * @author Pete Muir
+ */
+public class WebBeansELResolverImpl extends ELResolver
+{
+
+ private static final class ValueHolder<T>
+ {
+
+ private T value;
+
+ public T getValue()
+ {
+ return value;
+ }
+
+ public void setValue(T value)
+ {
+ this.value = value;
+ }
+
+ }
+
+ private final ManagerImpl manager;
+
+ public WebBeansELResolverImpl(ManagerImpl manager)
+ {
+ this.manager = manager;
+ }
+
+ /**
+ * @see javax.el.ELResolver#getCommonPropertyType(ELContext, Object)
+ */
+ @Override
+ public Class<?> getCommonPropertyType(ELContext context, Object base)
+ {
+ return null;
+ }
+
+ /**
+ * @see javax.el.ELResolver#getFeatureDescriptors(ELContext, Object)
+ */
+ @Override
+ public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base)
+ {
+ return null;
+ }
+
+ /**
+ * @see javax.el.ELResolver#getType(ELContext, Object, Object)
+ */
+ @Override
+ public Class<?> getType(ELContext context, Object base, Object property)
+ {
+ return null;
+ }
+
+ /**
+ * @see javax.el.ELResolver#getValue(ELContext, Object, Object)
+ */
+ @Override
+ public Object getValue(ELContext context, Object base, Object property)
+ {
+ if (property != null)
+ {
+ String propertyString = property.toString();
+ Namespace namespace = null;
+ if (base == null)
+ {
+ if (manager.getRootNamespace().contains(propertyString))
+ {
+ context.setPropertyResolved(true);
+ return manager.getRootNamespace().get(propertyString);
+ }
+ }
+ else if (base instanceof Namespace)
+ {
+ namespace = (Namespace) base;
+ // We're definitely the responsible party
+ context.setPropertyResolved(true);
+ if (namespace.contains(propertyString))
+ {
+ // There is a child namespace
+ return namespace.get(propertyString);
+ }
+ }
+ else
+ {
+ // let the standard EL resolver chain handle the property
+ return null;
+ }
+ final String name;
+ if (namespace != null)
+ {
+ // Try looking in the manager for a bean
+ name = namespace.qualifyName(propertyString);
+ }
+ else
+ {
+ name = propertyString;
+ }
+ final ValueHolder<Object> holder = new ValueHolder<Object>();
+ try
+ {
+ new RunInDependentContext()
+ {
+
+ @Override
+ protected void execute() throws Exception
+ {
+ Bean<?> bean = manager.getHighestPrecedenceBean(manager.getBeans(name));
+ if (bean != null)
+ {
+ holder.setValue(manager.getReference(bean, Object.class));
+ }
+ }
+
+ }.run();
+ }
+ catch (Exception e)
+ {
+ throw new ExecutionException("Error resolving property " + propertyString + " against base " + base, e);
+ }
+ if (holder.getValue() != null)
+ {
+ context.setPropertyResolved(true);
+ return holder.getValue();
+ }
+ }
+ return null;
+ }
+
+ /**
+ * @see javax.el.ELResolver#isReadOnly(ELContext, Object, Object)
+ */
+ @Override
+ public boolean isReadOnly(ELContext context, Object base, Object property)
+ {
+ return false;
+ }
+
+ /**
+ * @see javax.el.ELResolver#setValue(ELContext, Object, Object, Object)
+ */
+ @Override
+ public void setValue(ELContext context, Object base, Object property, Object value)
+ {
+ }
+
+}
+
Modified: ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/named/NamedBeanWithBindingTest.java
===================================================================
--- ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/named/NamedBeanWithBindingTest.java 2009-06-08 19:41:03 UTC (rev 2792)
+++ ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/named/NamedBeanWithBindingTest.java 2009-06-08 20:33:56 UTC (rev 2793)
@@ -1,7 +1,5 @@
package org.jboss.webbeans.test.unit.implementation.named;
-import static org.testng.Assert.assertNotNull;
-
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.webbeans.test.AbstractWebBeansTest;
import org.testng.annotations.Test;
@@ -15,7 +13,7 @@
@Test
public void testGetNamedBeanWithBinding()
{
- NamedBeanWithBinding bean = (NamedBeanWithBinding) getCurrentManager().getInstanceByName("namedBeanWithBinding");
- assertNotNull(bean);
+ NamedBeanWithBinding bean = (NamedBeanWithBinding) getCurrentManager().getReference(getCurrentManager().getHighestPrecedenceBean(getCurrentManager().getBeans("namedBeanWithBinding")), Object.class);
+ assert bean != null;
}
}
Modified: ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/method/NamedProducerTest.java
===================================================================
--- ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/method/NamedProducerTest.java 2009-06-08 19:41:03 UTC (rev 2792)
+++ ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/method/NamedProducerTest.java 2009-06-08 20:33:56 UTC (rev 2793)
@@ -10,9 +10,9 @@
@Test
public void testNamedProducer()
{
- String[] iemon = (String[]) getCurrentManager().getInstanceByName("iemon");
+ String[] iemon = (String[]) getCurrentManager().getReference(getCurrentManager().getHighestPrecedenceBean(getCurrentManager().getBeans("iemon")), Object.class);
assert iemon.length == 3;
- String[] itoen = (String[]) getCurrentManager().getInstanceByName("itoen");
+ String[] itoen = (String[]) getCurrentManager().getReference(getCurrentManager().getHighestPrecedenceBean(getCurrentManager().getBeans("itoen")), Object.class);
assert itoen.length == 2;
}
Modified: ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/method/NamedProducerWithBindingTest.java
===================================================================
--- ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/method/NamedProducerWithBindingTest.java 2009-06-08 19:41:03 UTC (rev 2792)
+++ ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/producer/method/NamedProducerWithBindingTest.java 2009-06-08 20:33:56 UTC (rev 2793)
@@ -1,7 +1,8 @@
package org.jboss.webbeans.test.unit.implementation.producer.method;
+import static org.testng.Assert.assertNotNull;
+
import java.util.Date;
-import static org.testng.Assert.*;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.webbeans.test.AbstractWebBeansTest;
@@ -16,7 +17,7 @@
@Test
public void testGetNamedProducerWithBinding()
{
- Date date = (Date) getCurrentManager().getInstanceByName("date");
+ Date date = (Date) getCurrentManager().getReference(getCurrentManager().getHighestPrecedenceBean(getCurrentManager().getBeans("date")), Object.class);
assertNotNull(date);
}
}
Modified: ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/proxy/ProxyTest.java
===================================================================
--- ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/proxy/ProxyTest.java 2009-06-08 19:41:03 UTC (rev 2792)
+++ ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/implementation/proxy/ProxyTest.java 2009-06-08 20:33:56 UTC (rev 2793)
@@ -11,7 +11,7 @@
@Test(description="WBRI-122")
public void testImplementationClassImplementsSerializable()
{
- getCurrentManager().getInstanceByName("foo");
+ getCurrentManager().getReference(getCurrentManager().getHighestPrecedenceBean(getCurrentManager().getBeans("foo")), Object.class);
}
}
15 years, 7 months
[webbeans-commits] Webbeans SVN: r2792 - in doc/trunk/reference: es-ES and 6 other directories.
by webbeans-commits@lists.jboss.org
Author: nico.ben
Date: 2009-06-08 15:41:03 -0400 (Mon, 08 Jun 2009)
New Revision: 2792
Modified:
doc/trunk/reference/de-DE/gettingstarted.po
doc/trunk/reference/es-ES/gettingstarted.po
doc/trunk/reference/fr-FR/gettingstarted.po
doc/trunk/reference/ja-JP/gettingstarted.po
doc/trunk/reference/ko-KR/gettingstarted.po
doc/trunk/reference/pot/Author_Group.pot
doc/trunk/reference/pot/Book_Info.pot
doc/trunk/reference/pot/decorators.pot
doc/trunk/reference/pot/ee.pot
doc/trunk/reference/pot/environments.pot
doc/trunk/reference/pot/events.pot
doc/trunk/reference/pot/example.pot
doc/trunk/reference/pot/extend.pot
doc/trunk/reference/pot/extensions.pot
doc/trunk/reference/pot/gettingstarted.pot
doc/trunk/reference/pot/injection.pot
doc/trunk/reference/pot/interceptors.pot
doc/trunk/reference/pot/intro.pot
doc/trunk/reference/pot/master.pot
doc/trunk/reference/pot/next.pot
doc/trunk/reference/pot/part1.pot
doc/trunk/reference/pot/part2.pot
doc/trunk/reference/pot/part3.pot
doc/trunk/reference/pot/part4.pot
doc/trunk/reference/pot/part5.pot
doc/trunk/reference/pot/producermethods.pot
doc/trunk/reference/pot/ri-spi.pot
doc/trunk/reference/pot/scopescontexts.pot
doc/trunk/reference/pot/specialization.pot
doc/trunk/reference/pot/stereotypes.pot
doc/trunk/reference/pot/viewlayers.pot
doc/trunk/reference/pot/xml.pot
doc/trunk/reference/pt-BR/gettingstarted.po
doc/trunk/reference/zh-TW/gettingstarted.po
Log:
POT and PO regeneration
Modified: doc/trunk/reference/de-DE/gettingstarted.po
===================================================================
--- doc/trunk/reference/de-DE/gettingstarted.po 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/de-DE/gettingstarted.po 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: ri\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: 2009-02-27 15:36+1100\n"
"Last-Translator: \n"
"Language-Team: <en(a)li.org>\n"
@@ -283,7 +283,7 @@
"Skript."
#. Tag: para
-#: gettingstarted.xml:145 gettingstarted.xml:247
+#: gettingstarted.xml:145 gettingstarted.xml:252
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -415,23 +415,34 @@
#: gettingstarted.xml:217
#, fuzzy, no-c-format
msgid ""
-"<literal>ant tomcat.undeploy</literal> - remove the example from the server"
-msgstr "<literal>ant undeploy</literal> - das Beispiel vom Server entfernen"
+"<literal>ant tomcat.undeploy</literal> - remove the example (in compressed "
+"jar format) from the server"
+msgstr ""
+"<literal>ant deploy</literal> - Deployment des Beispiels in komprimiertem "
+"jar-Format"
#. Tag: para
#: gettingstarted.xml:222
#, fuzzy, no-c-format
+msgid ""
+"<literal>ant tomcat.unexplode</literal> - remove the example (in exploded "
+"format) from the server"
+msgstr "<literal>ant undeploy</literal> - das Beispiel vom Server entfernen"
+
+#. Tag: para
+#: gettingstarted.xml:227
+#, fuzzy, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - Das Beispiel bereinigen"
#. Tag: para
-#: gettingstarted.xml:229
+#: gettingstarted.xml:234
#, fuzzy, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr "Um das numberguess Beispiel zu deployen:"
#. Tag: programlisting
-#: gettingstarted.xml:233
+#: gettingstarted.xml:238
#, fuzzy, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -441,19 +452,19 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:240
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:239
+#: gettingstarted.xml:244
#, fuzzy, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr "$ /Application/jboss-5.0.0.GA/bin/run.sh"
#. Tag: para
-#: gettingstarted.xml:242
+#: gettingstarted.xml:247
#, fuzzy, no-c-format
msgid "If you use Windows, use the <literal>startup.bat</literal>script."
msgstr ""
@@ -461,25 +472,25 @@
"Skript."
#. Tag: title
-#: gettingstarted.xml:255
+#: gettingstarted.xml:260
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:257
+#: gettingstarted.xml:262
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:261
+#: gettingstarted.xml:266
#, no-c-format
msgid "The numberguess example"
msgstr "Das numberguess-Beispiel"
#. Tag: para
-#: gettingstarted.xml:263
+#: gettingstarted.xml:268
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -491,7 +502,7 @@
"oder zu niedrig liegen."
#. Tag: para
-#: gettingstarted.xml:269
+#: gettingstarted.xml:274
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration "
@@ -503,7 +514,7 @@
"sind. Fangen wir mit den Konfigurationsdateien an."
#. Tag: para
-#: gettingstarted.xml:275
+#: gettingstarted.xml:280
#, no-c-format
msgid ""
"All the configuration files for this example are located in <literal>WEB-INF/"
@@ -517,7 +528,7 @@
"dem wir JSF anweisen, Facelets zu verwenden:"
#. Tag: programlisting
-#: gettingstarted.xml:283
+#: gettingstarted.xml:288
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -547,7 +558,7 @@
"</faces-config>]]>"
#. Tag: para
-#: gettingstarted.xml:285
+#: gettingstarted.xml:290
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks this "
@@ -557,13 +568,13 @@
"Anwendung als Web Beans Applikation kennzeichnet."
#. Tag: para
-#: gettingstarted.xml:290
+#: gettingstarted.xml:295
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr "Und schließlich gibt es noch <literal>web.xml</literal>:"
#. Tag: section
-#: gettingstarted.xml:292
+#: gettingstarted.xml:297
#, fuzzy, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\" coords=\"12\"/> "
@@ -801,7 +812,7 @@
"programlistingco>"
#. Tag: para
-#: gettingstarted.xml:394
+#: gettingstarted.xml:399
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -813,7 +824,7 @@
"Einspeisung einer zufälligen Zahl dient:"
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:405
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -829,7 +840,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -839,7 +850,7 @@
"Einspeisung der maximalen Zahl, die eingespeist werden kann, verwendet wird:"
#. Tag: programlisting
-#: gettingstarted.xml:407
+#: gettingstarted.xml:412
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -857,7 +868,7 @@
"]]>"
#. Tag: para
-#: gettingstarted.xml:409
+#: gettingstarted.xml:414
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -869,7 +880,7 @@
"die mögliche Maximalzahl via einer maximum Producer-Methode offen:"
#. Tag: programlisting
-#: gettingstarted.xml:415
+#: gettingstarted.xml:420
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -921,7 +932,7 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:417
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -932,7 +943,7 @@
"Zufallsergebnis."
#. Tag: para
-#: gettingstarted.xml:422
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -942,7 +953,7 @@
"literal>."
#. Tag: para
-#: gettingstarted.xml:427
+#: gettingstarted.xml:432
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -959,7 +970,7 @@
"<literal>FacesMessage</literal>."
#. Tag: programlisting
-#: gettingstarted.xml:435
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -1157,13 +1168,13 @@
"}]]>"
#. Tag: title
-#: gettingstarted.xml:438
+#: gettingstarted.xml:443
#, fuzzy, no-c-format
msgid "The numberguess example in Tomcat"
msgstr "Das numberguess-Beispiel"
#. Tag: para
-#: gettingstarted.xml:440
+#: gettingstarted.xml:445
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -1173,7 +1184,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:454
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -1181,7 +1192,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:456
+#: gettingstarted.xml:461
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -1190,7 +1201,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:462
+#: gettingstarted.xml:467
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -1200,13 +1211,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:467
+#: gettingstarted.xml:472
#, fuzzy, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr "Das numberguess-Beispiel"
#. Tag: para
-#: gettingstarted.xml:468
+#: gettingstarted.xml:473
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows "
@@ -1216,7 +1227,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:477
+#: gettingstarted.xml:482
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink url=\"http://"
@@ -1224,7 +1235,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:483
+#: gettingstarted.xml:488
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -1237,7 +1248,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:494
+#: gettingstarted.xml:499
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -1245,19 +1256,19 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:500
+#: gettingstarted.xml:505
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:502
+#: gettingstarted.xml:507
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:506
+#: gettingstarted.xml:511
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
@@ -1265,7 +1276,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:508
+#: gettingstarted.xml:513
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General -> Existing "
@@ -1277,13 +1288,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:524
+#: gettingstarted.xml:529
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:526
+#: gettingstarted.xml:531
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach of "
@@ -1297,13 +1308,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:541
+#: gettingstarted.xml:546
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:543
+#: gettingstarted.xml:548
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the "
@@ -1316,13 +1327,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:557
+#: gettingstarted.xml:562
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:559
+#: gettingstarted.xml:564
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -1336,7 +1347,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:571
+#: gettingstarted.xml:576
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -1344,13 +1355,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:576
+#: gettingstarted.xml:581
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:581
+#: gettingstarted.xml:586
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal> "
@@ -1359,7 +1370,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:587
+#: gettingstarted.xml:592
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1371,7 +1382,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:588
+#: gettingstarted.xml:593
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our "
@@ -1379,7 +1390,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:599
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up page "
@@ -1388,13 +1399,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:600
+#: gettingstarted.xml:605
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by the "
@@ -1402,7 +1413,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:607
+#: gettingstarted.xml:612
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\") { \n"
@@ -1411,7 +1422,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:610
+#: gettingstarted.xml:615
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1420,7 +1431,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:616
+#: gettingstarted.xml:621
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis> use "
@@ -1429,7 +1440,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:631
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides "
@@ -1438,7 +1449,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:634
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1446,7 +1457,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:639
+#: gettingstarted.xml:644
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1472,7 +1483,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:640
+#: gettingstarted.xml:645
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1481,13 +1492,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:653
+#: gettingstarted.xml:658
#, fuzzy, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr "Das numberguess-Beispiel"
#. Tag: para
-#: gettingstarted.xml:655
+#: gettingstarted.xml:660
#, no-c-format
msgid ""
"This example can be found in the <literal>examples/se/numberguess</literal> "
@@ -1495,13 +1506,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:662
+#: gettingstarted.xml:667
#, fuzzy, no-c-format
msgid "To run this example:"
msgstr "Das translator-Beispiel"
#. Tag: para
-#: gettingstarted.xml:668
+#: gettingstarted.xml:673
#, no-c-format
msgid ""
"Open a command line/terminal window in the <literal>examples/se/numberguess</"
@@ -1509,13 +1520,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:674
+#: gettingstarted.xml:679
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:679
+#: gettingstarted.xml:684
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is "
@@ -1523,19 +1534,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:685
+#: gettingstarted.xml:690
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:688
+#: gettingstarted.xml:693
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:694
+#: gettingstarted.xml:699
#, fuzzy, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package "
@@ -1546,7 +1557,7 @@
"Anwendung als Web Beans Applikation kennzeichnet."
#. Tag: para
-#: gettingstarted.xml:700
+#: gettingstarted.xml:705
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>. Here is "
@@ -1555,7 +1566,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:704
+#: gettingstarted.xml:709
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\" coords=\"1\"/> <area id="
@@ -1821,13 +1832,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:912
+#: gettingstarted.xml:917
#, no-c-format
msgid "The translator example"
msgstr "Das translator-Beispiel"
#. Tag: para
-#: gettingstarted.xml:914
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -1837,7 +1848,7 @@
"Lateinische übersetzt."
#. Tag: para
-#: gettingstarted.xml:919
+#: gettingstarted.xml:924
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1847,7 +1858,7 @@
"Struktur komplexer als die desnumberguess-Beispiels."
#. Tag: para
-#: gettingstarted.xml:925
+#: gettingstarted.xml:930
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1857,7 +1868,7 @@
"wodurch diese Struktur wesentlich einfacher wird!"
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:936
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1869,7 +1880,7 @@
"automatisch die <literal>application.xml</literal> für uns:"
#. Tag: programlisting
-#: gettingstarted.xml:937
+#: gettingstarted.xml:942
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1901,7 +1912,7 @@
"</plugin>]]>"
#. Tag: para
-#: gettingstarted.xml:939
+#: gettingstarted.xml:944
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink url=\"http://"
@@ -1913,7 +1924,7 @@
"translator</ulink>)."
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1923,7 +1934,7 @@
"benötigen Sie <literal>META-INF/application.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:950
+#: gettingstarted.xml:955
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -1969,7 +1980,7 @@
"</application>]]>"
#. Tag: para
-#: gettingstarted.xml:953
+#: gettingstarted.xml:958
#, fuzzy, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1982,7 +1993,7 @@
"<literal>WebContent/WEB-INF</literal>."
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:965
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1994,7 +2005,7 @@
"(hier der Kürze wegen weggelassen):"
#. Tag: programlisting
-#: gettingstarted.xml:966
+#: gettingstarted.xml:971
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -2054,7 +2065,7 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:968
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -2065,7 +2076,7 @@
"Ergebnis zu sehen."
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:978
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
@@ -2079,7 +2090,7 @@
"das Archiv als Web Beans enthaltend zu markieren."
#. Tag: para
-#: gettingstarted.xml:981
+#: gettingstarted.xml:986
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -2097,7 +2108,7 @@
"Bean aussehen, daher gehen wir hier nur auf die interessantesten Aspekte ein."
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:996
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and <literal>TextTranslator</literal> "
@@ -2109,7 +2120,7 @@
"<literal>TextTranslator</literal> verwendet Konstruktor-Initialisierung :"
#. Tag: programlisting
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1002
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -2135,7 +2146,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: gettingstarted.xml:999
+#: gettingstarted.xml:1004
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -2147,7 +2158,7 @@
"kompletten Übersetzer entwickeln,, aber wir haben uns Mühe gegeben!"
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1010
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -2160,7 +2171,7 @@
"das den translator einspeist."
#. Tag: programlisting
-#: gettingstarted.xml:1011
+#: gettingstarted.xml:1016
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -2180,13 +2191,13 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1018
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr "Das Bean besitzt auch Getter und Setter für alle Felder auf der Seite."
#. Tag: para
-#: gettingstarted.xml:1017
+#: gettingstarted.xml:1022
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
@@ -2194,7 +2205,7 @@
"Methode besitzen:"
#. Tag: programlisting
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1026
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -2210,7 +2221,7 @@
" }]]>"
#. Tag: para
-#: gettingstarted.xml:1023
+#: gettingstarted.xml:1028
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -2220,7 +2231,7 @@
"gelöscht wird, in diesem Fall am Ende der Anfrage."
#. Tag: para
-#: gettingstarted.xml:1029
+#: gettingstarted.xml:1034
#, fuzzy, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -2234,7 +2245,7 @@
"Development\">http://www.seamframework.org/WebBeans/Development</ulink>."
#. Tag: para
-#: gettingstarted.xml:1035
+#: gettingstarted.xml:1040
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/es-ES/gettingstarted.po
===================================================================
--- doc/trunk/reference/es-ES/gettingstarted.po 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/es-ES/gettingstarted.po 2009-06-08 19:41:03 UTC (rev 2792)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: ri\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: 2009-01-20 10:55+1000\n"
"Last-Translator: Gladys Guerrero Lozano <gguerrer(a)redhat.com>\n"
"Language-Team: Spanish <fedora-trans-es(a)redhat.com>\n"
@@ -282,7 +282,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:145 gettingstarted.xml:247
+#: gettingstarted.xml:145 gettingstarted.xml:252
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -412,23 +412,34 @@
#: gettingstarted.xml:217
#, fuzzy, no-c-format
msgid ""
-"<literal>ant tomcat.undeploy</literal> - remove the example from the server"
-msgstr "<literal>ant undeploy</literal> - quita el ejemplo del servidor"
+"<literal>ant tomcat.undeploy</literal> - remove the example (in compressed "
+"jar format) from the server"
+msgstr ""
+"<literal>ant deploy</literal> - despliega el ejemplo en formato JAR "
+"comprimido"
#. Tag: para
#: gettingstarted.xml:222
#, fuzzy, no-c-format
+msgid ""
+"<literal>ant tomcat.unexplode</literal> - remove the example (in exploded "
+"format) from the server"
+msgstr "<literal>ant undeploy</literal> - quita el ejemplo del servidor"
+
+#. Tag: para
+#: gettingstarted.xml:227
+#, fuzzy, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - borra el ejemplo"
#. Tag: para
-#: gettingstarted.xml:229
+#: gettingstarted.xml:234
#, fuzzy, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr "Para desplegar el ejemplo numberguess:"
#. Tag: programlisting
-#: gettingstarted.xml:233
+#: gettingstarted.xml:238
#, fuzzy, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -438,43 +449,43 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:240
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:239
+#: gettingstarted.xml:244
#, fuzzy, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:242
+#: gettingstarted.xml:247
#, no-c-format
msgid "If you use Windows, use the <literal>startup.bat</literal>script."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:255
+#: gettingstarted.xml:260
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:257
+#: gettingstarted.xml:262
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:261
+#: gettingstarted.xml:266
#, no-c-format
msgid "The numberguess example"
msgstr "El ejemplo numberguess"
#. Tag: para
-#: gettingstarted.xml:263
+#: gettingstarted.xml:268
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -486,7 +497,7 @@
"número."
#. Tag: para
-#: gettingstarted.xml:269
+#: gettingstarted.xml:274
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration "
@@ -498,7 +509,7 @@
"los archivos de configuración."
#. Tag: para
-#: gettingstarted.xml:275
+#: gettingstarted.xml:280
#, no-c-format
msgid ""
"All the configuration files for this example are located in <literal>WEB-INF/"
@@ -512,7 +523,7 @@
"literal>, en donde le pedimos a JSF que utilice Facelets:"
#. Tag: programlisting
-#: gettingstarted.xml:283
+#: gettingstarted.xml:288
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -542,7 +553,7 @@
"</faces-config>]]>"
#. Tag: para
-#: gettingstarted.xml:285
+#: gettingstarted.xml:290
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks this "
@@ -552,13 +563,13 @@
"aplicación como una aplicación de Web Beans."
#. Tag: para
-#: gettingstarted.xml:290
+#: gettingstarted.xml:295
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr "Por último, está <literal>web.xml</literal>:"
#. Tag: section
-#: gettingstarted.xml:292
+#: gettingstarted.xml:297
#, fuzzy, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\" coords=\"12\"/> "
@@ -797,7 +808,7 @@
"para> </callout> </calloutlist> </programlistingco>"
#. Tag: para
-#: gettingstarted.xml:394
+#: gettingstarted.xml:399
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -809,7 +820,7 @@
"inyectar un número aleatorio:"
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:405
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -825,7 +836,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -835,7 +846,7 @@
"inyectar el número máximo posible:"
#. Tag: programlisting
-#: gettingstarted.xml:407
+#: gettingstarted.xml:412
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -853,7 +864,7 @@
"]]>"
#. Tag: para
-#: gettingstarted.xml:409
+#: gettingstarted.xml:414
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -865,7 +876,7 @@
"máximo posible a través del método de productor:"
#. Tag: programlisting
-#: gettingstarted.xml:415
+#: gettingstarted.xml:420
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -917,7 +928,7 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:417
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -927,7 +938,7 @@
"lo tanto no obtenemos un número aleatorio diferente cada vez."
#. Tag: para
-#: gettingstarted.xml:422
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -937,7 +948,7 @@
"literal>."
#. Tag: para
-#: gettingstarted.xml:427
+#: gettingstarted.xml:432
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -954,7 +965,7 @@
"literal>."
#. Tag: programlisting
-#: gettingstarted.xml:435
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -1152,13 +1163,13 @@
"}]]>"
#. Tag: title
-#: gettingstarted.xml:438
+#: gettingstarted.xml:443
#, fuzzy, no-c-format
msgid "The numberguess example in Tomcat"
msgstr "El ejemplo numberguess"
#. Tag: para
-#: gettingstarted.xml:440
+#: gettingstarted.xml:445
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -1168,7 +1179,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:454
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -1176,7 +1187,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:456
+#: gettingstarted.xml:461
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -1185,7 +1196,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:462
+#: gettingstarted.xml:467
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -1195,13 +1206,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:467
+#: gettingstarted.xml:472
#, fuzzy, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr "El ejemplo numberguess"
#. Tag: para
-#: gettingstarted.xml:468
+#: gettingstarted.xml:473
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows "
@@ -1211,7 +1222,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:477
+#: gettingstarted.xml:482
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink url=\"http://"
@@ -1219,7 +1230,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:483
+#: gettingstarted.xml:488
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -1232,7 +1243,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:494
+#: gettingstarted.xml:499
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -1240,19 +1251,19 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:500
+#: gettingstarted.xml:505
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:502
+#: gettingstarted.xml:507
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:506
+#: gettingstarted.xml:511
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
@@ -1260,7 +1271,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:508
+#: gettingstarted.xml:513
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General -> Existing "
@@ -1272,13 +1283,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:524
+#: gettingstarted.xml:529
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:526
+#: gettingstarted.xml:531
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach of "
@@ -1292,13 +1303,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:541
+#: gettingstarted.xml:546
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:543
+#: gettingstarted.xml:548
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the "
@@ -1311,13 +1322,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:557
+#: gettingstarted.xml:562
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:559
+#: gettingstarted.xml:564
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -1331,7 +1342,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:571
+#: gettingstarted.xml:576
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -1339,13 +1350,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:576
+#: gettingstarted.xml:581
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:581
+#: gettingstarted.xml:586
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal> "
@@ -1354,7 +1365,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:587
+#: gettingstarted.xml:592
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1366,7 +1377,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:588
+#: gettingstarted.xml:593
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our "
@@ -1374,7 +1385,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:599
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up page "
@@ -1383,13 +1394,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:600
+#: gettingstarted.xml:605
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by the "
@@ -1397,7 +1408,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:607
+#: gettingstarted.xml:612
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\") { \n"
@@ -1406,7 +1417,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:610
+#: gettingstarted.xml:615
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1415,7 +1426,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:616
+#: gettingstarted.xml:621
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis> use "
@@ -1424,7 +1435,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:631
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides "
@@ -1433,7 +1444,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:634
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1441,7 +1452,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:639
+#: gettingstarted.xml:644
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1467,7 +1478,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:640
+#: gettingstarted.xml:645
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1476,13 +1487,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:653
+#: gettingstarted.xml:658
#, fuzzy, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr "El ejemplo numberguess"
#. Tag: para
-#: gettingstarted.xml:655
+#: gettingstarted.xml:660
#, no-c-format
msgid ""
"This example can be found in the <literal>examples/se/numberguess</literal> "
@@ -1490,13 +1501,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:662
+#: gettingstarted.xml:667
#, fuzzy, no-c-format
msgid "To run this example:"
msgstr "Ejemplo de traductor"
#. Tag: para
-#: gettingstarted.xml:668
+#: gettingstarted.xml:673
#, no-c-format
msgid ""
"Open a command line/terminal window in the <literal>examples/se/numberguess</"
@@ -1504,13 +1515,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:674
+#: gettingstarted.xml:679
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:679
+#: gettingstarted.xml:684
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is "
@@ -1518,19 +1529,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:685
+#: gettingstarted.xml:690
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:688
+#: gettingstarted.xml:693
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:694
+#: gettingstarted.xml:699
#, fuzzy, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package "
@@ -1541,7 +1552,7 @@
"aplicación como una aplicación de Web Beans."
#. Tag: para
-#: gettingstarted.xml:700
+#: gettingstarted.xml:705
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>. Here is "
@@ -1550,7 +1561,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:704
+#: gettingstarted.xml:709
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\" coords=\"1\"/> <area id="
@@ -1816,13 +1827,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:912
+#: gettingstarted.xml:917
#, no-c-format
msgid "The translator example"
msgstr "Ejemplo de traductor"
#. Tag: para
-#: gettingstarted.xml:914
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -1832,7 +1843,7 @@
"Latín."
#. Tag: para
-#: gettingstarted.xml:919
+#: gettingstarted.xml:924
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1842,7 +1853,7 @@
"resultado, su estructura es más compleja que el ejemplo de Numberguess."
#. Tag: para
-#: gettingstarted.xml:925
+#: gettingstarted.xml:930
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1852,7 +1863,7 @@
"estructura mucho más simple!"
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:936
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1864,7 +1875,7 @@
"automáticamente la <literal>application.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:937
+#: gettingstarted.xml:942
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1896,7 +1907,7 @@
"</plugin>]]>"
#. Tag: para
-#: gettingstarted.xml:939
+#: gettingstarted.xml:944
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink url=\"http://"
@@ -1908,7 +1919,7 @@
"localhost:8080/webbeans-translator</ulink>)."
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1918,7 +1929,7 @@
"<literal>META-INF/application.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:950
+#: gettingstarted.xml:955
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -1964,7 +1975,7 @@
"</application>]]>"
#. Tag: para
-#: gettingstarted.xml:953
+#: gettingstarted.xml:958
#, fuzzy, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1977,7 +1988,7 @@
"INF</literal>."
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:965
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1989,7 +2000,7 @@
"formulario (omitido aquí por razones de brevedad):"
#. Tag: programlisting
-#: gettingstarted.xml:966
+#: gettingstarted.xml:971
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -2049,7 +2060,7 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:968
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -2059,7 +2070,7 @@
"el botón de traducir para ver el resultado a la derecha."
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:978
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
@@ -2073,7 +2084,7 @@
"como si contuviera Web Beans."
#. Tag: para
-#: gettingstarted.xml:981
+#: gettingstarted.xml:986
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -2091,7 +2102,7 @@
"Bean, por lo tanto sólo destacaremos aquí las partes más interesantes."
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:996
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and <literal>TextTranslator</literal> "
@@ -2103,7 +2114,7 @@
"inicialización de constructor:"
#. Tag: programlisting
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1002
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -2129,7 +2140,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: gettingstarted.xml:999
+#: gettingstarted.xml:1004
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -2141,7 +2152,7 @@
"desarrollaramos un traductor completo, ¡pero le dimos una buena luz!"
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1010
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -2153,7 +2164,7 @@
"bean con estado de sesión que inyecta el traductor."
#. Tag: programlisting
-#: gettingstarted.xml:1011
+#: gettingstarted.xml:1016
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -2173,7 +2184,7 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1018
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
@@ -2181,7 +2192,7 @@
"la página."
#. Tag: para
-#: gettingstarted.xml:1017
+#: gettingstarted.xml:1022
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
@@ -2189,7 +2200,7 @@
"eliminación:"
#. Tag: programlisting
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1026
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -2205,7 +2216,7 @@
" }]]>"
#. Tag: para
-#: gettingstarted.xml:1023
+#: gettingstarted.xml:1028
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -2215,7 +2226,7 @@
"bean sea destruido, en este caso al final de la petición."
#. Tag: para
-#: gettingstarted.xml:1029
+#: gettingstarted.xml:1034
#, fuzzy, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -2229,7 +2240,7 @@
"seamframework.org/WebBeans/Development</ulink>."
#. Tag: para
-#: gettingstarted.xml:1035
+#: gettingstarted.xml:1040
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/fr-FR/gettingstarted.po
===================================================================
--- doc/trunk/reference/fr-FR/gettingstarted.po 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/fr-FR/gettingstarted.po 2009-06-08 19:41:03 UTC (rev 2792)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: 2008-12-19 20:26+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -239,7 +239,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:145 gettingstarted.xml:247
+#: gettingstarted.xml:145 gettingstarted.xml:252
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -345,23 +345,32 @@
#: gettingstarted.xml:217
#, no-c-format
msgid ""
-"<literal>ant tomcat.undeploy</literal> - remove the example from the server"
+"<literal>ant tomcat.undeploy</literal> - remove the example (in compressed "
+"jar format) from the server"
msgstr ""
#. Tag: para
#: gettingstarted.xml:222
#, no-c-format
+msgid ""
+"<literal>ant tomcat.unexplode</literal> - remove the example (in exploded "
+"format) from the server"
+msgstr ""
+
+#. Tag: para
+#: gettingstarted.xml:227
+#, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:229
+#: gettingstarted.xml:234
#, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:233
+#: gettingstarted.xml:238
#, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -369,43 +378,43 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:240
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:239
+#: gettingstarted.xml:244
#, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:242
+#: gettingstarted.xml:247
#, no-c-format
msgid "If you use Windows, use the <literal>startup.bat</literal>script."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:255
+#: gettingstarted.xml:260
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:257
+#: gettingstarted.xml:262
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:261
+#: gettingstarted.xml:266
#, no-c-format
msgid "The numberguess example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:263
+#: gettingstarted.xml:268
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -414,7 +423,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:269
+#: gettingstarted.xml:274
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration "
@@ -423,7 +432,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:275
+#: gettingstarted.xml:280
#, no-c-format
msgid ""
"All the configuration files for this example are located in <literal>WEB-INF/"
@@ -433,7 +442,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:283
+#: gettingstarted.xml:288
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -451,7 +460,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:285
+#: gettingstarted.xml:290
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks this "
@@ -459,13 +468,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:290
+#: gettingstarted.xml:295
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr ""
#. Tag: section
-#: gettingstarted.xml:292
+#: gettingstarted.xml:297
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\" coords=\"12\"/> "
@@ -587,7 +596,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:394
+#: gettingstarted.xml:399
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -596,7 +605,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:405
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -607,7 +616,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -615,7 +624,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:407
+#: gettingstarted.xml:412
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -627,7 +636,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:409
+#: gettingstarted.xml:414
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -636,7 +645,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:415
+#: gettingstarted.xml:420
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -665,7 +674,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:417
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -673,7 +682,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:422
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -681,7 +690,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:427
+#: gettingstarted.xml:432
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -692,7 +701,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:435
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -794,13 +803,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:438
+#: gettingstarted.xml:443
#, no-c-format
msgid "The numberguess example in Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:440
+#: gettingstarted.xml:445
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -810,7 +819,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:454
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -818,7 +827,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:456
+#: gettingstarted.xml:461
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -827,7 +836,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:462
+#: gettingstarted.xml:467
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -837,13 +846,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:467
+#: gettingstarted.xml:472
#, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:468
+#: gettingstarted.xml:473
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows "
@@ -853,7 +862,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:477
+#: gettingstarted.xml:482
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink url=\"http://"
@@ -861,7 +870,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:483
+#: gettingstarted.xml:488
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -874,7 +883,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:494
+#: gettingstarted.xml:499
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -882,19 +891,19 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:500
+#: gettingstarted.xml:505
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:502
+#: gettingstarted.xml:507
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:506
+#: gettingstarted.xml:511
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
@@ -902,7 +911,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:508
+#: gettingstarted.xml:513
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General -> Existing "
@@ -914,13 +923,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:524
+#: gettingstarted.xml:529
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:526
+#: gettingstarted.xml:531
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach of "
@@ -934,13 +943,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:541
+#: gettingstarted.xml:546
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:543
+#: gettingstarted.xml:548
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the "
@@ -953,13 +962,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:557
+#: gettingstarted.xml:562
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:559
+#: gettingstarted.xml:564
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -973,7 +982,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:571
+#: gettingstarted.xml:576
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -981,13 +990,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:576
+#: gettingstarted.xml:581
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:581
+#: gettingstarted.xml:586
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal> "
@@ -996,7 +1005,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:587
+#: gettingstarted.xml:592
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1008,7 +1017,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:588
+#: gettingstarted.xml:593
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our "
@@ -1016,7 +1025,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:599
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up page "
@@ -1025,13 +1034,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:600
+#: gettingstarted.xml:605
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by the "
@@ -1039,7 +1048,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:607
+#: gettingstarted.xml:612
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\") { \n"
@@ -1048,7 +1057,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:610
+#: gettingstarted.xml:615
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1057,7 +1066,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:616
+#: gettingstarted.xml:621
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis> use "
@@ -1066,7 +1075,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:631
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides "
@@ -1075,7 +1084,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:634
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1083,7 +1092,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:639
+#: gettingstarted.xml:644
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1109,7 +1118,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:640
+#: gettingstarted.xml:645
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1118,13 +1127,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:653
+#: gettingstarted.xml:658
#, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:655
+#: gettingstarted.xml:660
#, no-c-format
msgid ""
"This example can be found in the <literal>examples/se/numberguess</literal> "
@@ -1132,13 +1141,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:662
+#: gettingstarted.xml:667
#, no-c-format
msgid "To run this example:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:668
+#: gettingstarted.xml:673
#, no-c-format
msgid ""
"Open a command line/terminal window in the <literal>examples/se/numberguess</"
@@ -1146,13 +1155,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:674
+#: gettingstarted.xml:679
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:679
+#: gettingstarted.xml:684
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is "
@@ -1160,19 +1169,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:685
+#: gettingstarted.xml:690
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:688
+#: gettingstarted.xml:693
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:694
+#: gettingstarted.xml:699
#, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package "
@@ -1181,7 +1190,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:700
+#: gettingstarted.xml:705
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>. Here is "
@@ -1190,7 +1199,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:704
+#: gettingstarted.xml:709
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\" coords=\"1\"/> <area id="
@@ -1456,13 +1465,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:912
+#: gettingstarted.xml:917
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:914
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -1470,7 +1479,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:919
+#: gettingstarted.xml:924
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1478,7 +1487,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:925
+#: gettingstarted.xml:930
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1486,7 +1495,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:936
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1495,7 +1504,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:937
+#: gettingstarted.xml:942
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1514,7 +1523,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:939
+#: gettingstarted.xml:944
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink url=\"http://"
@@ -1523,7 +1532,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1531,7 +1540,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:950
+#: gettingstarted.xml:955
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -1557,7 +1566,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:953
+#: gettingstarted.xml:958
#, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1566,7 +1575,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:965
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1575,7 +1584,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:966
+#: gettingstarted.xml:971
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -1608,7 +1617,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:968
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -1616,7 +1625,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:978
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
@@ -1626,7 +1635,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:981
+#: gettingstarted.xml:986
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -1638,7 +1647,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:996
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and <literal>TextTranslator</literal> "
@@ -1647,7 +1656,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1002
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -1663,7 +1672,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:999
+#: gettingstarted.xml:1004
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -1672,7 +1681,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1010
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -1681,7 +1690,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:1011
+#: gettingstarted.xml:1016
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -1694,19 +1703,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1018
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1017
+#: gettingstarted.xml:1022
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1026
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -1717,7 +1726,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1023
+#: gettingstarted.xml:1028
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -1725,7 +1734,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1029
+#: gettingstarted.xml:1034
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -1735,7 +1744,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1035
+#: gettingstarted.xml:1040
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/ja-JP/gettingstarted.po
===================================================================
--- doc/trunk/reference/ja-JP/gettingstarted.po 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/ja-JP/gettingstarted.po 2009-06-08 19:41:03 UTC (rev 2792)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: master.xml \n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: 2008-12-19 20:26+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -239,7 +239,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:145 gettingstarted.xml:247
+#: gettingstarted.xml:145 gettingstarted.xml:252
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -345,23 +345,32 @@
#: gettingstarted.xml:217
#, no-c-format
msgid ""
-"<literal>ant tomcat.undeploy</literal> - remove the example from the server"
+"<literal>ant tomcat.undeploy</literal> - remove the example (in compressed "
+"jar format) from the server"
msgstr ""
#. Tag: para
#: gettingstarted.xml:222
#, no-c-format
+msgid ""
+"<literal>ant tomcat.unexplode</literal> - remove the example (in exploded "
+"format) from the server"
+msgstr ""
+
+#. Tag: para
+#: gettingstarted.xml:227
+#, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:229
+#: gettingstarted.xml:234
#, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:233
+#: gettingstarted.xml:238
#, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -369,43 +378,43 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:240
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:239
+#: gettingstarted.xml:244
#, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:242
+#: gettingstarted.xml:247
#, no-c-format
msgid "If you use Windows, use the <literal>startup.bat</literal>script."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:255
+#: gettingstarted.xml:260
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:257
+#: gettingstarted.xml:262
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:261
+#: gettingstarted.xml:266
#, no-c-format
msgid "The numberguess example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:263
+#: gettingstarted.xml:268
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -414,7 +423,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:269
+#: gettingstarted.xml:274
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration "
@@ -423,7 +432,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:275
+#: gettingstarted.xml:280
#, no-c-format
msgid ""
"All the configuration files for this example are located in <literal>WEB-INF/"
@@ -433,7 +442,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:283
+#: gettingstarted.xml:288
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -451,7 +460,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:285
+#: gettingstarted.xml:290
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks this "
@@ -459,13 +468,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:290
+#: gettingstarted.xml:295
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr ""
#. Tag: section
-#: gettingstarted.xml:292
+#: gettingstarted.xml:297
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\" coords=\"12\"/> "
@@ -587,7 +596,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:394
+#: gettingstarted.xml:399
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -596,7 +605,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:405
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -607,7 +616,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -615,7 +624,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:407
+#: gettingstarted.xml:412
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -627,7 +636,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:409
+#: gettingstarted.xml:414
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -636,7 +645,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:415
+#: gettingstarted.xml:420
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -665,7 +674,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:417
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -673,7 +682,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:422
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -681,7 +690,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:427
+#: gettingstarted.xml:432
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -692,7 +701,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:435
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -794,13 +803,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:438
+#: gettingstarted.xml:443
#, no-c-format
msgid "The numberguess example in Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:440
+#: gettingstarted.xml:445
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -810,7 +819,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:454
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -818,7 +827,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:456
+#: gettingstarted.xml:461
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -827,7 +836,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:462
+#: gettingstarted.xml:467
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -837,13 +846,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:467
+#: gettingstarted.xml:472
#, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:468
+#: gettingstarted.xml:473
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows "
@@ -853,7 +862,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:477
+#: gettingstarted.xml:482
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink url=\"http://"
@@ -861,7 +870,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:483
+#: gettingstarted.xml:488
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -874,7 +883,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:494
+#: gettingstarted.xml:499
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -882,19 +891,19 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:500
+#: gettingstarted.xml:505
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:502
+#: gettingstarted.xml:507
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:506
+#: gettingstarted.xml:511
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
@@ -902,7 +911,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:508
+#: gettingstarted.xml:513
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General -> Existing "
@@ -914,13 +923,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:524
+#: gettingstarted.xml:529
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:526
+#: gettingstarted.xml:531
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach of "
@@ -934,13 +943,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:541
+#: gettingstarted.xml:546
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:543
+#: gettingstarted.xml:548
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the "
@@ -953,13 +962,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:557
+#: gettingstarted.xml:562
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:559
+#: gettingstarted.xml:564
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -973,7 +982,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:571
+#: gettingstarted.xml:576
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -981,13 +990,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:576
+#: gettingstarted.xml:581
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:581
+#: gettingstarted.xml:586
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal> "
@@ -996,7 +1005,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:587
+#: gettingstarted.xml:592
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1008,7 +1017,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:588
+#: gettingstarted.xml:593
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our "
@@ -1016,7 +1025,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:599
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up page "
@@ -1025,13 +1034,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:600
+#: gettingstarted.xml:605
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by the "
@@ -1039,7 +1048,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:607
+#: gettingstarted.xml:612
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\") { \n"
@@ -1048,7 +1057,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:610
+#: gettingstarted.xml:615
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1057,7 +1066,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:616
+#: gettingstarted.xml:621
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis> use "
@@ -1066,7 +1075,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:631
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides "
@@ -1075,7 +1084,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:634
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1083,7 +1092,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:639
+#: gettingstarted.xml:644
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1109,7 +1118,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:640
+#: gettingstarted.xml:645
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1118,13 +1127,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:653
+#: gettingstarted.xml:658
#, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:655
+#: gettingstarted.xml:660
#, no-c-format
msgid ""
"This example can be found in the <literal>examples/se/numberguess</literal> "
@@ -1132,13 +1141,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:662
+#: gettingstarted.xml:667
#, no-c-format
msgid "To run this example:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:668
+#: gettingstarted.xml:673
#, no-c-format
msgid ""
"Open a command line/terminal window in the <literal>examples/se/numberguess</"
@@ -1146,13 +1155,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:674
+#: gettingstarted.xml:679
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:679
+#: gettingstarted.xml:684
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is "
@@ -1160,19 +1169,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:685
+#: gettingstarted.xml:690
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:688
+#: gettingstarted.xml:693
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:694
+#: gettingstarted.xml:699
#, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package "
@@ -1181,7 +1190,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:700
+#: gettingstarted.xml:705
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>. Here is "
@@ -1190,7 +1199,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:704
+#: gettingstarted.xml:709
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\" coords=\"1\"/> <area id="
@@ -1456,13 +1465,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:912
+#: gettingstarted.xml:917
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:914
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -1470,7 +1479,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:919
+#: gettingstarted.xml:924
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1478,7 +1487,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:925
+#: gettingstarted.xml:930
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1486,7 +1495,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:936
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1495,7 +1504,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:937
+#: gettingstarted.xml:942
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1514,7 +1523,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:939
+#: gettingstarted.xml:944
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink url=\"http://"
@@ -1523,7 +1532,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1531,7 +1540,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:950
+#: gettingstarted.xml:955
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -1557,7 +1566,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:953
+#: gettingstarted.xml:958
#, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1566,7 +1575,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:965
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1575,7 +1584,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:966
+#: gettingstarted.xml:971
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -1608,7 +1617,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:968
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -1616,7 +1625,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:978
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
@@ -1626,7 +1635,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:981
+#: gettingstarted.xml:986
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -1638,7 +1647,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:996
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and <literal>TextTranslator</literal> "
@@ -1647,7 +1656,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1002
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -1663,7 +1672,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:999
+#: gettingstarted.xml:1004
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -1672,7 +1681,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1010
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -1681,7 +1690,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:1011
+#: gettingstarted.xml:1016
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -1694,19 +1703,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1018
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1017
+#: gettingstarted.xml:1022
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1026
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -1717,7 +1726,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1023
+#: gettingstarted.xml:1028
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -1725,7 +1734,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1029
+#: gettingstarted.xml:1034
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -1735,7 +1744,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1035
+#: gettingstarted.xml:1040
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/ko-KR/gettingstarted.po
===================================================================
--- doc/trunk/reference/ko-KR/gettingstarted.po 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/ko-KR/gettingstarted.po 2009-06-08 19:41:03 UTC (rev 2792)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: ri\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: 2009-01-23 11:14+1000\n"
"Last-Translator: Eunju Kim <eukim(a)redhat.com>\n"
"Language-Team: Korean <ko(a)li.org>\n"
@@ -287,7 +287,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:145 gettingstarted.xml:247
+#: gettingstarted.xml:145 gettingstarted.xml:252
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -416,23 +416,33 @@
#: gettingstarted.xml:217
#, fuzzy, no-c-format
msgid ""
-"<literal>ant tomcat.undeploy</literal> - remove the example from the server"
-msgstr "<literal>ant undeploy</literal> - 서버에서 예제를 제거합니다 "
+"<literal>ant tomcat.undeploy</literal> - remove the example (in compressed "
+"jar format) from the server"
+msgstr ""
+"<literal>ant deploy</literal> - 압축된 jar 포맷으로 예제를 배치합니다 "
#. Tag: para
#: gettingstarted.xml:222
#, fuzzy, no-c-format
+msgid ""
+"<literal>ant tomcat.unexplode</literal> - remove the example (in exploded "
+"format) from the server"
+msgstr "<literal>ant undeploy</literal> - 서버에서 예제를 제거합니다 "
+
+#. Tag: para
+#: gettingstarted.xml:227
+#, fuzzy, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - 예제를 지웁니다 "
#. Tag: para
-#: gettingstarted.xml:229
+#: gettingstarted.xml:234
#, fuzzy, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr "numberguess 예제를 배치하려면: "
#. Tag: programlisting
-#: gettingstarted.xml:233
+#: gettingstarted.xml:238
#, fuzzy, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -442,43 +452,43 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:240
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:239
+#: gettingstarted.xml:244
#, fuzzy, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:242
+#: gettingstarted.xml:247
#, no-c-format
msgid "If you use Windows, use the <literal>startup.bat</literal>script."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:255
+#: gettingstarted.xml:260
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:257
+#: gettingstarted.xml:262
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:261
+#: gettingstarted.xml:266
#, no-c-format
msgid "The numberguess example"
msgstr "numberguess 예제 "
#. Tag: para
-#: gettingstarted.xml:263
+#: gettingstarted.xml:268
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -490,7 +500,7 @@
"려주게 됩니다. "
#. Tag: para
-#: gettingstarted.xml:269
+#: gettingstarted.xml:274
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration "
@@ -501,7 +511,7 @@
"있으며, war로 패키지되어 있습니다 설정 파일부터 시작합시다. "
#. Tag: para
-#: gettingstarted.xml:275
+#: gettingstarted.xml:280
#, no-c-format
msgid ""
"All the configuration files for this example are located in <literal>WEB-INF/"
@@ -515,7 +525,7 @@
"를 알려주게 됩니다: "
#. Tag: programlisting
-#: gettingstarted.xml:283
+#: gettingstarted.xml:288
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -545,7 +555,7 @@
"</faces-config>]]>"
#. Tag: para
-#: gettingstarted.xml:285
+#: gettingstarted.xml:290
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks this "
@@ -555,13 +565,13 @@
"리케이션으로 애플리케이션을 표시합니다. "
#. Tag: para
-#: gettingstarted.xml:290
+#: gettingstarted.xml:295
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr "마지막으로, <literal>web.xml</literal> 파일이 있습니다: "
#. Tag: section
-#: gettingstarted.xml:292
+#: gettingstarted.xml:297
#, fuzzy, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\" coords=\"12\"/> "
@@ -799,7 +809,7 @@
"programlistingco>"
#. Tag: para
-#: gettingstarted.xml:394
+#: gettingstarted.xml:399
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -811,7 +821,7 @@
"형이 있습니다: "
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:405
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -827,7 +837,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -837,7 +847,7 @@
"literal> 바인딩 유형도 있습니다: "
#. Tag: programlisting
-#: gettingstarted.xml:407
+#: gettingstarted.xml:412
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -855,7 +865,7 @@
"]]>"
#. Tag: para
-#: gettingstarted.xml:409
+#: gettingstarted.xml:414
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -867,7 +877,7 @@
"냅니다: "
#. Tag: programlisting
-#: gettingstarted.xml:415
+#: gettingstarted.xml:420
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -919,7 +929,7 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:417
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -929,7 +939,7 @@
"니다; 따라서 매번 다른 임의 숫자를 갖지 않게 됩니다. "
#. Tag: para
-#: gettingstarted.xml:422
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -939,7 +949,7 @@
"다. "
#. Tag: para
-#: gettingstarted.xml:427
+#: gettingstarted.xml:432
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -955,7 +965,7 @@
"다. "
#. Tag: programlisting
-#: gettingstarted.xml:435
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -1153,13 +1163,13 @@
"}]]>"
#. Tag: title
-#: gettingstarted.xml:438
+#: gettingstarted.xml:443
#, fuzzy, no-c-format
msgid "The numberguess example in Tomcat"
msgstr "numberguess 예제 "
#. Tag: para
-#: gettingstarted.xml:440
+#: gettingstarted.xml:445
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -1169,7 +1179,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:454
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -1177,7 +1187,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:456
+#: gettingstarted.xml:461
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -1186,7 +1196,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:462
+#: gettingstarted.xml:467
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -1196,13 +1206,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:467
+#: gettingstarted.xml:472
#, fuzzy, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr "numberguess 예제 "
#. Tag: para
-#: gettingstarted.xml:468
+#: gettingstarted.xml:473
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows "
@@ -1212,7 +1222,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:477
+#: gettingstarted.xml:482
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink url=\"http://"
@@ -1220,7 +1230,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:483
+#: gettingstarted.xml:488
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -1233,7 +1243,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:494
+#: gettingstarted.xml:499
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -1241,19 +1251,19 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:500
+#: gettingstarted.xml:505
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:502
+#: gettingstarted.xml:507
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:506
+#: gettingstarted.xml:511
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
@@ -1261,7 +1271,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:508
+#: gettingstarted.xml:513
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General -> Existing "
@@ -1273,13 +1283,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:524
+#: gettingstarted.xml:529
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:526
+#: gettingstarted.xml:531
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach of "
@@ -1293,13 +1303,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:541
+#: gettingstarted.xml:546
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:543
+#: gettingstarted.xml:548
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the "
@@ -1312,13 +1322,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:557
+#: gettingstarted.xml:562
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:559
+#: gettingstarted.xml:564
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -1332,7 +1342,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:571
+#: gettingstarted.xml:576
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -1340,13 +1350,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:576
+#: gettingstarted.xml:581
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:581
+#: gettingstarted.xml:586
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal> "
@@ -1355,7 +1365,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:587
+#: gettingstarted.xml:592
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1367,7 +1377,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:588
+#: gettingstarted.xml:593
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our "
@@ -1375,7 +1385,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:599
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up page "
@@ -1384,13 +1394,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:600
+#: gettingstarted.xml:605
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by the "
@@ -1398,7 +1408,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:607
+#: gettingstarted.xml:612
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\") { \n"
@@ -1407,7 +1417,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:610
+#: gettingstarted.xml:615
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1416,7 +1426,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:616
+#: gettingstarted.xml:621
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis> use "
@@ -1425,7 +1435,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:631
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides "
@@ -1434,7 +1444,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:634
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1442,7 +1452,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:639
+#: gettingstarted.xml:644
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1468,7 +1478,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:640
+#: gettingstarted.xml:645
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1477,13 +1487,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:653
+#: gettingstarted.xml:658
#, fuzzy, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr "numberguess 예제 "
#. Tag: para
-#: gettingstarted.xml:655
+#: gettingstarted.xml:660
#, no-c-format
msgid ""
"This example can be found in the <literal>examples/se/numberguess</literal> "
@@ -1491,13 +1501,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:662
+#: gettingstarted.xml:667
#, fuzzy, no-c-format
msgid "To run this example:"
msgstr "번역 예제 "
#. Tag: para
-#: gettingstarted.xml:668
+#: gettingstarted.xml:673
#, no-c-format
msgid ""
"Open a command line/terminal window in the <literal>examples/se/numberguess</"
@@ -1505,13 +1515,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:674
+#: gettingstarted.xml:679
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:679
+#: gettingstarted.xml:684
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is "
@@ -1519,19 +1529,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:685
+#: gettingstarted.xml:690
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:688
+#: gettingstarted.xml:693
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:694
+#: gettingstarted.xml:699
#, fuzzy, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package "
@@ -1542,7 +1552,7 @@
"리케이션으로 애플리케이션을 표시합니다. "
#. Tag: para
-#: gettingstarted.xml:700
+#: gettingstarted.xml:705
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>. Here is "
@@ -1551,7 +1561,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:704
+#: gettingstarted.xml:709
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\" coords=\"1\"/> <area id="
@@ -1817,13 +1827,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:912
+#: gettingstarted.xml:917
#, no-c-format
msgid "The translator example"
msgstr "번역 예제 "
#. Tag: para
-#: gettingstarted.xml:914
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -1831,7 +1841,7 @@
msgstr "번역 예제는 입력하신 아무 문장을 가져가 이를 라틴어로 번역합니다. "
#. Tag: para
-#: gettingstarted.xml:919
+#: gettingstarted.xml:924
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1841,7 +1851,7 @@
"numberguess 예보다 훨씬 복잡합니다. "
#. Tag: para
-#: gettingstarted.xml:925
+#: gettingstarted.xml:930
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1851,7 +1861,7 @@
"게 만들게 됩니다! "
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:936
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1863,7 +1873,7 @@
"다: "
#. Tag: programlisting
-#: gettingstarted.xml:937
+#: gettingstarted.xml:942
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1895,7 +1905,7 @@
"</plugin>]]>"
#. Tag: para
-#: gettingstarted.xml:939
+#: gettingstarted.xml:944
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink url=\"http://"
@@ -1907,7 +1917,7 @@
"니다. "
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1917,7 +1927,7 @@
"xml</literal>이 필요합니다: "
#. Tag: programlisting
-#: gettingstarted.xml:950
+#: gettingstarted.xml:955
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -1963,7 +1973,7 @@
"</application>]]>"
#. Tag: para
-#: gettingstarted.xml:953
+#: gettingstarted.xml:958
#, fuzzy, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1975,7 +1985,7 @@
"및 <literal>web.xml</literal> (JSF를 활성화)을 갖습니다. "
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:965
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1986,7 +1996,7 @@
"된 템플릿이 있습니다 (간결하게 하기 위해 여기서는 생략됨): "
#. Tag: programlisting
-#: gettingstarted.xml:966
+#: gettingstarted.xml:971
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -2046,7 +2056,7 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:968
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -2056,7 +2066,7 @@
"면 오른쪽에 번역 결과가 나타나게 됩니다. "
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:978
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
@@ -2070,7 +2080,7 @@
"이 있습니다. "
#. Tag: para
-#: gettingstarted.xml:981
+#: gettingstarted.xml:986
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -2088,7 +2098,7 @@
"다. "
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:996
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and <literal>TextTranslator</literal> "
@@ -2100,7 +2110,7 @@
"니다: "
#. Tag: programlisting
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1002
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -2126,7 +2136,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: gettingstarted.xml:999
+#: gettingstarted.xml:1004
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -2137,7 +2147,7 @@
"스와 함께), 완전한 번역기를 개발할 수는 없지만, 잘 작동하고 있습니다! "
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1010
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -2149,7 +2159,7 @@
"되어 있습니다. "
#. Tag: programlisting
-#: gettingstarted.xml:1011
+#: gettingstarted.xml:1016
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -2169,19 +2179,19 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1018
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr "bean은 페이지에 있는 모든 영역에 대해 getter 및 setter를 갖습니다. "
#. Tag: para
-#: gettingstarted.xml:1017
+#: gettingstarted.xml:1022
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr "이는 상태 유지 세션 빈이므로, 제거 방식을 갖고 있어야 합니다: "
#. Tag: programlisting
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1026
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -2197,7 +2207,7 @@
" }]]>"
#. Tag: para
-#: gettingstarted.xml:1023
+#: gettingstarted.xml:1028
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -2207,7 +2217,7 @@
"요청 마지막에 호출하게 됩니다. "
#. Tag: para
-#: gettingstarted.xml:1029
+#: gettingstarted.xml:1034
#, fuzzy, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -2220,7 +2230,7 @@
"seamframework.org/WebBeans/Development</ulink>에서 살펴보시기 바랍니다. "
#. Tag: para
-#: gettingstarted.xml:1035
+#: gettingstarted.xml:1040
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/pot/Author_Group.pot
===================================================================
--- doc/trunk/reference/pot/Author_Group.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/Author_Group.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/Book_Info.pot
===================================================================
--- doc/trunk/reference/pot/Book_Info.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/Book_Info.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/decorators.pot
===================================================================
--- doc/trunk/reference/pot/decorators.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/decorators.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/ee.pot
===================================================================
--- doc/trunk/reference/pot/ee.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/ee.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/environments.pot
===================================================================
--- doc/trunk/reference/pot/environments.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/environments.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/events.pot
===================================================================
--- doc/trunk/reference/pot/events.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/events.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/example.pot
===================================================================
--- doc/trunk/reference/pot/example.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/example.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/extend.pot
===================================================================
--- doc/trunk/reference/pot/extend.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/extend.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/extensions.pot
===================================================================
--- doc/trunk/reference/pot/extensions.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/extensions.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/gettingstarted.pot
===================================================================
--- doc/trunk/reference/pot/gettingstarted.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/gettingstarted.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
@@ -240,7 +240,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:145 gettingstarted.xml:247
+#: gettingstarted.xml:145 gettingstarted.xml:252
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -346,23 +346,32 @@
#: gettingstarted.xml:217
#, no-c-format
msgid ""
-"<literal>ant tomcat.undeploy</literal> - remove the example from the server"
+"<literal>ant tomcat.undeploy</literal> - remove the example (in compressed "
+"jar format) from the server"
msgstr ""
#. Tag: para
#: gettingstarted.xml:222
#, no-c-format
+msgid ""
+"<literal>ant tomcat.unexplode</literal> - remove the example (in exploded "
+"format) from the server"
+msgstr ""
+
+#. Tag: para
+#: gettingstarted.xml:227
+#, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:229
+#: gettingstarted.xml:234
#, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:233
+#: gettingstarted.xml:238
#, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -370,43 +379,43 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:240
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:239
+#: gettingstarted.xml:244
#, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:242
+#: gettingstarted.xml:247
#, no-c-format
msgid "If you use Windows, use the <literal>startup.bat</literal>script."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:255
+#: gettingstarted.xml:260
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:257
+#: gettingstarted.xml:262
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:261
+#: gettingstarted.xml:266
#, no-c-format
msgid "The numberguess example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:263
+#: gettingstarted.xml:268
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -415,7 +424,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:269
+#: gettingstarted.xml:274
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration "
@@ -424,7 +433,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:275
+#: gettingstarted.xml:280
#, no-c-format
msgid ""
"All the configuration files for this example are located in <literal>WEB-INF/"
@@ -434,7 +443,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:283
+#: gettingstarted.xml:288
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -452,7 +461,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:285
+#: gettingstarted.xml:290
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks this "
@@ -460,13 +469,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:290
+#: gettingstarted.xml:295
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr ""
#. Tag: section
-#: gettingstarted.xml:292
+#: gettingstarted.xml:297
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\" coords=\"12\"/> "
@@ -588,7 +597,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:394
+#: gettingstarted.xml:399
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -597,7 +606,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:405
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -608,7 +617,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -616,7 +625,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:407
+#: gettingstarted.xml:412
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -628,7 +637,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:409
+#: gettingstarted.xml:414
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -637,7 +646,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:415
+#: gettingstarted.xml:420
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -666,7 +675,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:417
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -674,7 +683,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:422
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -682,7 +691,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:427
+#: gettingstarted.xml:432
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -693,7 +702,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:435
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -795,13 +804,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:438
+#: gettingstarted.xml:443
#, no-c-format
msgid "The numberguess example in Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:440
+#: gettingstarted.xml:445
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -811,7 +820,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:454
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -819,7 +828,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:456
+#: gettingstarted.xml:461
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -828,7 +837,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:462
+#: gettingstarted.xml:467
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -838,13 +847,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:467
+#: gettingstarted.xml:472
#, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:468
+#: gettingstarted.xml:473
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows "
@@ -854,7 +863,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:477
+#: gettingstarted.xml:482
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink url=\"http://"
@@ -862,7 +871,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:483
+#: gettingstarted.xml:488
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -875,7 +884,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:494
+#: gettingstarted.xml:499
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -883,19 +892,19 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:500
+#: gettingstarted.xml:505
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:502
+#: gettingstarted.xml:507
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:506
+#: gettingstarted.xml:511
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
@@ -903,7 +912,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:508
+#: gettingstarted.xml:513
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General -> Existing "
@@ -915,13 +924,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:524
+#: gettingstarted.xml:529
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:526
+#: gettingstarted.xml:531
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach of "
@@ -935,13 +944,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:541
+#: gettingstarted.xml:546
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:543
+#: gettingstarted.xml:548
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the "
@@ -954,13 +963,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:557
+#: gettingstarted.xml:562
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:559
+#: gettingstarted.xml:564
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -974,7 +983,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:571
+#: gettingstarted.xml:576
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -982,13 +991,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:576
+#: gettingstarted.xml:581
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:581
+#: gettingstarted.xml:586
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal> "
@@ -997,7 +1006,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:587
+#: gettingstarted.xml:592
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1009,7 +1018,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:588
+#: gettingstarted.xml:593
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our "
@@ -1017,7 +1026,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:599
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up page "
@@ -1026,13 +1035,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:600
+#: gettingstarted.xml:605
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by the "
@@ -1040,7 +1049,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:607
+#: gettingstarted.xml:612
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\") { \n"
@@ -1049,7 +1058,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:610
+#: gettingstarted.xml:615
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1058,7 +1067,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:616
+#: gettingstarted.xml:621
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis> use "
@@ -1067,7 +1076,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:631
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides "
@@ -1076,7 +1085,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:634
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1084,7 +1093,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:639
+#: gettingstarted.xml:644
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1110,7 +1119,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:640
+#: gettingstarted.xml:645
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1119,13 +1128,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:653
+#: gettingstarted.xml:658
#, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:655
+#: gettingstarted.xml:660
#, no-c-format
msgid ""
"This example can be found in the <literal>examples/se/numberguess</literal> "
@@ -1133,13 +1142,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:662
+#: gettingstarted.xml:667
#, no-c-format
msgid "To run this example:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:668
+#: gettingstarted.xml:673
#, no-c-format
msgid ""
"Open a command line/terminal window in the <literal>examples/se/numberguess</"
@@ -1147,13 +1156,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:674
+#: gettingstarted.xml:679
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:679
+#: gettingstarted.xml:684
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is "
@@ -1161,19 +1170,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:685
+#: gettingstarted.xml:690
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:688
+#: gettingstarted.xml:693
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:694
+#: gettingstarted.xml:699
#, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package "
@@ -1182,7 +1191,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:700
+#: gettingstarted.xml:705
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>. Here is "
@@ -1191,7 +1200,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:704
+#: gettingstarted.xml:709
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\" coords=\"1\"/> <area id="
@@ -1457,13 +1466,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:912
+#: gettingstarted.xml:917
#, no-c-format
msgid "The translator example"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:914
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -1471,7 +1480,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:919
+#: gettingstarted.xml:924
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1479,7 +1488,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:925
+#: gettingstarted.xml:930
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1487,7 +1496,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:936
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1496,7 +1505,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:937
+#: gettingstarted.xml:942
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1515,7 +1524,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:939
+#: gettingstarted.xml:944
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink url=\"http://"
@@ -1524,7 +1533,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1532,7 +1541,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:950
+#: gettingstarted.xml:955
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -1558,7 +1567,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:953
+#: gettingstarted.xml:958
#, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1567,7 +1576,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:965
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1576,7 +1585,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:966
+#: gettingstarted.xml:971
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -1609,7 +1618,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:968
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -1617,7 +1626,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:978
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
@@ -1627,7 +1636,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:981
+#: gettingstarted.xml:986
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -1639,7 +1648,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:996
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and <literal>TextTranslator</literal> "
@@ -1648,7 +1657,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1002
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -1664,7 +1673,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:999
+#: gettingstarted.xml:1004
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -1673,7 +1682,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1010
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -1682,7 +1691,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:1011
+#: gettingstarted.xml:1016
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -1695,19 +1704,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1018
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1017
+#: gettingstarted.xml:1022
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1026
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -1718,7 +1727,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1023
+#: gettingstarted.xml:1028
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -1726,7 +1735,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1029
+#: gettingstarted.xml:1034
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -1736,7 +1745,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:1035
+#: gettingstarted.xml:1040
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/pot/injection.pot
===================================================================
--- doc/trunk/reference/pot/injection.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/injection.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/interceptors.pot
===================================================================
--- doc/trunk/reference/pot/interceptors.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/interceptors.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/intro.pot
===================================================================
--- doc/trunk/reference/pot/intro.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/intro.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/master.pot
===================================================================
--- doc/trunk/reference/pot/master.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/master.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/next.pot
===================================================================
--- doc/trunk/reference/pot/next.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/next.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/part1.pot
===================================================================
--- doc/trunk/reference/pot/part1.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/part1.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/part2.pot
===================================================================
--- doc/trunk/reference/pot/part2.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/part2.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/part3.pot
===================================================================
--- doc/trunk/reference/pot/part3.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/part3.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/part4.pot
===================================================================
--- doc/trunk/reference/pot/part4.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/part4.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/part5.pot
===================================================================
--- doc/trunk/reference/pot/part5.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/part5.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/producermethods.pot
===================================================================
--- doc/trunk/reference/pot/producermethods.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/producermethods.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/ri-spi.pot
===================================================================
--- doc/trunk/reference/pot/ri-spi.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/ri-spi.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/scopescontexts.pot
===================================================================
--- doc/trunk/reference/pot/scopescontexts.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/scopescontexts.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/specialization.pot
===================================================================
--- doc/trunk/reference/pot/specialization.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/specialization.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/stereotypes.pot
===================================================================
--- doc/trunk/reference/pot/stereotypes.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/stereotypes.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/viewlayers.pot
===================================================================
--- doc/trunk/reference/pot/viewlayers.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/viewlayers.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pot/xml.pot
===================================================================
--- doc/trunk/reference/pot/xml.pot 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pot/xml.pot 2009-06-08 19:41:03 UTC (rev 2792)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)kde.org>\n"
Modified: doc/trunk/reference/pt-BR/gettingstarted.po
===================================================================
--- doc/trunk/reference/pt-BR/gettingstarted.po 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/pt-BR/gettingstarted.po 2009-06-08 19:41:03 UTC (rev 2792)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: Introduction_to_Web_Beans VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: 2009-04-10 16:32-0300\n"
"Last-Translator: João Paulo Viragine <joao.viragine(a)redhat.com>\n"
"Language-Team: none\n"
@@ -279,7 +279,7 @@
"Se você utiliza o Windows, utilize o script <literal>run.bat</literal>."
#. Tag: para
-#: gettingstarted.xml:145 gettingstarted.xml:247
+#: gettingstarted.xml:145 gettingstarted.xml:252
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -409,25 +409,36 @@
#. Tag: para
#: gettingstarted.xml:217
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"<literal>ant tomcat.undeploy</literal> - remove the example from the server"
+"<literal>ant tomcat.undeploy</literal> - remove the example (in compressed "
+"jar format) from the server"
+msgstr ""
+"<literal>ant tomcat.deploy</literal> - publica o exemplo no formato jar "
+"compactado"
+
+#. Tag: para
+#: gettingstarted.xml:222
+#, fuzzy, no-c-format
+msgid ""
+"<literal>ant tomcat.unexplode</literal> - remove the example (in exploded "
+"format) from the server"
msgstr "<literal>ant tomcat.undeploy</literal> - remove o exemplo do servidor"
#. Tag: para
-#: gettingstarted.xml:222
+#: gettingstarted.xml:227
#, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr "<literal>ant tomcat.clean</literal> - clean the example"
#. Tag: para
-#: gettingstarted.xml:229
+#: gettingstarted.xml:234
#, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr "Para implantar o exemplo numberguess no tomcat:"
#. Tag: programlisting
-#: gettingstarted.xml:233
+#: gettingstarted.xml:238
#, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -437,44 +448,44 @@
"ant tomcat.deploy"
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:240
#, no-c-format
msgid "Start Tomcat:"
msgstr "Inicializando o Tomcat:"
#. Tag: programlisting
-#: gettingstarted.xml:239
+#: gettingstarted.xml:244
#, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
#. Tag: para
-#: gettingstarted.xml:242
+#: gettingstarted.xml:247
#, no-c-format
msgid "If you use Windows, use the <literal>startup.bat</literal>script."
msgstr ""
"Se você utiliza o Windows, utilize o script <literal>startup.bat</literal>."
#. Tag: title
-#: gettingstarted.xml:255
+#: gettingstarted.xml:260
#, no-c-format
msgid "Using GlassFish"
msgstr "Utilizando o GlassFish"
#. Tag: para
-#: gettingstarted.xml:257
+#: gettingstarted.xml:262
#, no-c-format
msgid "TODO"
msgstr "TODO"
#. Tag: title
-#: gettingstarted.xml:261
+#: gettingstarted.xml:266
#, no-c-format
msgid "The numberguess example"
msgstr "O exemplo numberguess"
#. Tag: para
-#: gettingstarted.xml:263
+#: gettingstarted.xml:268
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -486,7 +497,7 @@
"acima, ou muito abaixo."
#. Tag: para
-#: gettingstarted.xml:269
+#: gettingstarted.xml:274
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration "
@@ -498,7 +509,7 @@
"com os arquivos de configuração."
#. Tag: para
-#: gettingstarted.xml:275
+#: gettingstarted.xml:280
#, no-c-format
msgid ""
"All the configuration files for this example are located in <literal>WEB-INF/"
@@ -512,7 +523,7 @@
"literal>, onde dizemos para o JSF usar o Facelets:"
#. Tag: programlisting
-#: gettingstarted.xml:283
+#: gettingstarted.xml:288
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -542,7 +553,7 @@
"</faces-config>]]>"
#. Tag: para
-#: gettingstarted.xml:285
+#: gettingstarted.xml:290
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks this "
@@ -552,13 +563,13 @@
"aplicação como uma aplicação Web Beans."
#. Tag: para
-#: gettingstarted.xml:290
+#: gettingstarted.xml:295
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr "Finalmente no <literal>web.xml</literal>:"
#. Tag: section
-#: gettingstarted.xml:292
+#: gettingstarted.xml:297
#, fuzzy, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\" coords=\"12\"/> "
@@ -796,7 +807,7 @@
"programlistingco>"
#. Tag: para
-#: gettingstarted.xml:394
+#: gettingstarted.xml:399
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -808,7 +819,7 @@
"injeção de um número aleatório:"
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:405
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -824,7 +835,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -834,7 +845,7 @@
"injetar o número máximo que pode ser injetado:"
#. Tag: programlisting
-#: gettingstarted.xml:407
+#: gettingstarted.xml:412
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -852,7 +863,7 @@
"]]>"
#. Tag: para
-#: gettingstarted.xml:409
+#: gettingstarted.xml:414
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -864,7 +875,7 @@
"possível através de um método produtor:"
#. Tag: programlisting
-#: gettingstarted.xml:415
+#: gettingstarted.xml:420
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -916,7 +927,7 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:417
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -926,7 +937,7 @@
"aplicação; portanto, não obtemos um número aleatório diferente a cada vez."
#. Tag: para
-#: gettingstarted.xml:422
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -936,7 +947,7 @@
"sessão."
#. Tag: para
-#: gettingstarted.xml:427
+#: gettingstarted.xml:432
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -952,7 +963,7 @@
"isso, informaremos através do <literal>FacesMessage</literal>."
#. Tag: programlisting
-#: gettingstarted.xml:435
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -1150,13 +1161,13 @@
"}]]>"
#. Tag: title
-#: gettingstarted.xml:438
+#: gettingstarted.xml:443
#, fuzzy, no-c-format
msgid "The numberguess example in Tomcat"
msgstr "O exemplo numberguess para o Tomcat"
#. Tag: para
-#: gettingstarted.xml:440
+#: gettingstarted.xml:445
#, fuzzy, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -1171,7 +1182,7 @@
"literal>."
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:454
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -1182,7 +1193,7 @@
"inclui por padrão."
#. Tag: para
-#: gettingstarted.xml:456
+#: gettingstarted.xml:461
#, fuzzy, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -1194,7 +1205,7 @@
"com as requisições) no <literal>web.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:462
+#: gettingstarted.xml:467
#, fuzzy, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -1208,13 +1219,13 @@
"</listener>]]>"
#. Tag: title
-#: gettingstarted.xml:467
+#: gettingstarted.xml:472
#, fuzzy, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr "O exemplo numberguess para o Tomcat"
#. Tag: para
-#: gettingstarted.xml:468
+#: gettingstarted.xml:473
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows "
@@ -1224,7 +1235,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:477
+#: gettingstarted.xml:482
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink url=\"http://"
@@ -1232,7 +1243,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:483
+#: gettingstarted.xml:488
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -1245,7 +1256,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:494
+#: gettingstarted.xml:499
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -1253,19 +1264,19 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:500
+#: gettingstarted.xml:505
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:502
+#: gettingstarted.xml:507
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:506
+#: gettingstarted.xml:511
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
@@ -1273,7 +1284,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:508
+#: gettingstarted.xml:513
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General -> Existing "
@@ -1285,13 +1296,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:524
+#: gettingstarted.xml:529
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:526
+#: gettingstarted.xml:531
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach of "
@@ -1305,13 +1316,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:541
+#: gettingstarted.xml:546
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:543
+#: gettingstarted.xml:548
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the "
@@ -1324,13 +1335,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:557
+#: gettingstarted.xml:562
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:559
+#: gettingstarted.xml:564
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -1344,7 +1355,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:571
+#: gettingstarted.xml:576
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -1352,13 +1363,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:576
+#: gettingstarted.xml:581
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:581
+#: gettingstarted.xml:586
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal> "
@@ -1367,7 +1378,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:587
+#: gettingstarted.xml:592
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1379,7 +1390,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:588
+#: gettingstarted.xml:593
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our "
@@ -1387,7 +1398,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:599
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up page "
@@ -1396,13 +1407,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:600
+#: gettingstarted.xml:605
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by the "
@@ -1410,7 +1421,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:607
+#: gettingstarted.xml:612
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\") { \n"
@@ -1419,7 +1430,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:610
+#: gettingstarted.xml:615
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1428,7 +1439,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:616
+#: gettingstarted.xml:621
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis> use "
@@ -1437,7 +1448,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:631
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides "
@@ -1446,7 +1457,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:634
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1454,7 +1465,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:639
+#: gettingstarted.xml:644
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1480,7 +1491,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:640
+#: gettingstarted.xml:645
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1489,13 +1500,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:653
+#: gettingstarted.xml:658
#, fuzzy, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr "O exemplo numberguess para o Tomcat"
#. Tag: para
-#: gettingstarted.xml:655
+#: gettingstarted.xml:660
#, no-c-format
msgid ""
"This example can be found in the <literal>examples/se/numberguess</literal> "
@@ -1503,13 +1514,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:662
+#: gettingstarted.xml:667
#, fuzzy, no-c-format
msgid "To run this example:"
msgstr "O exemplo translator"
#. Tag: para
-#: gettingstarted.xml:668
+#: gettingstarted.xml:673
#, no-c-format
msgid ""
"Open a command line/terminal window in the <literal>examples/se/numberguess</"
@@ -1517,13 +1528,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:674
+#: gettingstarted.xml:679
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:679
+#: gettingstarted.xml:684
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is "
@@ -1531,19 +1542,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:685
+#: gettingstarted.xml:690
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:688
+#: gettingstarted.xml:693
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:694
+#: gettingstarted.xml:699
#, fuzzy, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package "
@@ -1554,7 +1565,7 @@
"aplicação como uma aplicação Web Beans."
#. Tag: para
-#: gettingstarted.xml:700
+#: gettingstarted.xml:705
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>. Here is "
@@ -1563,7 +1574,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:704
+#: gettingstarted.xml:709
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\" coords=\"1\"/> <area id="
@@ -1829,13 +1840,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:912
+#: gettingstarted.xml:917
#, no-c-format
msgid "The translator example"
msgstr "O exemplo translator"
#. Tag: para
-#: gettingstarted.xml:914
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -1845,7 +1856,7 @@
"para o Latim."
#. Tag: para
-#: gettingstarted.xml:919
+#: gettingstarted.xml:924
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1855,7 +1866,7 @@
"a sua estrutura é mais complexa do que o exemplo numberguess."
#. Tag: para
-#: gettingstarted.xml:925
+#: gettingstarted.xml:930
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1865,7 +1876,7 @@
"esta estrutura muito mais simples!"
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:936
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1877,7 +1888,7 @@
"o<literal>application.xml</literal> para nós:"
#. Tag: programlisting
-#: gettingstarted.xml:937
+#: gettingstarted.xml:942
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1909,7 +1920,7 @@
"</plugin>]]>"
#. Tag: para
-#: gettingstarted.xml:939
+#: gettingstarted.xml:944
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink url=\"http://"
@@ -1921,7 +1932,7 @@
"localhost:8080/webbeans-translator</ulink>). ulink>) ."
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1931,7 +1942,7 @@
"<literal>META-INF/application.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:950
+#: gettingstarted.xml:955
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -1977,7 +1988,7 @@
"</application>]]>"
#. Tag: para
-#: gettingstarted.xml:953
+#: gettingstarted.xml:958
#, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1990,7 +2001,7 @@
"INF</literal>."
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:965
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -2002,7 +2013,7 @@
"aqui por brevitude):"
#. Tag: programlisting
-#: gettingstarted.xml:966
+#: gettingstarted.xml:971
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -2062,7 +2073,7 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:968
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -2072,7 +2083,7 @@
"traduzir para ver o resultado à direita."
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:978
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
@@ -2086,7 +2097,7 @@
"contendo Web Beans."
#. Tag: para
-#: gettingstarted.xml:981
+#: gettingstarted.xml:986
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -2105,7 +2116,7 @@
"destacar as partes mais interessantes aqui."
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:996
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and <literal>TextTranslator</literal> "
@@ -2117,7 +2128,7 @@
"inicialização por construtor :"
#. Tag: programlisting
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1002
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -2160,7 +2171,7 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:999
+#: gettingstarted.xml:1004
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -2172,7 +2183,7 @@
"desenvolver um tradutor completo, mas lhe demos um bom caminho!"
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1010
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -2184,7 +2195,7 @@
"nome, stateful session bean, que injeta o tradutor."
#. Tag: programlisting
-#: gettingstarted.xml:1011
+#: gettingstarted.xml:1016
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -2204,20 +2215,20 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1018
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr "O bean também tem getters e setters para todos os campos da página."
#. Tag: para
-#: gettingstarted.xml:1017
+#: gettingstarted.xml:1022
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
"Como esse é um stateful session bean, temos de ter um método de remoção:"
#. Tag: programlisting
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1026
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -2233,7 +2244,7 @@
" }]]>"
#. Tag: para
-#: gettingstarted.xml:1023
+#: gettingstarted.xml:1028
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -2243,7 +2254,7 @@
"for destruído - neste caso, no final da requisição."
#. Tag: para
-#: gettingstarted.xml:1029
+#: gettingstarted.xml:1034
#, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -2257,7 +2268,7 @@
"seamframework.org/WebBeans/Development</ulink>."
#. Tag: para
-#: gettingstarted.xml:1035
+#: gettingstarted.xml:1040
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
Modified: doc/trunk/reference/zh-TW/gettingstarted.po
===================================================================
--- doc/trunk/reference/zh-TW/gettingstarted.po 2009-06-08 19:40:12 UTC (rev 2791)
+++ doc/trunk/reference/zh-TW/gettingstarted.po 2009-06-08 19:41:03 UTC (rev 2792)
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: ri\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
"PO-Revision-Date: 2009-01-19 18:21+1000\n"
"Last-Translator: Terry Chuang <tchuang(a)redhat.com>\n"
"Language-Team: Traditional Chinese <zh(a)li.org>\n"
@@ -273,7 +273,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:145 gettingstarted.xml:247
+#: gettingstarted.xml:145 gettingstarted.xml:252
#, no-c-format
msgid ""
"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
@@ -396,23 +396,32 @@
#: gettingstarted.xml:217
#, fuzzy, no-c-format
msgid ""
-"<literal>ant tomcat.undeploy</literal> - remove the example from the server"
-msgstr "<literal>ant undeploy</literal> - 將範例由伺服器中移除"
+"<literal>ant tomcat.undeploy</literal> - remove the example (in compressed "
+"jar format) from the server"
+msgstr "<literal>ant deploy</literal> - 以 jar 格式來建置範例"
#. Tag: para
#: gettingstarted.xml:222
#, fuzzy, no-c-format
+msgid ""
+"<literal>ant tomcat.unexplode</literal> - remove the example (in exploded "
+"format) from the server"
+msgstr "<literal>ant undeploy</literal> - 將範例由伺服器中移除"
+
+#. Tag: para
+#: gettingstarted.xml:227
+#, fuzzy, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr "<literal>ant clean</literal> - 清除範例"
#. Tag: para
-#: gettingstarted.xml:229
+#: gettingstarted.xml:234
#, fuzzy, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr "若要建置 numberguess 範例:"
#. Tag: programlisting
-#: gettingstarted.xml:233
+#: gettingstarted.xml:238
#, fuzzy, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -422,43 +431,43 @@
"ant deploy"
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:240
#, no-c-format
msgid "Start Tomcat:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:239
+#: gettingstarted.xml:244
#, fuzzy, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr "jboss.home=/Applications/jboss-5.0.0.GA"
#. Tag: para
-#: gettingstarted.xml:242
+#: gettingstarted.xml:247
#, no-c-format
msgid "If you use Windows, use the <literal>startup.bat</literal>script."
msgstr ""
#. Tag: title
-#: gettingstarted.xml:255
+#: gettingstarted.xml:260
#, no-c-format
msgid "Using GlassFish"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:257
+#: gettingstarted.xml:262
#, no-c-format
msgid "TODO"
msgstr ""
#. Tag: title
-#: gettingstarted.xml:261
+#: gettingstarted.xml:266
#, no-c-format
msgid "The numberguess example"
msgstr "numberguess 範例"
#. Tag: para
-#: gettingstarted.xml:263
+#: gettingstarted.xml:268
#, no-c-format
msgid ""
"In the numberguess application you get given 10 attempts to guess a number "
@@ -469,7 +478,7 @@
"碼。每當猜過一遍,系統便會告知您您所輸入的數字是否太大或太小。"
#. Tag: para
-#: gettingstarted.xml:269
+#: gettingstarted.xml:274
#, no-c-format
msgid ""
"The numberguess example is comprised of a number of Web Beans, configuration "
@@ -480,7 +489,7 @@
"並且封裝為 war。讓我們先從配置檔案開始。"
#. Tag: para
-#: gettingstarted.xml:275
+#: gettingstarted.xml:280
#, no-c-format
msgid ""
"All the configuration files for this example are located in <literal>WEB-INF/"
@@ -493,7 +502,7 @@
"用 Facelet 的 <literal>faces-config.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:283
+#: gettingstarted.xml:288
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -523,7 +532,7 @@
"</faces-config>]]>"
#. Tag: para
-#: gettingstarted.xml:285
+#: gettingstarted.xml:290
#, no-c-format
msgid ""
"There is an empty <literal>web-beans.xml</literal> file, which marks this "
@@ -533,13 +542,13 @@
"Web Bean 應用程式。"
#. Tag: para
-#: gettingstarted.xml:290
+#: gettingstarted.xml:295
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr "最後為 <literal>web.xml</literal>:"
#. Tag: section
-#: gettingstarted.xml:292
+#: gettingstarted.xml:297
#, fuzzy, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\" coords=\"12\"/> "
@@ -777,7 +786,7 @@
"programlistingco>"
#. Tag: para
-#: gettingstarted.xml:394
+#: gettingstarted.xml:399
#, no-c-format
msgid ""
"The example exists of 4 classes, the first two of which are binding types. "
@@ -788,7 +797,7 @@
"<literal>@Random</literal> 綁定類型:"
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:405
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -804,7 +813,7 @@
"public @interface Random {}]]>"
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:407
#, no-c-format
msgid ""
"There is also the <literal>@MaxNumber</literal> binding type, used for "
@@ -813,7 +822,7 @@
"還有個用來注入可注入之最大號碼的 <literal>@MaxNumber</literal> 綁定類型:"
#. Tag: programlisting
-#: gettingstarted.xml:407
+#: gettingstarted.xml:412
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -831,7 +840,7 @@
"]]>"
#. Tag: para
-#: gettingstarted.xml:409
+#: gettingstarted.xml:414
#, no-c-format
msgid ""
"The <literal>Generator</literal> class is responsible for creating the "
@@ -842,7 +851,7 @@
"過一個產生器的方式來顯示最大的可能號碼:"
#. Tag: programlisting
-#: gettingstarted.xml:415
+#: gettingstarted.xml:420
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -894,7 +903,7 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:417
+#: gettingstarted.xml:422
#, no-c-format
msgid ""
"You'll notice that the <literal>Generator</literal> is application scoped; "
@@ -904,7 +913,7 @@
"會每次都一定能得到不同的亂數號碼。"
#. Tag: para
-#: gettingstarted.xml:422
+#: gettingstarted.xml:427
#, no-c-format
msgid ""
"The final Web Bean in the application is the session scoped <literal>Game</"
@@ -912,7 +921,7 @@
msgstr "應用程式中最後的 Web Bean 為 session 導向的 <literal>Game</literal>。"
#. Tag: para
-#: gettingstarted.xml:427
+#: gettingstarted.xml:432
#, no-c-format
msgid ""
"You'll note that we've used the <literal>@Named</literal> annotation, so "
@@ -927,7 +936,7 @@
"<literal>FacesMessage</literal> 來給予回應。"
#. Tag: programlisting
-#: gettingstarted.xml:435
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -1125,13 +1134,13 @@
"}]]>"
#. Tag: title
-#: gettingstarted.xml:438
+#: gettingstarted.xml:443
#, fuzzy, no-c-format
msgid "The numberguess example in Tomcat"
msgstr "numberguess 範例"
#. Tag: para
-#: gettingstarted.xml:440
+#: gettingstarted.xml:445
#, no-c-format
msgid ""
"The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans "
@@ -1141,7 +1150,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:454
#, no-c-format
msgid ""
"Of course, you must also include JSF and EL, as well common annotations "
@@ -1149,7 +1158,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:456
+#: gettingstarted.xml:461
#, no-c-format
msgid ""
"Secondly, we need to explicitly specify the servlet listener (used to boot "
@@ -1158,7 +1167,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:462
+#: gettingstarted.xml:467
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -1168,13 +1177,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:467
+#: gettingstarted.xml:472
#, fuzzy, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr "numberguess 範例"
#. Tag: para
-#: gettingstarted.xml:468
+#: gettingstarted.xml:473
#, no-c-format
msgid ""
"Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows "
@@ -1184,7 +1193,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:477
+#: gettingstarted.xml:482
#, no-c-format
msgid ""
"You may want to review the Wicket documentation at <ulink url=\"http://"
@@ -1192,7 +1201,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:483
+#: gettingstarted.xml:488
#, no-c-format
msgid ""
"Like the previous example, the Wicket WebBeans examples make use of the "
@@ -1205,7 +1214,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:494
+#: gettingstarted.xml:499
#, no-c-format
msgid ""
"These examples make use of the Eclipse IDE; instructions are also given to "
@@ -1213,19 +1222,19 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:500
+#: gettingstarted.xml:505
#, no-c-format
msgid "Creating the Eclipse project"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:502
+#: gettingstarted.xml:507
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:506
+#: gettingstarted.xml:511
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
@@ -1233,7 +1242,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:508
+#: gettingstarted.xml:513
#, no-c-format
msgid ""
"Then, from eclipse, choose <emphasis>File -> Import -> General -> Existing "
@@ -1245,13 +1254,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:524
+#: gettingstarted.xml:529
#, no-c-format
msgid "Running the example from Eclipse"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:526
+#: gettingstarted.xml:531
#, no-c-format
msgid ""
"This project follows the <literal>wicket-quickstart</literal> approach of "
@@ -1265,13 +1274,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:541
+#: gettingstarted.xml:546
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:543
+#: gettingstarted.xml:548
#, no-c-format
msgid ""
"This example can also be deployed from the command line in a (similar to the "
@@ -1284,13 +1293,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:557
+#: gettingstarted.xml:562
#, no-c-format
msgid "Understanding the code"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:559
+#: gettingstarted.xml:564
#, no-c-format
msgid ""
"JSF uses Unified EL expressions to bind view layer components in JSP or "
@@ -1304,7 +1313,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:571
+#: gettingstarted.xml:576
#, no-c-format
msgid ""
"The code in the wicket numberguess example is very similar to the JSF-based "
@@ -1312,13 +1321,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:576
+#: gettingstarted.xml:581
#, no-c-format
msgid "Differences are:"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:581
+#: gettingstarted.xml:586
#, no-c-format
msgid ""
"Each wicket application must have a <literal>WebApplication</literal> "
@@ -1327,7 +1336,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:587
+#: gettingstarted.xml:592
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1339,7 +1348,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:588
+#: gettingstarted.xml:593
#, no-c-format
msgid ""
"This class specifies which page wicket should treat as our home page, in our "
@@ -1347,7 +1356,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:599
#, no-c-format
msgid ""
"In <literal>HomePage</literal> we see typical wicket code to set up page "
@@ -1356,13 +1365,13 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:600
+#: gettingstarted.xml:605
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:607
#, no-c-format
msgid ""
"The <literal>Game</literal> bean is can then be used, for example, by the "
@@ -1370,7 +1379,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:607
+#: gettingstarted.xml:612
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\") { \n"
@@ -1379,7 +1388,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:610
+#: gettingstarted.xml:615
#, no-c-format
msgid ""
"All injections may be serialized; actual storage of the bean is managed by "
@@ -1388,7 +1397,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:616
+#: gettingstarted.xml:621
#, no-c-format
msgid ""
"Wicket components allow injection, but they <emphasis>cannot</emphasis> use "
@@ -1397,7 +1406,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:631
#, no-c-format
msgid ""
"The example uses AJAX for processing of button events, and dynamically hides "
@@ -1406,7 +1415,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:634
+#: gettingstarted.xml:639
#, no-c-format
msgid ""
"In order to activate wicket for this webapp, the Wicket filter is added to "
@@ -1414,7 +1423,7 @@
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:639
+#: gettingstarted.xml:644
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1440,7 +1449,7 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:640
+#: gettingstarted.xml:645
#, no-c-format
msgid ""
"Note that the servlet listener is also added, as in the Tomcat example, in "
@@ -1449,13 +1458,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:653
+#: gettingstarted.xml:658
#, fuzzy, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr "numberguess 範例"
#. Tag: para
-#: gettingstarted.xml:655
+#: gettingstarted.xml:660
#, no-c-format
msgid ""
"This example can be found in the <literal>examples/se/numberguess</literal> "
@@ -1463,13 +1472,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:662
+#: gettingstarted.xml:667
#, fuzzy, no-c-format
msgid "To run this example:"
msgstr "轉譯器範例"
#. Tag: para
-#: gettingstarted.xml:668
+#: gettingstarted.xml:673
#, no-c-format
msgid ""
"Open a command line/terminal window in the <literal>examples/se/numberguess</"
@@ -1477,13 +1486,13 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:674
+#: gettingstarted.xml:679
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:679
+#: gettingstarted.xml:684
#, no-c-format
msgid ""
"Ensure that the <literal>JAVA_HOME</literal> environment variable is "
@@ -1491,19 +1500,19 @@
msgstr ""
#. Tag: para
-#: gettingstarted.xml:685
+#: gettingstarted.xml:690
#, no-c-format
msgid "execute the following command"
msgstr ""
#. Tag: programlisting
-#: gettingstarted.xml:688
+#: gettingstarted.xml:693
#, no-c-format
msgid "mvn -Drun"
msgstr ""
#. Tag: para
-#: gettingstarted.xml:694
+#: gettingstarted.xml:699
#, fuzzy, no-c-format
msgid ""
"There is an empty <literal>beans.xml</literal> file in the root package "
@@ -1514,7 +1523,7 @@
"Web Bean 應用程式。"
#. Tag: para
-#: gettingstarted.xml:700
+#: gettingstarted.xml:705
#, no-c-format
msgid ""
"The game's main logic is located in <literal>Game.java</literal>. Here is "
@@ -1523,7 +1532,7 @@
msgstr ""
#. Tag: section
-#: gettingstarted.xml:704
+#: gettingstarted.xml:709
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\" coords=\"1\"/> <area id="
@@ -1789,13 +1798,13 @@
msgstr ""
#. Tag: title
-#: gettingstarted.xml:912
+#: gettingstarted.xml:917
#, no-c-format
msgid "The translator example"
msgstr "轉譯器範例"
#. Tag: para
-#: gettingstarted.xml:914
+#: gettingstarted.xml:919
#, no-c-format
msgid ""
"The translator example will take any sentences you enter, and translate them "
@@ -1803,7 +1812,7 @@
msgstr "轉譯器範例能接受您所輸入的任何句子,然後將它們翻譯成拉丁文。"
#. Tag: para
-#: gettingstarted.xml:919
+#: gettingstarted.xml:924
#, no-c-format
msgid ""
"The translator example is built as an ear, and contains EJBs. As a result, "
@@ -1813,7 +1822,7 @@
"例要複雜得多。"
#. Tag: para
-#: gettingstarted.xml:925
+#: gettingstarted.xml:930
#, no-c-format
msgid ""
"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
@@ -1822,7 +1831,7 @@
"EJB 3.1 和 Jave EE 6 能讓您將 EJB 封裝為 war,並使得該結構變得更為簡樸!"
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:936
#, no-c-format
msgid ""
"First, let's take a look at the ear aggregator, which is located in "
@@ -1834,7 +1843,7 @@
"literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:937
+#: gettingstarted.xml:942
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1866,7 +1875,7 @@
"</plugin>]]>"
#. Tag: para
-#: gettingstarted.xml:939
+#: gettingstarted.xml:944
#, no-c-format
msgid ""
"Here we set the context path, which gives us a nice url (<ulink url=\"http://"
@@ -1878,7 +1887,7 @@
"translator</ulink>)。"
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:950
#, no-c-format
msgid ""
"If you aren't using Maven to generate these files, you would need "
@@ -1888,7 +1897,7 @@
"xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:950
+#: gettingstarted.xml:955
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -1934,7 +1943,7 @@
"</application>]]>"
#. Tag: para
-#: gettingstarted.xml:953
+#: gettingstarted.xml:958
#, fuzzy, no-c-format
msgid ""
"Next, lets look at the war. Just as in the numberguess example, we have a "
@@ -1947,7 +1956,7 @@
"JSF)。"
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:965
#, no-c-format
msgid ""
"More intersting is the facelet used to translate text. Just as in the "
@@ -1958,7 +1967,7 @@
"個圍繞著 form 的頁面格式(在此將省略不提):"
#. Tag: programlisting
-#: gettingstarted.xml:966
+#: gettingstarted.xml:971
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -2018,7 +2027,7 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:968
+#: gettingstarted.xml:973
#, no-c-format
msgid ""
"The user can enter some text in the lefthand textarea, and hit the translate "
@@ -2028,7 +2037,7 @@
"看結果。"
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:978
#, no-c-format
msgid ""
"Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</"
@@ -2041,7 +2050,7 @@
"為包含著 Web Bean 的空 <literal>web-beans.xml</literal>。"
#. Tag: para
-#: gettingstarted.xml:981
+#: gettingstarted.xml:986
#, no-c-format
msgid ""
"We've saved the most interesting bit to last, the code! The project has two "
@@ -2058,7 +2067,7 @@
"如何了,因此我們在此將只著重於其它較有趣的部份。"
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:996
#, no-c-format
msgid ""
"Both <literal>SentenceParser</literal> and <literal>TextTranslator</literal> "
@@ -2070,7 +2079,7 @@
"始化:"
#. Tag: programlisting
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1002
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -2096,7 +2105,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: gettingstarted.xml:999
+#: gettingstarted.xml:1004
#, no-c-format
msgid ""
"<literal>TextTranslator</literal> is a stateless bean (with a local business "
@@ -2107,7 +2116,7 @@
"面)- 當然,我們無法開發一個完整的轉譯器。"
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1010
#, no-c-format
msgid ""
"Finally, there is UI orientated controller, that collects the text from the "
@@ -2118,7 +2127,7 @@
"請求導向、被命名,而有狀態的 session bean,並且會注入轉譯器。"
#. Tag: programlisting
-#: gettingstarted.xml:1011
+#: gettingstarted.xml:1016
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -2138,13 +2147,13 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1018
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr "這個 bean 針對於頁面上所有欄位都有 getter 與 setter。"
#. Tag: para
-#: gettingstarted.xml:1017
+#: gettingstarted.xml:1022
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr ""
@@ -2152,7 +2161,7 @@
"method:"
#. Tag: programlisting
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1026
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -2168,7 +2177,7 @@
" }]]>"
#. Tag: para
-#: gettingstarted.xml:1023
+#: gettingstarted.xml:1028
#, no-c-format
msgid ""
"The Web Beans manager will call the remove method for you when the bean is "
@@ -2178,7 +2187,7 @@
"請求結束之後。"
#. Tag: para
-#: gettingstarted.xml:1029
+#: gettingstarted.xml:1034
#, fuzzy, no-c-format
msgid ""
"That concludes our short tour of the Web Beans examples. For more on Web "
@@ -2191,7 +2200,7 @@
"Development\">http://www.seamframework.org/WebBeans/Development</ulink>。"
#. Tag: para
-#: gettingstarted.xml:1035
+#: gettingstarted.xml:1040
#, no-c-format
msgid ""
"We need help in all areas - bug fixing, writing new features, writing "
15 years, 7 months
[webbeans-commits] Webbeans SVN: r2791 - doc/trunk/reference/it-IT.
by webbeans-commits@lists.jboss.org
Author: nico.ben
Date: 2009-06-08 15:40:12 -0400 (Mon, 08 Jun 2009)
New Revision: 2791
Modified:
doc/trunk/reference/it-IT/gettingstarted.po
Log:
Italian translation
Modified: doc/trunk/reference/it-IT/gettingstarted.po
===================================================================
--- doc/trunk/reference/it-IT/gettingstarted.po 2009-06-08 19:36:29 UTC (rev 2790)
+++ doc/trunk/reference/it-IT/gettingstarted.po 2009-06-08 19:40:12 UTC (rev 2791)
@@ -5,8 +5,8 @@
msgstr ""
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-05-05 20:42+0000\n"
-"PO-Revision-Date: 2009-06-08 21:11+0100\n"
+"POT-Creation-Date: 2009-06-08 19:37+0000\n"
+"PO-Revision-Date: 2009-06-08 21:39+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -223,7 +223,7 @@
#. Tag: para
#: gettingstarted.xml:145
-#: gettingstarted.xml:247
+#: gettingstarted.xml:252
#, no-c-format
msgid "Wait for the application to deploy, and enjoy hours of fun at <ulink url=\"http://localhost:8080/webbeans-numberguess\"></ulink>!"
msgstr "Attendete che l'applicazione sia installata, e godetevi ore di divertimento all'indirizzo <ulink url=\"http://localhost:8080/webbeans-numberguess\"></ulink>!"
@@ -311,23 +311,29 @@
#. Tag: para
#: gettingstarted.xml:217
#, no-c-format
-msgid "<literal>ant tomcat.undeploy</literal> - remove the example from the server"
-msgstr "<literal>ant tomcat.undeploy</literal> - rimuove l'esempio dal server"
+msgid "<literal>ant tomcat.undeploy</literal> - remove the example (in compressed jar format) from the server"
+msgstr "<literal>ant tomcat.undeploy</literal> - rimuove l'esempio dal server (nel formato jar compresso)"
#. Tag: para
#: gettingstarted.xml:222
#, no-c-format
+msgid "<literal>ant tomcat.unexplode</literal> - remove the example (in exploded format) from the server"
+msgstr "<literal>ant tomcat.unexplode</literal> - rimuove l'esempio dal server (in formato esploso)"
+
+#. Tag: para
+#: gettingstarted.xml:227
+#, no-c-format
msgid "<literal>ant tomcat.clean</literal> - clean the example"
msgstr "<literal>ant tomcat.clean</literal> - ripulisce l'esempio"
#. Tag: para
-#: gettingstarted.xml:229
+#: gettingstarted.xml:234
#, no-c-format
msgid "To deploy the numberguess example for tomcat:"
msgstr "Per eseguire il deploy dell'esempio Indovina Numero per tomcat:"
#. Tag: programlisting
-#: gettingstarted.xml:233
+#: gettingstarted.xml:238
#, no-c-format
msgid ""
"$ cd examples/tomcat\n"
@@ -337,61 +343,61 @@
"ant tomcat.deploy"
#. Tag: para
-#: gettingstarted.xml:235
+#: gettingstarted.xml:240
#, no-c-format
msgid "Start Tomcat:"
msgstr "Avviare Tomcat:"
#. Tag: programlisting
-#: gettingstarted.xml:239
+#: gettingstarted.xml:244
#, no-c-format
msgid "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
msgstr "$ /Applications/apache-tomcat-6.0.18/bin/startup.sh"
#. Tag: para
-#: gettingstarted.xml:242
+#: gettingstarted.xml:247
#, no-c-format
msgid "If you use Windows, use the <literal>startup.bat</literal>script."
msgstr "Se si usa Windows, si usi lo script <literal>startup.bat</literal>."
#. Tag: title
-#: gettingstarted.xml:255
+#: gettingstarted.xml:260
#, no-c-format
msgid "Using GlassFish"
msgstr "Usare GlassFish"
#. Tag: para
-#: gettingstarted.xml:257
+#: gettingstarted.xml:262
#, no-c-format
msgid "TODO"
msgstr "DA FARE"
#. Tag: title
-#: gettingstarted.xml:261
+#: gettingstarted.xml:266
#, no-c-format
msgid "The numberguess example"
msgstr "Esempio Indovina Numero"
#. Tag: para
-#: gettingstarted.xml:263
+#: gettingstarted.xml:268
#, no-c-format
msgid "In the numberguess application you get given 10 attempts to guess a number between 1 and 100. After each attempt, you will be told whether you are too high, or too low."
msgstr "Nell'applicazione Indovina Numero avete a disposizione 10 tentativi per indovinare un numero tra 1 e 100. Dopo ciascun tentativo, siete informati se siete stati troppo alti o troppo bassi."
#. Tag: para
-#: gettingstarted.xml:269
+#: gettingstarted.xml:274
#, no-c-format
msgid "The numberguess example is comprised of a number of Web Beans, configuration files, and Facelet JSF pages, packaged as a war. Let's start with the configuration files."
msgstr "L'esempio Indovina Numero comprende un certo numero di Web Bean, file di configurazione e pagine JSF, assemblati in un war. Iniziamo dai file di configurazione."
#. Tag: para
-#: gettingstarted.xml:275
+#: gettingstarted.xml:280
#, no-c-format
msgid "All the configuration files for this example are located in <literal>WEB-INF/</literal>, which is stored in <literal>WebContent</literal> in the source tree. First, we have <literal>faces-config.xml</literal>, in which we tell JSF to use Facelets:"
msgstr "Tutti i file di configurazione di questo esempio si trovano in <literal>WEB-INF/</literal>, che è situato in <literal>WebContent</literal> nell'albero dei sorgenti. Innanzitutto, c'è <literal>faces-config.xml</literal>, in cui JSF viene informata di usare Facelets:"
#. Tag: programlisting
-#: gettingstarted.xml:283
+#: gettingstarted.xml:288
#, no-c-format
msgid ""
"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
@@ -419,19 +425,19 @@
"</faces-config>]]>"
#. Tag: para
-#: gettingstarted.xml:285
+#: gettingstarted.xml:290
#, no-c-format
msgid "There is an empty <literal>web-beans.xml</literal> file, which marks this application as a Web Beans application."
msgstr "Vi è un file vuoto <literal>web-beans.xml</literal>, che identifica l'applicazione come applicazione Web Beans."
#. Tag: para
-#: gettingstarted.xml:290
+#: gettingstarted.xml:295
#, no-c-format
msgid "Finally there is <literal>web.xml</literal>:"
msgstr "Infine c'è <literal>web.xml</literal>:"
#. Tag: section
-#: gettingstarted.xml:292
+#: gettingstarted.xml:297
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"faces.servlet\" coords=\"12\"/> <area id=\"faces.servlet.mapping\" coords=\"18\"/> <area id=\"faces.default.suffix\" coords=\"23\"/> <area id=\"session.timeout\" coords=\"28\"/> <area id=\"webbeans.listener\" coords=\"32\"/> </areaspec> <programlisting><![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -587,13 +593,13 @@
"</html>]]></programlisting> <calloutlist> <callout arearefs=\"template\"> <para> Facelets is a templating language for JSF, here we are wrapping our page in a template which defines the header. </para> </callout> <callout arearefs=\"messages2\"> <para> There are a number of messages which can be sent to the user, \"Higher!\", \"Lower!\" and \"Correct!\" </para> </callout> <callout arearefs=\"instructions\"> <para> As the user guesses, the range of numbers they can guess gets smaller - this sentance changes to make sure they know what range to guess in. </para> </callout> <callout arearefs=\"guess\"> <para> This input field is bound to a Web Bean, using the value expression. </para> </callout> <callout arearefs=\"validator\"> <para> A range validator is used to make sure the user doesn't accidentally input a number outside of the range in which they can guess - if the validator wasn't here, the user might use up a guess on an out of range number. </para> </callout> <callout!
arearefs=\"submit\"> <para> And, of course, there must be a way for the user to send their guess to the server. Here we bind to an action method on the Web Bean. </para> </callout> </calloutlist> </programlistingco>"
#. Tag: para
-#: gettingstarted.xml:394
+#: gettingstarted.xml:399
#, no-c-format
msgid "The example exists of 4 classes, the first two of which are binding types. First, there is the <literal>@Random</literal> binding type, used for injecting a random number:"
msgstr "L'esempio consiste di 4 classi, delle quali le prime due sono tipi di binding. Innanzitutto, c'è il tipo di binding <literal>@Random</literal>, usato per iniettare un numero casuale:"
#. Tag: programlisting
-#: gettingstarted.xml:400
+#: gettingstarted.xml:405
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -609,13 +615,13 @@
"public @interface Random {}]]>"
#. Tag: para
-#: gettingstarted.xml:402
+#: gettingstarted.xml:407
#, no-c-format
msgid "There is also the <literal>@MaxNumber</literal> binding type, used for injecting the maximum number that can be injected:"
msgstr "C'è anche il tipo di binding <literal>@MaxNumber</literal>, usato per iniettare il numero massimo iniettatabile:"
#. Tag: programlisting
-#: gettingstarted.xml:407
+#: gettingstarted.xml:412
#, no-c-format
msgid ""
"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
@@ -633,13 +639,13 @@
"]]>"
#. Tag: para
-#: gettingstarted.xml:409
+#: gettingstarted.xml:414
#, no-c-format
msgid "The <literal>Generator</literal> class is responsible for creating the random number, via a producer method. It also exposes the maximum possible number via a producer method:"
msgstr "Alla classe <literal>Generator</literal> è affidata la generazione del numero casuale, per mezzo di un metodo produttore. Inoltre essa espone il massimo numero possibile attraverso un metodo produttore:"
#. Tag: programlisting
-#: gettingstarted.xml:415
+#: gettingstarted.xml:420
#, no-c-format
msgid ""
"<![CDATA[@ApplicationScoped\n"
@@ -689,25 +695,25 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:417
+#: gettingstarted.xml:422
#, no-c-format
msgid "You'll notice that the <literal>Generator</literal> is application scoped; therefore we don't get a different random each time."
msgstr "E' possibile notare che <literal>Generator</literal> ha scope applicazione; quindi non si ottiene un diverso numero casuale ogni volta."
#. Tag: para
-#: gettingstarted.xml:422
+#: gettingstarted.xml:427
#, no-c-format
msgid "The final Web Bean in the application is the session scoped <literal>Game</literal>."
msgstr "Il Web Bean finale nell'applicazione è <literal>Game</literal> avente scope di sessione."
#. Tag: para
-#: gettingstarted.xml:427
+#: gettingstarted.xml:432
#, no-c-format
msgid "You'll note that we've used the <literal>@Named</literal> annotation, so that we can use the bean through EL in the JSF page. Finally, we've used constructor injection to initialize the game with a random number. And of course, we need to tell the player when they've won, so we give feedback with a <literal>FacesMessage</literal>."
msgstr "Si noti anche che è stata usata l'annotazione <literal>@Named</literal>, in modo che sia possibile usare il bean in espressioni EL presenti nelle pagine JSF. Infine, si è utilizzata l'iniezione del costruttore per inizializzare il gioco con un numero casuale. E naturalmente, è necessario dire al giocatore se ha vinto, informazione di feedback che viene fornita con un <literal>FacesMessage</literal>."
#. Tag: programlisting
-#: gettingstarted.xml:435
+#: gettingstarted.xml:440
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.webbeans.examples.numberguess;\n"
@@ -901,31 +907,31 @@
"}]]>"
#. Tag: title
-#: gettingstarted.xml:438
+#: gettingstarted.xml:443
#, no-c-format
msgid "The numberguess example in Tomcat"
msgstr "Esempio Indovina Numero in Tomcat"
#. Tag: para
-#: gettingstarted.xml:440
+#: gettingstarted.xml:445
#, no-c-format
msgid "The numberguess for Tomcat differs in a couple of ways. Firstly, Web Beans should be deployed as a Web Application library in <literal>WEB-INF/lib</literal>. For your convenience we provide a single jar suitable for running Web Beans in any servlet container <literal>webbeans-servlet.jar</literal>."
msgstr "L'Indovina Numero per Tomcat differisce in un paio di punti. Innanzitutto Web Beans dovrebbe essere deployato come libreria Web Application in <literal>WEB-INF/lib</literal>. Per comodità viene fornito un singolo jar <literal>webbeans-servlet.jar</literal> per eseguire Web Beans in un qualsiasi servlet container."
#. Tag: para
-#: gettingstarted.xml:449
+#: gettingstarted.xml:454
#, no-c-format
msgid "Of course, you must also include JSF and EL, as well common annotations (<literal>jsr250-api.jar</literal>) which a JEE server includes by default."
msgstr "Certamente occorre anche includere JSF e EL, e le annotazioni comuni (<literal>jsr250-api.jar</literal>) che un server JEE include di default."
#. Tag: para
-#: gettingstarted.xml:456
+#: gettingstarted.xml:461
#, no-c-format
msgid "Secondly, we need to explicitly specify the servlet listener (used to boot Web Beans, and control it's interaction with requests) in <literal>web.xml</literal>:"
msgstr "In secondo luogo, occorre specificare esplicitamente il servlet listener di Tomcat (usato per avviare Web Beans, e controllare la sua interazione con le richieste) in <literal>web.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:462
+#: gettingstarted.xml:467
#, no-c-format
msgid ""
"<![CDATA[<listener>\n"
@@ -937,49 +943,49 @@
"</listener>]]>"
#. Tag: title
-#: gettingstarted.xml:467
+#: gettingstarted.xml:472
#, no-c-format
msgid "The numberguess example for Apache Wicket"
msgstr "Esempio Indovina Numero per Apache Wicket"
#. Tag: para
-#: gettingstarted.xml:468
+#: gettingstarted.xml:473
#, no-c-format
msgid "Whilst JSR-299 specifies integration with Java ServerFaces, Web Beans allows you to inject into Wicket components, and also allows you to use a conversation context with Wicket. In this section, we'll walk you through the Wicket version of the numberguess example."
msgstr "Mentre JSR-299 specifica l'integrazione con Java ServerFaces, Web Beans consente di iniettare nei componenti Wicket e di usare un contesto conversazione con Wicket. In questa sezione si analizzerà la versione dell'esempio Indovina Numero per Wicket."
#. Tag: para
-#: gettingstarted.xml:477
+#: gettingstarted.xml:482
#, no-c-format
msgid "You may want to review the Wicket documentation at <ulink url=\"http://wicket.apache.org/\">http://wicket.apache.org/</ulink>."
msgstr "Per vedere la documentazione Wicket si vada a <ulink url=\"http://wicket.apache.org/\">http://wicket.apache.org/</ulink>."
#. Tag: para
-#: gettingstarted.xml:483
+#: gettingstarted.xml:488
#, no-c-format
msgid "Like the previous example, the Wicket WebBeans examples make use of the <literal>webbeans-servlet</literal> module. The use of the <ulink url=\"http://jetty.mortbay.org/\">Jetty servlet container</ulink> is common in the Wicket community, and is chosen here as the runtime container in order to facilitate comparison between the standard Wicket examples and these examples, and also to show how the webbeans-servlet integration is not dependent upon Tomcat as the servlet container."
msgstr "Come nel precedente esempio, gli esempi WebBeans Wicket usano il modulo <literal>webbeans-servlet</literal>. L'uso del <ulink url=\"http://jetty.mortbay.org/\">Jetty servlet container</ulink> è comune nella comunità Wicket, e qua viene scelto come container runtime per facilitare il paragone tra gli esempi Wicket standard e questi esempi, ed anche per mostrare come l'integrazione webbeans-servlet non è dipenendete da Tomcat come servlet container."
#. Tag: para
-#: gettingstarted.xml:494
+#: gettingstarted.xml:499
#, no-c-format
msgid "These examples make use of the Eclipse IDE; instructions are also given to deploy the application from the command line."
msgstr "Questi esempi usano Eclipse IDE; vengono date anche le istruzioni per il deploy dell'applicazione da linea di comando."
#. Tag: title
-#: gettingstarted.xml:500
+#: gettingstarted.xml:505
#, no-c-format
msgid "Creating the Eclipse project"
msgstr "Creazione di un progetto Eclipse"
#. Tag: para
-#: gettingstarted.xml:502
+#: gettingstarted.xml:507
#, no-c-format
msgid "To generate an Eclipse project from the example:"
msgstr "Per generare un progetto Eclipse dall'esempio:"
#. Tag: programlisting
-#: gettingstarted.xml:506
+#: gettingstarted.xml:511
#, no-c-format
msgid ""
"<![CDATA[cd examples/wicket/numberguess\n"
@@ -989,67 +995,67 @@
"mvn -Pjetty eclipse:eclipse]]>"
#. Tag: para
-#: gettingstarted.xml:508
+#: gettingstarted.xml:513
#, no-c-format
msgid "Then, from eclipse, choose <emphasis>File -> Import -> General -> Existing Projects into Workspace</emphasis>, select the root directory of the numberguess example, and click finish. Note that if you do not intend to run the example with jetty from within eclipse, omit the \"-Pjetty.\" This will create a project in your workspace called <literal>webbeans-wicket-numberguess</literal>"
msgstr "Poi scegliere da Eclipse <emphasis>File -> Import -> General -> Existing Projects into Workspace</emphasis>, selezionare la cartella radice dell'esempio Indovina Numero e cliccare su Finish. Notare che se non si intende eseguire l'esempio con Jetty da dentro Eclipse, si ometta \"-Pjetty.\". Questo creerà un progetto nel workspace chiamato <literal>webbeans-wicket-numberguess</literal>."
#. Tag: title
-#: gettingstarted.xml:524
+#: gettingstarted.xml:529
#, no-c-format
msgid "Running the example from Eclipse"
msgstr "Esecuzione dell'esempio da Eclipse"
#. Tag: para
-#: gettingstarted.xml:526
+#: gettingstarted.xml:531
#, no-c-format
msgid "This project follows the <literal>wicket-quickstart</literal> approach of creating an instance of Jetty in the <literal>Start</literal> class. So running the example is as simple as right-clicking on that Start class in <literal>src/test/java</literal> in the <emphasis>Package Explorer</emphasis> and choosing <emphasis>Run as Java Application</emphasis>. You should see console output related to Jetty starting up; then visit able <literal>http://localhost:8080</literal> to view the app. To debug choose <emphasis>Debug as Java Application</emphasis>."
msgstr "Questo progetto segue l'approccio di <literal>wicket-quickstart</literal> nella creazione di un'istanza di Jetty nella classe <literal>Start</literal>. Quindi l'esecuzione dell'esempio è tanto semplice come cliccare col tasto destro sulla classe Start in <literal>src/test/java</literal> in <emphasis>Package Explorer</emphasis> e scegliere <emphasis>Run as Java Application</emphasis>. Si dovrebbe vedere l'output di console di Jetty avviato; poi visitare <literal>http://localhost:8080</literal>. Per il debug scegliere <emphasis>Debug as Java Application</emphasis>."
#. Tag: title
-#: gettingstarted.xml:541
+#: gettingstarted.xml:546
#, no-c-format
msgid "Running the example from the command line in JBoss AS or Tomcat"
msgstr "Eseguire l'esempio da linea di comando in JBoss AS o Tomcat"
#. Tag: para
-#: gettingstarted.xml:543
+#: gettingstarted.xml:548
#, no-c-format
msgid "This example can also be deployed from the command line in a (similar to the other examples). Assuming you have set up the <literal>build.properties</literal> file in the <literal>examples</literal> directory to specify the location of JBoss AS or Tomcat, as previously described, you can run <literal>ant deploy</literal> from the <literal>examples/wicket/numberguess</literal> directory, and access the application at <literal>http://localhost:8080/webbeans-numberguess-wicket</literal>."
msgstr "Quest'esempio può anche essere deployato da linea di comando (come gli altri esempi). Assumendo che sia stato configurato il file <literal>build.properties</literal> nella derectory <literal>examples</literal>, per specificare la locazione di JBoss AS o Tomcat, come descritto prima, si può eseguire <literal>ant deploy</literal> dalla directory <literal>examples/wicket/numberguess</literal> ed accedere all'applicazione tramite indirizzo <literal>http://localhost:8080/webbeans-numberguess-wicket</literal>."
#. Tag: title
-#: gettingstarted.xml:557
+#: gettingstarted.xml:562
#, no-c-format
msgid "Understanding the code"
msgstr "Comprendere il codice"
#. Tag: para
-#: gettingstarted.xml:559
+#: gettingstarted.xml:564
#, no-c-format
msgid "JSF uses Unified EL expressions to bind view layer components in JSP or Facelet views to beans, Wicket defines it's components in Java. The markup is plain html with a one-to-one mapping between html elements and the view components. All view logic, including binding of components to models and controlling the response of view actions, is handled in Java. The integration of Web Beans with Wicket takes advantage of the same binding annotations used in your business layer to provide injection into your WebPage subclass (or into other custom wicket component subclasses)."
msgstr "JSF usa le espressioni Unified EL per associare i componenti del layer vista nelle viste JSP o Facelets ai bean, Wicket definisce i propri componenti in Java. Il markup è puro html con una mappatura one-to-one tra gli elementi html ed i componenti vista. Tutta la logica di vista viene gestita in Java, incluso il binding dei componenti ai modelli ed il controllo della risposta delle azioni di vista. L'integrazione di Web Beans con Wicket sfrutta le stesse annotazioni di binding usata nel layer business per fornire l'iniezione alla sottoclasse WebPage (o in altre sottoclassi personalizzate componenti di Wicket)."
#. Tag: para
-#: gettingstarted.xml:571
+#: gettingstarted.xml:576
#, no-c-format
msgid "The code in the wicket numberguess example is very similar to the JSF-based numberguess example. The business layer is identical!"
msgstr "Il codice nell'esempio Indovina Numero in Wicket è molto simile all'esempio Indovina Numero basato su JSF. Il layer business è identico!"
#. Tag: para
-#: gettingstarted.xml:576
+#: gettingstarted.xml:581
#, no-c-format
msgid "Differences are:"
msgstr "Le differenze sono:"
#. Tag: para
-#: gettingstarted.xml:581
+#: gettingstarted.xml:586
#, no-c-format
msgid "Each wicket application must have a <literal>WebApplication</literal> subclass, In our case, our application class is <literal>SampleApplication</literal>:"
msgstr "Ciascuna applicazione wicket deve avere una sottoclasse <literal>WebApplication</literal>. Nel nostro caso la classe applicazione è <literal>SampleApplication</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:587
+#: gettingstarted.xml:592
#, no-c-format
msgid ""
"<![CDATA[public class SampleApplication extends WebBeansApplication {\n"
@@ -1067,31 +1073,31 @@
"}]]>"
#. Tag: para
-#: gettingstarted.xml:588
+#: gettingstarted.xml:593
#, no-c-format
msgid "This class specifies which page wicket should treat as our home page, in our case, <literal>HomePage.class</literal>"
msgstr "Questa classe specifica quale pagina wicket debba essere considerata come home page, nel nostro caso <literal>HomePage.class</literal>."
#. Tag: para
-#: gettingstarted.xml:594
+#: gettingstarted.xml:599
#, no-c-format
msgid "In <literal>HomePage</literal> we see typical wicket code to set up page elements. The bit that is interesting is the injection of the <literal>Game</literal> bean:"
msgstr "In <literal>HomePage</literal> si vede un tipico codice wicket per impostare gli elementi di pagina. Il punto interessante è l'iniezione del bean <literal>Game</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:600
+#: gettingstarted.xml:605
#, no-c-format
msgid "<![CDATA[ @Current Game game;]]>"
msgstr "<![CDATA[ @Current Game game;]]>"
#. Tag: para
-#: gettingstarted.xml:602
+#: gettingstarted.xml:607
#, no-c-format
msgid "The <literal>Game</literal> bean is can then be used, for example, by the code for submitting a guess:"
msgstr "Il bean <literal>Game</literal> può essere usato, per esempio, da codice per inviare un tentativo:"
#. Tag: programlisting
-#: gettingstarted.xml:607
+#: gettingstarted.xml:612
#, no-c-format
msgid ""
"<![CDATA[final Component guessButton = new AjaxButton(\"GuessButton\") { \n"
@@ -1103,31 +1109,31 @@
" if (game.check()) {]]>"
#. Tag: para
-#: gettingstarted.xml:610
+#: gettingstarted.xml:615
#, no-c-format
msgid "All injections may be serialized; actual storage of the bean is managed by JSR-299. Note that Wicket components, like the HomePage and it subcomponents, are <emphasis>not</emphasis> JSR-299 beans."
msgstr "Tutte le iniezioni possono essere serializzate; il salvataggio su disco del bean è gestito daJSR-299. Si noti che i componenti Wicket come HomePage ed i suoi sottocomponenti <emphasis>non</emphasis> sono bean JSR-299."
#. Tag: para
-#: gettingstarted.xml:616
+#: gettingstarted.xml:621
#, no-c-format
msgid "Wicket components allow injection, but they <emphasis>cannot</emphasis> use interceptors, decorators and lifecycle callbacks such as <literal>@PostConstruct</literal> or <literal>@Initializer</literal> methods."
msgstr "I componenti Wicket consentono l'iniezione, ma <emphasis>non possono</emphasis> usare gli interceptor, i decoratori e le chiamate del ciclo di vita quali i metodi <literal>@PostConstruct</literal> o <literal>@Initializer</literal>."
#. Tag: para
-#: gettingstarted.xml:626
+#: gettingstarted.xml:631
#, no-c-format
msgid "The example uses AJAX for processing of button events, and dynamically hides buttons that are no longer relevant, for example when the user has won the game."
msgstr "L'esempio usa AJAX per processare gli eventi dei pulsanti, e nasconde dinamicamente i pulsanti che non sono più rilevanti, per esempio quando l'utente ha vinto il gioco."
#. Tag: para
-#: gettingstarted.xml:634
+#: gettingstarted.xml:639
#, no-c-format
msgid "In order to activate wicket for this webapp, the Wicket filter is added to web.xml, and our application class is specified:"
msgstr "Per attivare wicket per questa webapp, il filtro Wicket viene aggiunto a web.xml, e viene specificata la classe di applicazione:"
#. Tag: programlisting
-#: gettingstarted.xml:639
+#: gettingstarted.xml:644
#, no-c-format
msgid ""
"<![CDATA[<filter>\n"
@@ -1167,73 +1173,73 @@
"</listener>]]>"
#. Tag: para
-#: gettingstarted.xml:640
+#: gettingstarted.xml:645
#, no-c-format
msgid "Note that the servlet listener is also added, as in the Tomcat example, in order to boostrap Web Beans when Jetty starts, and to hook Web Beans into the Jetty servlet request and session lifecycles."
msgstr "Si noti che il servlet listener viene aggiunto, come nell'esempio Tomcat, per poter avviare Web Beans quando viene avviato Jetty, e per agganciare Web Beans alla richiesta servlet di Jetty ed al ciclo di vita della sessione."
#. Tag: title
-#: gettingstarted.xml:653
+#: gettingstarted.xml:658
#, no-c-format
msgid "The numberguess example for Java SE with Swing"
msgstr "Esempio Indovina Numero per Java SE con Swing"
#. Tag: para
-#: gettingstarted.xml:655
+#: gettingstarted.xml:660
#, no-c-format
msgid "This example can be found in the <literal>examples/se/numberguess</literal> folder of the Web Beans distribution."
msgstr "Quest'esempio può essere trovato nella cartella <literal>examples/se/numberguess</literal> della distribuzione Web Beans."
#. Tag: para
-#: gettingstarted.xml:662
+#: gettingstarted.xml:667
#, no-c-format
msgid "To run this example:"
msgstr "Per eseguire quest'esempio:"
#. Tag: para
-#: gettingstarted.xml:668
+#: gettingstarted.xml:673
#, no-c-format
msgid "Open a command line/terminal window in the <literal>examples/se/numberguess</literal> directory"
msgstr "Aprire una finestra di terminale/linea di comando nella directory <literal>examples/se/numberguess</literal>"
#. Tag: para
-#: gettingstarted.xml:674
+#: gettingstarted.xml:679
#, no-c-format
msgid "Ensure that Maven 2 is installed and in your PATH"
msgstr "Assicurarsi che Maven 2 sia installato e presente nel PATH"
#. Tag: para
-#: gettingstarted.xml:679
+#: gettingstarted.xml:684
#, no-c-format
msgid "Ensure that the <literal>JAVA_HOME</literal> environment variable is pointing to your JDK installation"
msgstr "Assicurarsi che la variabile d'ambiente <literal>JAVA_HOME</literal> punti alla propria installazione JDK"
#. Tag: para
-#: gettingstarted.xml:685
+#: gettingstarted.xml:690
#, no-c-format
msgid "execute the following command"
msgstr "eseguire il seguente comando"
#. Tag: programlisting
-#: gettingstarted.xml:688
+#: gettingstarted.xml:693
#, no-c-format
msgid "mvn -Drun"
msgstr "mvn -Drun"
#. Tag: para
-#: gettingstarted.xml:694
+#: gettingstarted.xml:699
#, no-c-format
msgid "There is an empty <literal>beans.xml</literal> file in the root package (<literal>src/main/resources/beans.xml</literal>), which marks this application as a Web Beans application."
msgstr "Vi è un file vuoto <literal>beans.xml</literal> nel pacchetto radice (<literal>src/main/resources/beans.xml</literal>), che identifica l'applicazione come applicazione Web Beans."
#. Tag: para
-#: gettingstarted.xml:700
+#: gettingstarted.xml:705
#, no-c-format
msgid "The game's main logic is located in <literal>Game.java</literal>. Here is the code for that class, highlighting the changes made from the web application version:"
msgstr "La logica principale del gioco è collocata in <literal>Game.java</literal>. Ecco il codice per questa classe, evidenziando i cambiamenti fatti nella versione web:"
#. Tag: section
-#: gettingstarted.xml:704
+#: gettingstarted.xml:709
#, no-c-format
msgid ""
"<programlistingco> <areaspec> <area id=\"scope\" coords=\"1\"/> <area id=\"name\" coords=\"1\"/> <area id=\"messages1\" coords=\"26\"/> <area id=\"validation\" coords=\"39\"/> <area id=\"reset\" coords=\"68\"/> </areaspec> <programlisting role=\"JAVA\"><![CDATA[@ApplicationScoped\n"
@@ -1601,37 +1607,37 @@
"}]]></programlisting> <calloutlist> <callout arearefs=\"gameIn\"> <para> The injected instance of the game (logic and state). </para> </callout> <callout arearefs=\"messagesIn\"> <para> The injected message generator for UI messages. </para> </callout> <callout arearefs=\"start\"> <para> This application is started in the usual Web Beans SE way, by observing the <literal>@Deployed Manager</literal> event. </para> </callout> <callout arearefs=\"init\"> <para> This method initialises all of the Swing components. Note the use of the <literal>msgGenerator</literal>. </para> </callout> <callout arearefs=\"guess1\"> <para> <literal>guessButtonActionPerformed</literal> is called when the 'Guess' button is clicked, and it does the following: </para> <itemizedlist> <listitem> <para> Gets the guess entered by the user and sets it as the current guess in the <literal>Game</literal> </para> </listitem> <listitem> <para> Calls <literal>game.check()</literal> to validate and perform one!
'turn' of the game </para> </listitem> <listitem> <para> Calls <literal>refreshUI</literal>. If there were validation errors with the input, this will have been captured during <literal>game.check()</literal> and as such will be reflected in the messeges returned by <literal>MessageGenerator</literal> and subsequently presented to the user. If there are no validation errors then the user will be told to guess again (higher or lower) or that the game has ended either in a win (correct guess) or a loss (ran out of guesses). </para> </listitem> </itemizedlist> </callout> <callout arearefs=\"replay\"> <para> <literal>replayBtnActionPerformed</literal> simply calls <literal>game.reset()</literal> to start a new game and refreshes the messages in the UI. </para> </callout> <callout arearefs=\"refresh\"> <para> <literal>refreshUI</literal> uses the <literal>MessageGenerator</literal> to update the messages to the user based on the current state of the Game. </para> </callout> </c!
alloutlist> </programlistingco>"
#. Tag: title
-#: gettingstarted.xml:912
+#: gettingstarted.xml:917
#, no-c-format
msgid "The translator example"
msgstr "Esempio Traduttore"
#. Tag: para
-#: gettingstarted.xml:914
+#: gettingstarted.xml:919
#, no-c-format
msgid "The translator example will take any sentences you enter, and translate them to Latin."
msgstr "L'esempio Traduttore prende le frasi che vengono inserite e le traduce in latino."
#. Tag: para
-#: gettingstarted.xml:919
+#: gettingstarted.xml:924
#, no-c-format
msgid "The translator example is built as an ear, and contains EJBs. As a result, it's structure is more complex than the numberguess example."
msgstr "L'esempio Traduttore è assemblato in un ear, e contiene EJB. Di conseguenza, la sua struttura è più complessa di quella dell'esempio Indovina Numero."
#. Tag: para
-#: gettingstarted.xml:925
+#: gettingstarted.xml:930
#, no-c-format
msgid "EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make this structure much simpler!"
msgstr "EJB 3.1 and Java EE 6 permettono di assemblare gli EJB in un war, cosa che rende questa struttura molto più semplice!"
#. Tag: para
-#: gettingstarted.xml:931
+#: gettingstarted.xml:936
#, no-c-format
msgid "First, let's take a look at the ear aggregator, which is located in <literal>webbeans-translator-ear</literal> module. Maven automatically generates the <literal>application.xml</literal> for us:"
msgstr "Innanzitutto, diamo un'occhiata all'aggregatore ear, che è situato nel modulo <literal>webbeans-translator-ear</literal>. Maven genera automaticamente il file <literal>application.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:937
+#: gettingstarted.xml:942
#, no-c-format
msgid ""
"<![CDATA[<plugin>\n"
@@ -1663,19 +1669,19 @@
"</plugin>]]>"
#. Tag: para
-#: gettingstarted.xml:939
+#: gettingstarted.xml:944
#, no-c-format
msgid "Here we set the context path, which gives us a nice url (<ulink url=\"http://localhost:8080/webbeans-translator\">http://localhost:8080/webbeans-translator</ulink>)."
msgstr "Qua viene impostato il context path, in modo da avere un url gradevole (<ulink url=\"http://localhost:8080/webbeans-translator\">http://localhost:8080/webbeans-translator</ulink>)."
#. Tag: para
-#: gettingstarted.xml:945
+#: gettingstarted.xml:950
#, no-c-format
msgid "If you aren't using Maven to generate these files, you would need <literal>META-INF/application.xml</literal>:"
msgstr "Se non si sta usando Maven per generare questi file, sarebbe necessario avere il file <literal>META-INF/application.xml</literal>:"
#. Tag: programlisting
-#: gettingstarted.xml:950
+#: gettingstarted.xml:955
#, no-c-format
msgid ""
"<![CDATA[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
@@ -1717,19 +1723,19 @@
"</application>]]>"
#. Tag: para
-#: gettingstarted.xml:953
+#: gettingstarted.xml:958
#, no-c-format
msgid "Next, lets look at the war. Just as in the numberguess example, we have a <literal>faces-config.xml</literal> (to enable Facelets) and a <literal>web.xml</literal> (to enable JSF) in <literal>WebContent/WEB-INF</literal>."
msgstr "Quindi, esaminiamo il war. Proprio come nell'esempio Indovina Numero, abbiamo un <literal>faces-config.xml</literal> (per abilitare Facelets) e un <literal>web.xml</literal> (per abilitare JSF) in <literal>WebContent/WEB-INF</literal>."
#. Tag: para
-#: gettingstarted.xml:960
+#: gettingstarted.xml:965
#, no-c-format
msgid "More intersting is the facelet used to translate text. Just as in the numberguess example we have a template, which surrounds the form (ommitted here for brevity):"
msgstr "Più interessante è il facelet usato per tradurre il testo. Proprio come nell'esempio Indovina Numero c'è un template, che circoscrive la form (qui omessa per brevità):"
#. Tag: programlisting
-#: gettingstarted.xml:966
+#: gettingstarted.xml:971
#, no-c-format
msgid ""
"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
@@ -1785,31 +1791,31 @@
"</h:form>]]>"
#. Tag: para
-#: gettingstarted.xml:968
+#: gettingstarted.xml:973
#, no-c-format
msgid "The user can enter some text in the lefthand textarea, and hit the translate button to see the result to the right."
msgstr "L'utente può inserire del testo nell'area di testo sulla sinistra e premere il pulsante di traduzione per vedere il risultato sulla destra."
#. Tag: para
-#: gettingstarted.xml:973
+#: gettingstarted.xml:978
#, no-c-format
msgid "Finally, let's look at the ejb module, <literal>webbeans-translator-ejb</literal>. In <literal>src/main/resources/META-INF</literal> there is just an empty <literal>web-beans.xml</literal>, used to mark the archive as containing Web Beans."
msgstr "Infine, si esamini il modulo ejb, <literal>webbeans-translator-ejb</literal>. In <literal>src/main/resources/META-INF</literal> si trova un file vuoto <literal>web-beans.xml</literal>, usato per marcare l'archivio come contenente Web Beans."
#. Tag: para
-#: gettingstarted.xml:981
+#: gettingstarted.xml:986
#, no-c-format
msgid "We've saved the most interesting bit to last, the code! The project has two simple beans, <literal>SentenceParser</literal> and <literal>TextTranslator</literal> and two enterprise beans, <literal>TranslatorControllerBean</literal> and <literal>SentenceTranslator</literal>. You should be getting quite familiar with what a Web Bean looks like by now, so we'll just highlight the most interesting bits here."
msgstr "Abbiamo lasciato per ultimo il boccone più prelibato, il codice! Il progetto ha due bean semplici, <literal>SentenceParser</literal> e <literal>TextTranslator</literal> e due bean enterprise, <literal>TranslatorControllerBean</literal> e <literal>SentenceTranslator</literal>. Dovreste ormai essere piuttosto familiari all'aspetto di un Web Bean, così ci limiteremo a evidenziare le parti più interessanti."
#. Tag: para
-#: gettingstarted.xml:991
+#: gettingstarted.xml:996
#, no-c-format
msgid "Both <literal>SentenceParser</literal> and <literal>TextTranslator</literal> are dependent beans, and <literal>TextTranslator</literal> uses constructor initialization:"
msgstr "Sia <literal>SentenceParser</literal> che <literal>TextTranslator</literal> sono bean dependenti, e <literal>TextTranslator</literal> usa l'inizializzazione via costruttore:"
#. Tag: programlisting
-#: gettingstarted.xml:997
+#: gettingstarted.xml:1002
#, no-c-format
msgid ""
"<![CDATA[public class TextTranslator { \n"
@@ -1833,7 +1839,7 @@
" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
-#: gettingstarted.xml:999
+#: gettingstarted.xml:1004
#, no-c-format
msgid "<literal>TextTranslator</literal> is a stateless bean (with a local business interface), where the magic happens - of course, we couldn't develop a full translator, but we gave it a good go!"
msgstr "<literal>TextTranslator</literal> è un bean stateless (con un'interfaccia business locale), dove avviene la magia - naturalmente, non potevamo sviluppare un traduttore completo, ma gli abbiamo dato un buon avvio!"
@@ -1842,13 +1848,13 @@
# se è request scoped come può essere statefull session??????
# vuol dire che è un bean che sta nella sessione ma certe variabili le piglia dalla richiesta e ogni richiesta vede le proprie?????
#. Tag: para
-#: gettingstarted.xml:1005
+#: gettingstarted.xml:1010
#, no-c-format
msgid "Finally, there is UI orientated controller, that collects the text from the user, and dispatches it to the translator. This is a request scoped, named, stateful session bean, which injects the translator."
msgstr "Infine, vi è un controller orientato all'UI, che raccoglie il testo dall'utente, e lo invia al traduttore. Questo è un bean stateful di sessione, dotato di nome, con scope richiesta, in cui viene iniettato il traduttore."
#. Tag: programlisting
-#: gettingstarted.xml:1011
+#: gettingstarted.xml:1016
#, no-c-format
msgid ""
"<![CDATA[@Stateful\n"
@@ -1868,19 +1874,19 @@
" @Current TextTranslator translator;]]>"
#. Tag: para
-#: gettingstarted.xml:1013
+#: gettingstarted.xml:1018
#, no-c-format
msgid "The bean also has getters and setters for all the fields on the page."
msgstr "Il bean possiede pure dei metodi getter e setter per tutti i campi della pagina."
#. Tag: para
-#: gettingstarted.xml:1017
+#: gettingstarted.xml:1022
#, no-c-format
msgid "As this is a stateful session bean, we have to have a remove method:"
msgstr "Poichè si tratta di un bean stateful di sessione, è necessario un metodo di rimozione (remove method):"
#. Tag: programlisting
-#: gettingstarted.xml:1021
+#: gettingstarted.xml:1026
#, no-c-format
msgid ""
"<![CDATA[ @Remove\n"
@@ -1896,19 +1902,19 @@
" }]]>"
#. Tag: para
-#: gettingstarted.xml:1023
+#: gettingstarted.xml:1028
#, no-c-format
msgid "The Web Beans manager will call the remove method for you when the bean is destroyed; in this case at the end of the request."
msgstr "Il manager Web Beans chiamerà il metodo di rimozione quando il bean verrà distrutto; in questo caso al termine della richiesta."
#. Tag: para
-#: gettingstarted.xml:1029
+#: gettingstarted.xml:1034
#, no-c-format
msgid "That concludes our short tour of the Web Beans examples. For more on Web Beans , or to help out, please visit <ulink url=\"http://www.seamframework.org/WebBeans/Development\">http://www.seamframework.org/WebBeans/Development</ulink>."
msgstr "Ciò conclude il nostro breve tour degli esempi della RI di Web Beans. Per saperne di più, o per trovare ulteriore aiuto, per favore visitate <ulink url=\"http://www.seamframework.org/WebBeans/Development\">http://www.seamframework.org/WebBeans/Development</ulink>."
#. Tag: para
-#: gettingstarted.xml:1035
+#: gettingstarted.xml:1040
#, no-c-format
msgid "We need help in all areas - bug fixing, writing new features, writing examples and translating this reference guide."
msgstr "Abbiamo bisogno di aiuto in tutte le aree - soluzione dei bug, scrittura di nuove caratteristiche ed esempi e traduzione di questa guida."
15 years, 7 months
[webbeans-commits] Webbeans SVN: r2790 - doc/trunk/reference/it-IT.
by webbeans-commits@lists.jboss.org
Author: nico.ben
Date: 2009-06-08 15:36:29 -0400 (Mon, 08 Jun 2009)
New Revision: 2790
Modified:
doc/trunk/reference/it-IT/gettingstarted.po
doc/trunk/reference/it-IT/ri-spi.po
Log:
Italian translation
Modified: doc/trunk/reference/it-IT/gettingstarted.po
===================================================================
--- doc/trunk/reference/it-IT/gettingstarted.po 2009-06-08 18:05:57 UTC (rev 2789)
+++ doc/trunk/reference/it-IT/gettingstarted.po 2009-06-08 19:36:29 UTC (rev 2790)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-05-05 20:42+0000\n"
-"PO-Revision-Date: 2009-05-10 12:48+0100\n"
+"PO-Revision-Date: 2009-06-08 21:11+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -958,13 +958,13 @@
#: gettingstarted.xml:483
#, no-c-format
msgid "Like the previous example, the Wicket WebBeans examples make use of the <literal>webbeans-servlet</literal> module. The use of the <ulink url=\"http://jetty.mortbay.org/\">Jetty servlet container</ulink> is common in the Wicket community, and is chosen here as the runtime container in order to facilitate comparison between the standard Wicket examples and these examples, and also to show how the webbeans-servlet integration is not dependent upon Tomcat as the servlet container."
-msgstr ""
+msgstr "Come nel precedente esempio, gli esempi WebBeans Wicket usano il modulo <literal>webbeans-servlet</literal>. L'uso del <ulink url=\"http://jetty.mortbay.org/\">Jetty servlet container</ulink> è comune nella comunità Wicket, e qua viene scelto come container runtime per facilitare il paragone tra gli esempi Wicket standard e questi esempi, ed anche per mostrare come l'integrazione webbeans-servlet non è dipenendete da Tomcat come servlet container."
#. Tag: para
#: gettingstarted.xml:494
#, no-c-format
msgid "These examples make use of the Eclipse IDE; instructions are also given to deploy the application from the command line."
-msgstr ""
+msgstr "Questi esempi usano Eclipse IDE; vengono date anche le istruzioni per il deploy dell'applicazione da linea di comando."
#. Tag: title
#: gettingstarted.xml:500
@@ -992,7 +992,7 @@
#: gettingstarted.xml:508
#, no-c-format
msgid "Then, from eclipse, choose <emphasis>File -> Import -> General -> Existing Projects into Workspace</emphasis>, select the root directory of the numberguess example, and click finish. Note that if you do not intend to run the example with jetty from within eclipse, omit the \"-Pjetty.\" This will create a project in your workspace called <literal>webbeans-wicket-numberguess</literal>"
-msgstr ""
+msgstr "Poi scegliere da Eclipse <emphasis>File -> Import -> General -> Existing Projects into Workspace</emphasis>, selezionare la cartella radice dell'esempio Indovina Numero e cliccare su Finish. Notare che se non si intende eseguire l'esempio con Jetty da dentro Eclipse, si ometta \"-Pjetty.\". Questo creerà un progetto nel workspace chiamato <literal>webbeans-wicket-numberguess</literal>."
#. Tag: title
#: gettingstarted.xml:524
@@ -1004,7 +1004,7 @@
#: gettingstarted.xml:526
#, no-c-format
msgid "This project follows the <literal>wicket-quickstart</literal> approach of creating an instance of Jetty in the <literal>Start</literal> class. So running the example is as simple as right-clicking on that Start class in <literal>src/test/java</literal> in the <emphasis>Package Explorer</emphasis> and choosing <emphasis>Run as Java Application</emphasis>. You should see console output related to Jetty starting up; then visit able <literal>http://localhost:8080</literal> to view the app. To debug choose <emphasis>Debug as Java Application</emphasis>."
-msgstr ""
+msgstr "Questo progetto segue l'approccio di <literal>wicket-quickstart</literal> nella creazione di un'istanza di Jetty nella classe <literal>Start</literal>. Quindi l'esecuzione dell'esempio è tanto semplice come cliccare col tasto destro sulla classe Start in <literal>src/test/java</literal> in <emphasis>Package Explorer</emphasis> e scegliere <emphasis>Run as Java Application</emphasis>. Si dovrebbe vedere l'output di console di Jetty avviato; poi visitare <literal>http://localhost:8080</literal>. Per il debug scegliere <emphasis>Debug as Java Application</emphasis>."
#. Tag: title
#: gettingstarted.xml:541
@@ -1016,7 +1016,7 @@
#: gettingstarted.xml:543
#, no-c-format
msgid "This example can also be deployed from the command line in a (similar to the other examples). Assuming you have set up the <literal>build.properties</literal> file in the <literal>examples</literal> directory to specify the location of JBoss AS or Tomcat, as previously described, you can run <literal>ant deploy</literal> from the <literal>examples/wicket/numberguess</literal> directory, and access the application at <literal>http://localhost:8080/webbeans-numberguess-wicket</literal>."
-msgstr ""
+msgstr "Quest'esempio può anche essere deployato da linea di comando (come gli altri esempi). Assumendo che sia stato configurato il file <literal>build.properties</literal> nella derectory <literal>examples</literal>, per specificare la locazione di JBoss AS o Tomcat, come descritto prima, si può eseguire <literal>ant deploy</literal> dalla directory <literal>examples/wicket/numberguess</literal> ed accedere all'applicazione tramite indirizzo <literal>http://localhost:8080/webbeans-numberguess-wicket</literal>."
#. Tag: title
#: gettingstarted.xml:557
@@ -1028,13 +1028,13 @@
#: gettingstarted.xml:559
#, no-c-format
msgid "JSF uses Unified EL expressions to bind view layer components in JSP or Facelet views to beans, Wicket defines it's components in Java. The markup is plain html with a one-to-one mapping between html elements and the view components. All view logic, including binding of components to models and controlling the response of view actions, is handled in Java. The integration of Web Beans with Wicket takes advantage of the same binding annotations used in your business layer to provide injection into your WebPage subclass (or into other custom wicket component subclasses)."
-msgstr ""
+msgstr "JSF usa le espressioni Unified EL per associare i componenti del layer vista nelle viste JSP o Facelets ai bean, Wicket definisce i propri componenti in Java. Il markup è puro html con una mappatura one-to-one tra gli elementi html ed i componenti vista. Tutta la logica di vista viene gestita in Java, incluso il binding dei componenti ai modelli ed il controllo della risposta delle azioni di vista. L'integrazione di Web Beans con Wicket sfrutta le stesse annotazioni di binding usata nel layer business per fornire l'iniezione alla sottoclasse WebPage (o in altre sottoclassi personalizzate componenti di Wicket)."
#. Tag: para
#: gettingstarted.xml:571
#, no-c-format
msgid "The code in the wicket numberguess example is very similar to the JSF-based numberguess example. The business layer is identical!"
-msgstr ""
+msgstr "Il codice nell'esempio Indovina Numero in Wicket è molto simile all'esempio Indovina Numero basato su JSF. Il layer business è identico!"
#. Tag: para
#: gettingstarted.xml:576
@@ -1046,7 +1046,7 @@
#: gettingstarted.xml:581
#, no-c-format
msgid "Each wicket application must have a <literal>WebApplication</literal> subclass, In our case, our application class is <literal>SampleApplication</literal>:"
-msgstr ""
+msgstr "Ciascuna applicazione wicket deve avere una sottoclasse <literal>WebApplication</literal>. Nel nostro caso la classe applicazione è <literal>SampleApplication</literal>:"
#. Tag: programlisting
#: gettingstarted.xml:587
@@ -1070,13 +1070,13 @@
#: gettingstarted.xml:588
#, no-c-format
msgid "This class specifies which page wicket should treat as our home page, in our case, <literal>HomePage.class</literal>"
-msgstr ""
+msgstr "Questa classe specifica quale pagina wicket debba essere considerata come home page, nel nostro caso <literal>HomePage.class</literal>."
#. Tag: para
#: gettingstarted.xml:594
#, no-c-format
msgid "In <literal>HomePage</literal> we see typical wicket code to set up page elements. The bit that is interesting is the injection of the <literal>Game</literal> bean:"
-msgstr ""
+msgstr "In <literal>HomePage</literal> si vede un tipico codice wicket per impostare gli elementi di pagina. Il punto interessante è l'iniezione del bean <literal>Game</literal>:"
#. Tag: programlisting
#: gettingstarted.xml:600
@@ -1106,19 +1106,19 @@
#: gettingstarted.xml:610
#, no-c-format
msgid "All injections may be serialized; actual storage of the bean is managed by JSR-299. Note that Wicket components, like the HomePage and it subcomponents, are <emphasis>not</emphasis> JSR-299 beans."
-msgstr ""
+msgstr "Tutte le iniezioni possono essere serializzate; il salvataggio su disco del bean è gestito daJSR-299. Si noti che i componenti Wicket come HomePage ed i suoi sottocomponenti <emphasis>non</emphasis> sono bean JSR-299."
#. Tag: para
#: gettingstarted.xml:616
#, no-c-format
msgid "Wicket components allow injection, but they <emphasis>cannot</emphasis> use interceptors, decorators and lifecycle callbacks such as <literal>@PostConstruct</literal> or <literal>@Initializer</literal> methods."
-msgstr ""
+msgstr "I componenti Wicket consentono l'iniezione, ma <emphasis>non possono</emphasis> usare gli interceptor, i decoratori e le chiamate del ciclo di vita quali i metodi <literal>@PostConstruct</literal> o <literal>@Initializer</literal>."
#. Tag: para
#: gettingstarted.xml:626
#, no-c-format
msgid "The example uses AJAX for processing of button events, and dynamically hides buttons that are no longer relevant, for example when the user has won the game."
-msgstr ""
+msgstr "L'esempio usa AJAX per processare gli eventi dei pulsanti, e nasconde dinamicamente i pulsanti che non sono più rilevanti, per esempio quando l'utente ha vinto il gioco."
#. Tag: para
#: gettingstarted.xml:634
@@ -1170,7 +1170,7 @@
#: gettingstarted.xml:640
#, no-c-format
msgid "Note that the servlet listener is also added, as in the Tomcat example, in order to boostrap Web Beans when Jetty starts, and to hook Web Beans into the Jetty servlet request and session lifecycles."
-msgstr ""
+msgstr "Si noti che il servlet listener viene aggiunto, come nell'esempio Tomcat, per poter avviare Web Beans quando viene avviato Jetty, e per agganciare Web Beans alla richiesta servlet di Jetty ed al ciclo di vita della sessione."
#. Tag: title
#: gettingstarted.xml:653
@@ -1230,7 +1230,7 @@
#: gettingstarted.xml:700
#, no-c-format
msgid "The game's main logic is located in <literal>Game.java</literal>. Here is the code for that class, highlighting the changes made from the web application version:"
-msgstr ""
+msgstr "La logica principale del gioco è collocata in <literal>Game.java</literal>. Ecco il codice per questa classe, evidenziando i cambiamenti fatti nella versione web:"
#. Tag: section
#: gettingstarted.xml:704
Modified: doc/trunk/reference/it-IT/ri-spi.po
===================================================================
--- doc/trunk/reference/it-IT/ri-spi.po 2009-06-08 18:05:57 UTC (rev 2789)
+++ doc/trunk/reference/it-IT/ri-spi.po 2009-06-08 19:36:29 UTC (rev 2790)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-04-19 20:36+0000\n"
-"PO-Revision-Date: 2009-05-30 15:34+0100\n"
+"PO-Revision-Date: 2009-06-08 21:35+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -271,7 +271,7 @@
#: ri-spi.xml:100
#, no-c-format
msgid "Just as EJB resolution is delegated to the container, resolution of <literal>@PersistenceContext</literal> for injection into simple beans (with the <literal>InjectionPoint</literal> provided), and resolution of persistence contexts and persistence units (with the <literal>unitName</literal> provided) for injection as a Java EE resource is delegated to the container."
-msgstr ""
+msgstr "Così come la risoluzione EJB è delegataal container, vengono delegate al container anche la risoluzione del <literal>@PersistenceContext</literal> per l'iniezione in semplici bean (con <literal>InjectionPoint</literal> fornito), e la risoluzione dei contesti di persistenza e delle unità di persistenza (con <literal>InjectionPoint</literal> fornito) per l'iniezione come risorse Java EE."
#. Tag: para
#: ri-spi.xml:109
@@ -283,7 +283,7 @@
#: ri-spi.xml:114
#, no-c-format
msgid "Web Beans also needs to know what entities are in a deployment (so that they aren't managed by Web Beans). An implementation that detects entities through <literal>@Entity</literal> and <literal>orm.xml</literal> is provided by default. If you want to provide support for a entities defined by a JPA provider (such as Hibernate's <literal>.hbm.xml</literal> you can wrap or replace the default implementation."
-msgstr ""
+msgstr "Web Beans necessitaanche di sapere quali entità sono in deploy (quindi non sono gestite da Web Beans). Un'implementazione che rileva le entità attraverso <literal>@Entity</literal> e <literal>orm.xml</literal> viene fornita di default. Se si vuole fornire support alle entity definite da un provider JPA (quali gli <literal>.hbm.xml</literal> di Hibernate) si può fare il wrap o sostituire l'implementazione di default."
#. Tag: programlisting
#: ri-spi.xml:124
@@ -393,7 +393,7 @@
#: ri-spi.xml:167
#, no-c-format
msgid "A number of JMS operations are not container specific, and so should be provided via the SPI <literal>JmsServices</literal>. JMS does not specify how to obtain a <literal>ConnectionFactory</literal> so the SPI provides a method which should be used to look up a factory. Web Beans also delegates <literal>Destination</literal> lookup to the container via the SPI."
-msgstr ""
+msgstr "Un numero di operazioni JMS non sono specifiche del container e dovrebbero essere fornite via <literal>JmsServices</literal> SPI. JMS non specifica come ottenere una <literal>ConnectionFactory</literal> quindi SPI fornisce un metodo che dovrebbe essere usato per cercare una factory. Web Beans delega anche la ricerca di <literal>Destination</literal> al container tramite SPI."
#. Tag: title
#: ri-spi.xml:178
@@ -513,7 +513,7 @@
#: ri-spi.xml:304
#, no-c-format
msgid "A number of the SPI interface require JNDI lookup, and the class <literal>AbstractResourceServices</literal> provides JNDI/Java EE spec compliant lookup methods."
-msgstr ""
+msgstr "Un numero di interfacce SPI richiede il lookup JNDI e la classe <literal>AbstractResourceServices</literal> fornisce metodi di lookup secondo la specifica JNDI/Java EE."
#. Tag: title
#: ri-spi.xml:315
15 years, 7 months
[webbeans-commits] Webbeans SVN: r2789 - ri/trunk/impl/src/main/java/org/jboss/webbeans and 9 other directories.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-06-08 14:05:57 -0400 (Mon, 08 Jun 2009)
New Revision: 2789
Added:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/ShoeFactory.java
Modified:
ri/trunk/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java
ri/trunk/api/src/main/java/javax/enterprise/inject/spi/InjectionTarget.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/InstanceImpl.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/DisposalMethodBean.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ProducerMethodBean.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/proxy/ClientProxyMethodHandler.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/context/CreationalContextImpl.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/context/DependentContext.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/conversation/ServletConversationManager.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/event/ObserverImpl.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/impl/MockCreationalContext.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/activities/ActivitiesTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/SimpleBeanLifecycleTest.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/dependency/resolution/DependencyResolutionTest.java
Log:
Various fixes to TCK, start to use new SPI
Modified: ri/trunk/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java
===================================================================
--- ri/trunk/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ ri/trunk/api/src/main/java/javax/enterprise/inject/spi/BeanManager.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -117,7 +117,7 @@
* The Bean representation of the bean.
* @return the mest specialized enabled bean
*/
- public <X> Bean<? extends X> getMostSpecializedBean(Bean<X> bean);
+ public <X> Bean<X> getMostSpecializedBean(Bean<X> bean);
/**
* Returns the PassivationCapableBean with the given identifier.
Modified: ri/trunk/api/src/main/java/javax/enterprise/inject/spi/InjectionTarget.java
===================================================================
--- ri/trunk/api/src/main/java/javax/enterprise/inject/spi/InjectionTarget.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ ri/trunk/api/src/main/java/javax/enterprise/inject/spi/InjectionTarget.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -4,10 +4,16 @@
import javax.enterprise.context.spi.CreationalContext;
-public interface InjectionTarget<X> {
+public interface InjectionTarget<X>
+{
public X produce(CreationalContext<X> ctx);
+
public void inject(X instance, CreationalContext<X> ctx);
+
public void dispose(X instance);
+
public void destroy(X instance);
+
public Set<InjectionPoint> getInjectionPoints();
+
}
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/InstanceImpl.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/InstanceImpl.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/InstanceImpl.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -22,6 +22,7 @@
import java.util.Set;
import javax.enterprise.inject.Instance;
+import javax.enterprise.inject.spi.Bean;
import org.jboss.webbeans.injection.resolution.ResolvableAnnotatedClass;
@@ -31,7 +32,6 @@
* @author Gavin King
*
* @param <T>
- * @see javax.webbeans.Instace
*/
public class InstanceImpl<T> extends FacadeImpl<T> implements Instance<T>
{
@@ -43,31 +43,19 @@
return new InstanceImpl<I>(type, manager, annotations);
}
- /**
- * Constructor
- *
- * @param type The obtainable type
- * @param manager The Web Beans manager
- * @param bindings The binding types
- */
private InstanceImpl(Type type, ManagerImpl manager, Set<Annotation> bindings)
{
super(type, manager, bindings);
}
- /**
- * Gets an instance with the matching binding types
- *
- * @param bindings The binding types
- * @return The instance
- *
- * @see javax.enterprise.inject.Instance#get(Annotation...)
- * @see javax.enterprise.inject.spi.BeanManager#getInstanceByType(Class, Annotation...)
- */
public T get(Annotation... bindings)
{
Annotation[] annotations = mergeInBindings(bindings);
- return getManager().getInstanceByType(ResolvableAnnotatedClass.<T>of(getType(), annotations), annotations);
+ Bean<T> bean = getManager().getBean(ResolvableAnnotatedClass.<T>of(getType(), annotations), annotations);
+
+ @SuppressWarnings("unchecked")
+ T instance = (T) getManager().getReference(bean, getType());
+ return instance;
}
/**
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -711,27 +711,22 @@
{
if (create)
{
- return getInstance(bean, new CreationalContextImpl<T>(bean));
+ return (T) getInjectableReference(bean, CreationalContextImpl.of(bean));
}
else
{
- return getInstance(bean, null);
+ return (T) getInjectableReference(bean, null);
}
}
-
- @SuppressWarnings("unchecked")
- @Deprecated
- private <T> T getInstance(Bean<T> bean, CreationalContextImpl<?> creationalContext)
+
+ public Object getInjectableReference(Bean<?> bean, CreationalContext<?> creationalContext)
{
- if (specializedBeans.containsKey(bean))
+ bean = getMostSpecializedBean(bean);
+ if (getServices().get(MetaDataCache.class).getScopeModel(bean.getScopeType()).isNormal())
{
- return getInstance((Bean<T>) specializedBeans.get(bean), creationalContext);
- }
- else if (getServices().get(MetaDataCache.class).getScopeModel(bean.getScopeType()).isNormal())
- {
if (creationalContext != null || (creationalContext == null && getContext(bean.getScopeType()).get(bean) != null))
{
- return (T) clientProxyProvider.getClientProxy(this, bean);
+ return clientProxyProvider.getClientProxy(this, bean);
}
else
{
@@ -740,7 +735,7 @@
}
else
{
- return getContext(bean.getScopeType()).get((Bean<T>)bean, (CreationalContext<T>)creationalContext);
+ return getContext(bean.getScopeType()).get((Bean) bean, creationalContext);
}
}
@@ -780,12 +775,12 @@
}
else
{
- return getInstance(resolvedBean, ctx.getCreationalContext(resolvedBean));
+ return getInjectableReference(resolvedBean, ctx.getCreationalContext(resolvedBean));
}
}
else
{
- return getInstance(resolvedBean);
+ return getInjectableReference(resolvedBean, creationalContext);
}
}
finally
@@ -870,7 +865,7 @@
return getInstance(getBean(element, bindings));
}
- private <T> Bean<T> getBean(AnnotatedItem<T, ?> element, Annotation... bindings)
+ public <T> Bean<T> getBean(AnnotatedItem<T, ?> element, Annotation... bindings)
{
Set<Bean<?>> beans = getBeans(element, bindings);
if (beans.size() == 0)
@@ -1143,9 +1138,18 @@
- public <X> Bean<? extends X> getMostSpecializedBean(Bean<X> bean)
+ public <X> Bean<X> getMostSpecializedBean(Bean<X> bean)
{
- throw new RuntimeException("Not yet implemented");
+ Bean<?> key = bean;
+ while (specializedBeans.containsKey(key))
+ {
+ if (key == null)
+ {
+ System.out.println("null key " + bean);
+ }
+ key = specializedBeans.get(key);
+ }
+ return (Bean<X>) key;
}
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/DisposalMethodBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/DisposalMethodBean.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/DisposalMethodBean.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -20,7 +20,6 @@
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.HashSet;
-import java.util.LinkedList;
import java.util.List;
import java.util.Set;
@@ -31,7 +30,6 @@
import javax.enterprise.inject.Initializer;
import javax.enterprise.inject.Produces;
import javax.enterprise.inject.deployment.DeploymentType;
-import javax.enterprise.inject.spi.InjectionPoint;
import javax.event.Observes;
import javax.inject.DefinitionException;
@@ -182,26 +180,10 @@
return null;
}
- public void invokeDisposeMethod(Object instance)
+ public void invokeDisposeMethod(Object instance, CreationalContext<?> creationalContext)
{
-
- List<Object> parameters = new LinkedList<Object>();
-
- parameters.add(instance);
-
- for (InjectionPoint injectionPoint : disposalInjectionPoints)
- {
- // TODO this seems very wrong, we should be passing a creational context here
- Object injectionObject = getManager().getInjectableReference(injectionPoint, null);
- parameters.add(injectionObject);
- }
-
-
Object beanInstance = disposalMethodInjectionPoint.isStatic() ? declaringBean : getManager().getInstance(declaringBean);
-
- disposalMethodInjectionPoint.invokeWithSpecialValue(beanInstance, Disposes.class, instance, manager, null, IllegalArgumentException.class);
-
-
+ disposalMethodInjectionPoint.invokeWithSpecialValue(beanInstance, Disposes.class, instance, manager, creationalContext, IllegalArgumentException.class);
}
private void checkDisposalMethod()
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ProducerMethodBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ProducerMethodBean.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/ProducerMethodBean.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -187,7 +187,7 @@
}
DependentContext.instance().setActive(true);
if (disposalMethodBean != null)
- disposalMethodBean.invokeDisposeMethod(instance);
+ disposalMethodBean.invokeDisposeMethod(instance, creationalContext);
}
finally
{
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/proxy/ClientProxyMethodHandler.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/proxy/ClientProxyMethodHandler.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/proxy/ClientProxyMethodHandler.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -111,7 +111,7 @@
CreationalContextImpl<T> creationalContext;
if (currentCreationalContext.get() == null)
{
- creationalContext = new CreationalContextImpl<T>(bean);
+ creationalContext = CreationalContextImpl.of(bean);
currentCreationalContext.set(creationalContext);
}
else
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/context/CreationalContextImpl.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/context/CreationalContextImpl.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/context/CreationalContextImpl.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -25,11 +25,16 @@
public class CreationalContextImpl<T> implements CreationalContext<T>
{
+ public static <T> CreationalContextImpl<T> of(Bean<T> bean)
+ {
+ return new CreationalContextImpl<T>(bean);
+ }
+
private final Map<Bean<?>, Object> incompleteInstances;
private final Bean<T> bean;
private final boolean outer;
- public CreationalContextImpl(Bean<T> bean)
+ private CreationalContextImpl(Bean<T> bean)
{
this.incompleteInstances = new HashMap<Bean<?>, Object>();
this.bean = bean;
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/context/DependentContext.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/context/DependentContext.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/context/DependentContext.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -164,7 +164,7 @@
{
if (contextual instanceof Bean)
{
- CreationalContext<T> creationalContext = new CreationalContextImpl<T>((Bean<T>) contextual);
+ CreationalContext<T> creationalContext = CreationalContextImpl.of((Bean<T>) contextual);
contextual.destroy(instance, creationalContext);
}
}
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/conversation/ServletConversationManager.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/conversation/ServletConversationManager.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/conversation/ServletConversationManager.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -25,16 +25,16 @@
import java.io.Serializable;
import javax.enterprise.context.SessionScoped;
+import javax.enterprise.inject.Instance;
import javax.enterprise.inject.Produces;
+import javax.inject.Obtains;
import javax.servlet.http.HttpSession;
-import org.jboss.webbeans.CurrentManager;
import org.jboss.webbeans.WebBean;
import org.jboss.webbeans.context.api.BeanStore;
import org.jboss.webbeans.log.LogProvider;
import org.jboss.webbeans.log.Logging;
import org.jboss.webbeans.servlet.ConversationBeanStore;
-import org.jboss.webbeans.servlet.HttpSessionManager;
/**
* The HTTP session based conversation manager
@@ -53,12 +53,13 @@
private static final long CONVERSATION_TIMEOUT_IN_MS = 10 * 60 * 1000;
private static final long CONVERSATION_CONCURRENT_ACCESS_TIMEOUT_IN_MS = 1 * 1000;
private static final String CONVERSATION_ID_NAME = "cid";
+
+ @Obtains Instance<HttpSession> httpSession;
@Override
public BeanStore getBeanStore(String cid)
{
- HttpSession session = CurrentManager.rootManager().getInstanceByType(HttpSessionManager.class).getSession();
- return new ConversationBeanStore(session, cid);
+ return new ConversationBeanStore(httpSession.get(), cid);
}
@Produces
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/event/ObserverImpl.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/event/ObserverImpl.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/event/ObserverImpl.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -23,6 +23,7 @@
import java.util.List;
import javax.enterprise.context.Dependent;
+import javax.enterprise.context.spi.CreationalContext;
import javax.enterprise.inject.Disposes;
import javax.enterprise.inject.Initializer;
import javax.enterprise.inject.Produces;
@@ -35,6 +36,7 @@
import org.jboss.webbeans.ManagerImpl;
import org.jboss.webbeans.bean.RIBean;
+import org.jboss.webbeans.context.CreationalContextImpl;
import org.jboss.webbeans.context.DependentContext;
import org.jboss.webbeans.context.DependentInstancesStore;
import org.jboss.webbeans.context.DependentStorageRequest;
@@ -178,13 +180,18 @@
DependentContext.instance().startCollectingDependents(dependentStorageRequest);
}
// Get the most specialized instance of the component
- instance = getInstance(observerBean);
+ CreationalContext<?> creationalContext = null;
+ if (!conditional)
+ {
+ creationalContext = CreationalContextImpl.of(observerBean);
+ }
+ instance = manager.getInjectableReference(observerBean, creationalContext);
if (instance == null)
{
return;
}
// As we are working with the contextual instance, we may not have the actual object, but a container proxy (e.g. EJB)
- observerMethod.invokeOnInstanceWithSpecialValue(instance, Observes.class, event, manager, null, ObserverException.class);
+ observerMethod.invokeOnInstanceWithSpecialValue(instance, Observes.class, event, manager, creationalContext, ObserverException.class);
}
finally
{
@@ -205,11 +212,6 @@
DeferredEventNotification<T> deferredEvent = new DeferredEventNotification<T>(event, this);
manager.getTaskExecutor().execute(deferredEvent);
}
-
- private <B> B getInstance(RIBean<B> observerBean)
- {
- return manager.getInstance(observerBean, !isConditional());
- }
/**
* Indicates if the observer is conditional
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/impl/MockCreationalContext.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/impl/MockCreationalContext.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/impl/MockCreationalContext.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -34,6 +34,12 @@
MockCreationalContext.pushCalled = pushCalled;
}
+ public static void reset()
+ {
+ lastBeanPushed = null;
+ pushCalled = false;
+ }
+
public void release()
{
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/activities/ActivitiesTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/activities/ActivitiesTest.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/activities/ActivitiesTest.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -22,6 +22,7 @@
import org.hibernate.tck.annotations.SpecAssertions;
import org.jboss.jsr299.tck.AbstractJSR299Test;
import org.jboss.jsr299.tck.ForwardingBean;
+import org.jboss.jsr299.tck.impl.MockCreationalContext;
import org.jboss.jsr299.tck.literals.CurrentLiteral;
import org.jboss.testharness.impl.packaging.Artifact;
import org.testng.annotations.Test;
@@ -190,7 +191,7 @@
BeanManager childActivity = getCurrentManager().createActivity();
Bean<?> dummyBean = createDummyBean(childActivity, Cow.class);
childActivity.addBean(dummyBean);
- assert childActivity.getInjectableReference(dummyBean.getInjectionPoints().iterator().next(), null) != null;
+ assert childActivity.getInjectableReference(dummyBean.getInjectionPoints().iterator().next(), new MockCreationalContext<Cow>()) != null;
}
@Test
Added: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/ShoeFactory.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/ShoeFactory.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/ShoeFactory.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -0,0 +1,7 @@
+package org.jboss.jsr299.tck.tests.implementation.simple.lifecycle;
+
+
+class ShoeFactory
+{
+
+}
Property changes on: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/ShoeFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/SimpleBeanLifecycleTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/SimpleBeanLifecycleTest.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/implementation/simple/lifecycle/SimpleBeanLifecycleTest.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -82,22 +82,20 @@
})
public void testCreateReturnsSameBeanPushed() throws Exception
{
- final CreationalContext<Farm> farmCreationalContext = new MockCreationalContext<Farm>();
- final Contextual<Farm> farmBean = getBeans(Farm.class).iterator().next();
- MockCreationalContext.setLastBeanPushed(null);
- MockCreationalContext.setPushCalled(false);
+ final CreationalContext<ShoeFactory> creationalContext = new MockCreationalContext<ShoeFactory>();
+ final Contextual<ShoeFactory> bean = getBeans(ShoeFactory.class).iterator().next();
+ MockCreationalContext.reset();
new RunInDependentContext()
{
@Override
protected void execute() throws Exception
{
- Farm farmInstance = getCurrentManager().getContext(Dependent.class).get(farmBean, farmCreationalContext);
+ ShoeFactory instance = getCurrentManager().getContext(Dependent.class).get(bean, creationalContext);
if (MockCreationalContext.isPushCalled())
{
- assert farmInstance.equals(MockCreationalContext.getLastBeanPushed());
+ assert instance.equals(MockCreationalContext.getLastBeanPushed());
}
- assert farmInstance.farmOffice != null : "FarmOffice should be injected by Contextual.create()";
}
}.run();
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/dependency/resolution/DependencyResolutionTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/dependency/resolution/DependencyResolutionTest.java 2009-06-08 17:25:30 UTC (rev 2788)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/dependency/resolution/DependencyResolutionTest.java 2009-06-08 18:05:57 UTC (rev 2789)
@@ -12,12 +12,12 @@
import javax.enterprise.inject.UnsatisfiedResolutionException;
import javax.enterprise.inject.spi.Bean;
import javax.enterprise.inject.spi.InjectionPoint;
-import javax.enterprise.inject.spi.Bean;
import org.hibernate.tck.annotations.SpecAssertion;
import org.hibernate.tck.annotations.SpecAssertions;
import org.jboss.jsr299.tck.AbstractJSR299Test;
import org.jboss.jsr299.tck.ForwardingBean;
+import org.jboss.jsr299.tck.impl.MockCreationalContext;
import org.jboss.jsr299.tck.literals.CurrentLiteral;
import org.jboss.testharness.impl.packaging.Artifact;
import org.testng.annotations.Test;
@@ -91,7 +91,7 @@
bindings.add(new CurrentLiteral());
MockInjectionPoint injectionPoint = new MockInjectionPoint(vanillaBean, Vanilla.class, injectedField, bindings);
- assert getCurrentManager().getInjectableReference(injectionPoint, null) instanceof Vanilla;
+ assert getCurrentManager().getInjectableReference(injectionPoint, new MockCreationalContext<Object>()) instanceof Vanilla;
}
@Test(expectedExceptions = UnsatisfiedResolutionException.class)
15 years, 7 months
[webbeans-commits] Webbeans SVN: r2788 - in tck/trunk/impl/src/main/java/org/jboss/jsr299/tck: tests/event and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: dallen6
Date: 2009-06-08 13:25:30 -0400 (Mon, 08 Jun 2009)
New Revision: 2788
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/AbstractJSR299Test.java
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java
Log:
Some minor test modifications/improvements
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/AbstractJSR299Test.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/AbstractJSR299Test.java 2009-06-08 16:26:44 UTC (rev 2787)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/AbstractJSR299Test.java 2009-06-08 17:25:30 UTC (rev 2788)
@@ -145,31 +145,26 @@
return annotationTypeList.size() == 0;
}
- @Deprecated
public <T> Set<Bean<T>> getBeans(Class<T> type, Annotation... bindings)
{
return (Set<Bean<T>>)(Set)getCurrentManager().getBeans(type, bindings);
}
- @Deprecated
public <T> Set<Bean<T>> getBeans(TypeLiteral<T> type, Annotation... bindings)
{
return (Set<Bean<T>>)(Set)getCurrentManager().getBeans(type.getType(), bindings);
}
- @Deprecated
public <T> T getInstanceByType(Class<T> beanType, Annotation... bindings)
{
return OldSPIBridge.getInstanceByType(getCurrentManager(), beanType, bindings);
}
- @Deprecated
public <T> T getInstanceByType(TypeLiteral<T> beanType, Annotation... bindings)
{
return OldSPIBridge.getInstanceByType(getCurrentManager(), beanType, bindings);
}
- @Deprecated
public Object getInstanceByName(String name)
{
return OldSPIBridge.getInstanceByName(getCurrentManager(), name);
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java 2009-06-08 16:26:44 UTC (rev 2787)
+++ tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/EventTest.java 2009-06-08 17:25:30 UTC (rev 2788)
@@ -18,7 +18,6 @@
import org.hibernate.tck.annotations.SpecAssertion;
import org.hibernate.tck.annotations.SpecAssertions;
import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.jsr299.tck.impl.OldSPIBridge;
import org.jboss.jsr299.tck.literals.AnyBinding;
import org.jboss.testharness.impl.packaging.Artifact;
import org.jboss.testharness.impl.packaging.jsr299.BeansXml;
@@ -360,7 +359,7 @@
@Override
protected void execute() throws Exception
{
- RecluseSpider bean = OldSPIBridge.getInstanceByType(getCurrentManager(),RecluseSpider.class);
+ RecluseSpider bean = getInstanceByType(RecluseSpider.class);
assert bean != null;
// Must invoke a method to really create the instance
assert !bean.isNotified();
@@ -503,7 +502,7 @@
@Override
protected void execute() throws Exception
{
- SweeWaxbill bean = OldSPIBridge.getInstanceByType(getCurrentManager(), SweeWaxbill.class);
+ SweeWaxbill bean = getInstanceByType(SweeWaxbill.class);
bean.methodThatFiresEvent();
}
@@ -520,7 +519,7 @@
@Override
protected void execute() throws Exception
{
- SweeWaxbill bean = OldSPIBridge.getInstanceByType(getCurrentManager(), SweeWaxbill.class);
+ SweeWaxbill bean = getInstanceByType(SweeWaxbill.class);
bean.methodThatRegistersObserver();
}
@@ -537,7 +536,7 @@
@Override
protected void execute() throws Exception
{
- OwlFinch_Broken bean = OldSPIBridge.getInstanceByType(getCurrentManager(), OwlFinch_Broken.class);
+ OwlFinch_Broken bean = getInstanceByType(OwlFinch_Broken.class);
bean.methodThatFiresEvent();
}
@@ -554,7 +553,7 @@
@Override
protected void execute() throws Exception
{
- OwlFinch_Broken bean = OldSPIBridge.getInstanceByType(getCurrentManager(), OwlFinch_Broken.class);
+ OwlFinch_Broken bean = getInstanceByType(OwlFinch_Broken.class);
bean.methodThatRegistersObserver();
}
@@ -565,114 +564,64 @@
@SpecAssertions( { @SpecAssertion(section = "7.6", id = "n") } )
public void testImplicitEventBeanMatchesAPITypeOfInectionPoint() throws Exception
{
- new RunInDependentContext()
- {
+ // Retrieve the implicit event bean from the manager only by
+ // its API type
+ Set<?> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>() {}, new AnyBinding());
+ assert !eventBeans.isEmpty();
+ }
- @Override
- protected void execute() throws Exception
- {
- // Retrieve the implicit event bean from the manager only by
- // its API type
- Set<?> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>() {}, new AnyBinding());
- assert !eventBeans.isEmpty();
- }
-
- }.run();
+ @Test(groups = { "events" })
+ public void testImplicitEventHasAnyBinding()
+ {
+ Set<Bean<Event<AnEventType>>> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>() {}, new AnyBinding());
+ assert !eventBeans.isEmpty();
+ assert eventBeans.iterator().next().getBindings().contains(new AnyBinding());
}
@Test(groups = { "events" })
@SpecAssertions( { @SpecAssertion(section = "7.6", id = "n") } )
public void testImplicitEventBeanMatchesBindingAnnotationsOfInjectionPoint() throws Exception
{
- new RunInDependentContext()
- {
-
- @Override
- protected void execute() throws Exception
- {
- // Retrieve the implicit event bean from the manager
- // by its binding types (uses OrangeCheekedWaxbill)
- Set<?> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>() {}, new AnyBinding(), new TameAnnotationLiteral(), new RoleBinding("Admin"));
- assert !eventBeans.isEmpty();
- }
-
- }.run();
+ Set<?> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>(){}, new AnyBinding(), new TameAnnotationLiteral(), new RoleBinding("Admin"));
+ assert !eventBeans.isEmpty();
}
@Test(groups = { "events" })
@SpecAssertion(section = "7.6", id = "o")
public void testImplicitEventBeanHasStandardDeploymentType() throws Exception
{
- new RunInDependentContext()
- {
-
- @Override
- protected void execute() throws Exception
- {
- // Retrieve the implicit event bean from the manager
- // only by its API type (uses BlueFacedParrotFinch)
- Set<?> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>() {}, new AnyBinding());
- assert eventBeans.size() == 1;
- Bean<?> eventBean = (Bean<?>) eventBeans.iterator().next();
- assert eventBean.getDeploymentType().equals(Standard.class);
- }
-
- }.run();
+ Set<?> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>() {}, new AnyBinding());
+ assert eventBeans.size() == 1;
+ Bean<?> eventBean = (Bean<?>) eventBeans.iterator().next();
+ assert eventBean.getDeploymentType().equals(Standard.class);
}
@Test(groups = { "events" })
@SpecAssertion(section = "7.6", id = "p")
public void testImplicitEventBeanHasDependentScope() throws Exception
{
- new RunInDependentContext()
- {
- @Override
- protected void execute() throws Exception
- {
- // Retrieve the implicit event bean from the manager only
- // by its API type (uses BlueFacedParrotFinch)
- Set<?> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>() {}, new AnyBinding());
- assert eventBeans.size() == 1;
- Bean<?> eventBean = (Bean<?>) eventBeans.iterator().next();
- assert eventBean.getScopeType().equals(Dependent.class);
- }
- }.run();
+ Set<?> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>() {}, new AnyBinding());
+ assert eventBeans.size() == 1;
+ Bean<?> eventBean = (Bean<?>) eventBeans.iterator().next();
+ assert eventBean.getScopeType().equals(Dependent.class);
}
@Test(groups = { "events" })
@SpecAssertion(section = "7.6", id = "q")
public void testImplicitEventBeanHasNoName() throws Exception
{
- new RunInDependentContext()
- {
- @Override
- protected void execute() throws Exception
- {
- // Retrieve the implicit event bean from the manager only
- // by its API type (uses BlueFacedParrotFinch)
- Set<?> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>() {}, new AnyBinding());
- assert eventBeans.size() == 1;
- Bean<?> eventBean = (Bean<?>) eventBeans.iterator().next();
- assert eventBean.getName() == null;
- }
- }.run();
+ Set<?> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>() {}, new AnyBinding());
+ assert eventBeans.size() == 1;
+ Bean<?> eventBean = (Bean<?>) eventBeans.iterator().next();
+ assert eventBean.getName() == null;
}
@Test(groups = { "events" })
@SpecAssertions( { @SpecAssertion(section = "7.6", id = "a"), @SpecAssertion(section = "7.6", id = "r") } )
public void testImplicitEventBeanProvidedByContainer() throws Exception
{
- new RunInDependentContext()
- {
- @Override
- protected void execute() throws Exception
- {
- // Retrieve the implicit event bean from the manager only
- // by its API type (uses BlueFacedParrotFinch)
- Set<?> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>() {}, new AnyBinding());
- assert eventBeans.size() == 1;
- }
- }.run();
+ Set<?> eventBeans = getBeans(new TypeLiteral<Event<AnEventType>>() {}, new AnyBinding());
+ assert eventBeans.size() == 1;
}
// TODO The manager related tests require intercepting all calls
15 years, 7 months
[webbeans-commits] Webbeans SVN: r2787 - in ri/trunk/impl/src/main/java/org/jboss/webbeans: injection/resolution and 1 other directory.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-06-08 12:26:44 -0400 (Mon, 08 Jun 2009)
New Revision: 2787
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/injection/resolution/ResolvableAnnotatedItem.java
ri/trunk/impl/src/main/java/org/jboss/webbeans/injection/resolution/Resolver.java
Log:
More tidying
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-06-08 15:29:47 UTC (rev 2786)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/ManagerImpl.java 2009-06-08 16:26:44 UTC (rev 2787)
@@ -457,46 +457,11 @@
public Set<Bean<?>> getBeans(Type beanType, Annotation... bindings)
{
- return (Set) resolveByType(ResolvableAnnotatedClass.of(beanType, bindings), bindings);
+ return getBeans(ResolvableAnnotatedClass.of(beanType, bindings), bindings);
}
public Set<Bean<?>> getBeans(AnnotatedItem<?, ?> element, Annotation... bindings)
{
- return (Set) resolveByType(element, bindings);
- }
-
- public Set<Bean<?>> getBeans(InjectionPoint injectionPoint)
- {
- boolean registerInjectionPoint = !injectionPoint.getType().equals(InjectionPoint.class);
- try
- {
- if (registerInjectionPoint)
- {
- currentInjectionPoint.get().push(injectionPoint);
- }
- // TODO Do this properly
- return getBeans(ResolvableAnnotatedClass.of(injectionPoint.getType(), injectionPoint.getBindings().toArray(new Annotation[0])));
- }
- finally
- {
- if (registerInjectionPoint)
- {
- currentInjectionPoint.get().pop();
- }
- }
- }
-
- /**
- * Check the resolution request is valid, and then ask the resolver to
- * perform the resolution. For internal use.
- *
- * @param element The item to resolve
- * @param bindings The binding types to match
- * @return The set of matching beans
- */
- @Deprecated
- public <T> Set<Bean<T>> resolveByType(AnnotatedItem<T, ?> element, Annotation... bindings)
- {
for (Annotation annotation : element.getAnnotationsAsSet())
{
if (!getServices().get(MetaDataCache.class).getBindingTypeModel(annotation.annotationType()).isValid())
@@ -522,6 +487,27 @@
return resolver.get(element);
}
+ public Set<Bean<?>> getBeans(InjectionPoint injectionPoint)
+ {
+ boolean registerInjectionPoint = !injectionPoint.getType().equals(InjectionPoint.class);
+ try
+ {
+ if (registerInjectionPoint)
+ {
+ currentInjectionPoint.get().push(injectionPoint);
+ }
+ // TODO Do this properly
+ return getBeans(ResolvableAnnotatedClass.of(injectionPoint.getType(), injectionPoint.getBindings().toArray(new Annotation[0])));
+ }
+ finally
+ {
+ if (registerInjectionPoint)
+ {
+ currentInjectionPoint.get().pop();
+ }
+ }
+ }
+
/**
* Wraps a collection of beans into a thread safe list. Since this overwrites
* any existing list of beans in the manager, this should only be done on
@@ -780,7 +766,7 @@
currentInjectionPoint.get().push(injectionPoint);
}
AnnotatedItem<?, ?> element = ResolvableAnnotatedClass.of(injectionPoint.getType(), injectionPoint.getBindings().toArray(new Annotation[0]));
- Bean<?> resolvedBean = getBeanByType(element, element.getBindingsAsArray());
+ Bean<?> resolvedBean = getBean(element, element.getBindingsAsArray());
if (getServices().get(MetaDataCache.class).getScopeModel(resolvedBean.getScopeType()).isNormal() && !Proxies.isTypeProxyable(injectionPoint.getType()))
{
throw new UnproxyableResolutionException("Attempting to inject an unproxyable normal scoped bean " + resolvedBean + " into " + injectionPoint);
@@ -881,13 +867,12 @@
@Deprecated
public <T> T getInstanceByType(AnnotatedItem<T, ?> element, Annotation... bindings)
{
- return getInstance(getBeanByType(element, bindings));
+ return getInstance(getBean(element, bindings));
}
- @Deprecated
- public <T> Bean<T> getBeanByType(AnnotatedItem<T, ?> element, Annotation... bindings)
+ private <T> Bean<T> getBean(AnnotatedItem<T, ?> element, Annotation... bindings)
{
- Set<Bean<T>> beans = resolveByType(element, bindings);
+ Set<Bean<?>> beans = getBeans(element, bindings);
if (beans.size() == 0)
{
throw new UnsatisfiedResolutionException(element + "Unable to resolve any Web Beans");
@@ -896,7 +881,7 @@
{
throw new AmbiguousResolutionException(element + "Resolved multiple Web Beans");
}
- Bean<T> bean = beans.iterator().next();
+ Bean<T> bean = (Bean<T>) beans.iterator().next();
boolean normalScoped = getServices().get(MetaDataCache.class).getScopeModel(bean.getScopeType()).isNormal();
if (normalScoped && !Beans.isBeanProxyable(bean))
{
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/injection/resolution/ResolvableAnnotatedItem.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/injection/resolution/ResolvableAnnotatedItem.java 2009-06-08 15:29:47 UTC (rev 2786)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/injection/resolution/ResolvableAnnotatedItem.java 2009-06-08 16:26:44 UTC (rev 2787)
@@ -26,6 +26,18 @@
abstract class ResolvableAnnotatedItem<T, S> extends ForwardingAnnotatedItem<T, S>
{
+ public static <T1, S1> ResolvableAnnotatedItem<T1, S1> of(final AnnotatedItem<T1, S1> delegate)
+ {
+ return new ResolvableAnnotatedItem<T1, S1>()
+ {
+ @Override
+ protected AnnotatedItem<T1, S1> delegate()
+ {
+ return delegate;
+ }
+ };
+ }
+
private static final long serialVersionUID = 1L;
@Override
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/injection/resolution/Resolver.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/injection/resolution/Resolver.java 2009-06-08 15:29:47 UTC (rev 2786)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/injection/resolution/Resolver.java 2009-06-08 16:26:44 UTC (rev 2787)
@@ -48,8 +48,6 @@
private static final long serialVersionUID = 1L;
private static final Class<AnnotatedItem<Object, Object>> ANNOTATED_ITEM_GENERIFIED_WITH_OBJECT_OBJECT = new TypeLiteral<AnnotatedItem<Object, Object>>(){}.getRawType();
- private static final Class<Set<Bean<Object>>> BEAN_SET_GENERIFIED_WITH_OBJECT = new TypeLiteral<Set<Bean<Object>>>(){}.getRawType();
- private static final Class<Set<Bean<?>>> BEAN_SET_GENERIFIED_WITH_WILDCARD = new TypeLiteral<Set<Bean<?>>>(){}.getRawType();
// The resolved injection points
private ConcurrentCache<ResolvableAnnotatedItem<?, ?>, Set<Bean<?>>> resolvedInjectionPoints;
@@ -94,12 +92,12 @@
* @param element The injection point to add
* @return A set of matching beans for the injection point
*/
- private <T, S> Set<Bean<T>> registerInjectionPoint(final ResolvableAnnotatedItem<T, S> element)
+ private Set<Bean<?>> registerInjectionPoint(final ResolvableAnnotatedItem<?, ?> element)
{
- Callable<Set<Bean<T>>> callable = new Callable<Set<Bean<T>>>()
+ Callable<Set<Bean<?>>> callable = new Callable<Set<Bean<?>>>()
{
- public Set<Bean<T>> call() throws Exception
+ public Set<Bean<?>> call() throws Exception
{
return retainHighestPrecedenceBeans(getMatchingBeans(element, manager.getBeans()), manager.getEnabledDeploymentTypes());
}
@@ -146,20 +144,9 @@
* @param key The resolving criteria
* @return An unmodifiable set of matching beans
*/
- public <T, S> Set<Bean<T>> get(final AnnotatedItem<T, S> key)
+ public Set<Bean<?>> get(final AnnotatedItem<?, ?> key)
{
- final AnnotatedItem<T, S> transformedElement = transformElement(key);
-
- Set<Bean<T>> beans = registerInjectionPoint(new ResolvableAnnotatedItem<T, S>()
- {
-
- @Override
- public AnnotatedItem<T, S> delegate()
- {
- return transformedElement;
- }
-
- });
+ Set<Bean<?>> beans = registerInjectionPoint(ResolvableAnnotatedItem.of(transformElement(key)));
return Collections.unmodifiableSet(beans);
}
@@ -178,7 +165,7 @@
* @param name The name to match
* @return The set of matching beans
*/
- public Set<Bean<? extends Object>> get(final String name)
+ public Set<Bean<?>> get(final String name)
{
return resolvedNames.putIfAbsent(name, new Callable<Set<Bean<?>>>()
{
@@ -196,12 +183,6 @@
}
return retainHighestPrecedenceBeans(beans, manager.getEnabledDeploymentTypes());
}
-
- // Helper method to deal with dynamic casts being needed
- private Set<Bean<?>> retainHighestPrecedenceBeans(Set<Bean<?>> beans, List<Class<? extends Annotation>> enabledDeploymentTypes)
- {
- return BEAN_SET_GENERIFIED_WITH_WILDCARD.cast(Resolver.retainHighestPrecedenceBeans(BEAN_SET_GENERIFIED_WITH_OBJECT.cast(beans), enabledDeploymentTypes));
- }
});
}
@@ -216,7 +197,7 @@
* @param enabledDeploymentTypes The enabled deployment types
* @return The filtered beans
*/
- private static <T> Set<Bean<T>> retainHighestPrecedenceBeans(Set<Bean<T>> beans, List<Class<? extends Annotation>> enabledDeploymentTypes)
+ private static Set<Bean<?>> retainHighestPrecedenceBeans(Set<Bean<?>> beans, List<Class<? extends Annotation>> enabledDeploymentTypes)
{
if (beans.size() > 0)
{
@@ -226,12 +207,12 @@
possibleDeploymentTypes.add(bean.getDeploymentType());
}
possibleDeploymentTypes.retainAll(enabledDeploymentTypes);
- Set<Bean<T>> trimmed = new HashSet<Bean<T>>();
+ Set<Bean<?>> trimmed = new HashSet<Bean<?>>();
if (possibleDeploymentTypes.size() > 0)
{
Class<? extends Annotation> highestPrecedencePossibleDeploymentType = possibleDeploymentTypes.last();
- for (Bean<T> bean : beans)
+ for (Bean<?> bean : beans)
{
if (bean.getDeploymentType().equals(highestPrecedencePossibleDeploymentType))
{
@@ -255,16 +236,14 @@
* @param beans The beans to filter
* @return A set of filtered beans
*/
- private <T> Set<Bean<T>> getMatchingBeans(AnnotatedItem<T, ?> element, List<Bean<?>> beans)
+ private Set<Bean<?>> getMatchingBeans(AnnotatedItem<?, ?> element, List<Bean<?>> beans)
{
- Set<Bean<T>> resolvedBeans = new HashSet<Bean<T>>();
+ Set<Bean<?>> resolvedBeans = new HashSet<Bean<?>>();
for (Bean<?> bean : beans)
{
if (element.isAssignableFrom(bean.getTypes()) && containsAllBindings(element, bean.getBindings()))
{
- @SuppressWarnings("unchecked")
- Bean<T> b = (Bean<T>) bean;
- resolvedBeans.add(b);
+ resolvedBeans.add(bean);
}
}
return resolvedBeans;
15 years, 7 months