[weld-commits] Weld SVN: r5270 - doc/trunk/reference/en-US.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Fri Dec 11 03:42:47 EST 2009


Author: nickarls
Date: 2009-12-11 03:42:46 -0500 (Fri, 11 Dec 2009)
New Revision: 5270

Modified:
   doc/trunk/reference/en-US/extend.xml
   doc/trunk/reference/en-US/injection.xml
Log:
Minor. API updates, var typo in example.

Modified: doc/trunk/reference/en-US/extend.xml
===================================================================
--- doc/trunk/reference/en-US/extend.xml	2009-12-11 08:16:06 UTC (rev 5269)
+++ doc/trunk/reference/en-US/extend.xml	2009-12-11 08:42:46 UTC (rev 5270)
@@ -182,19 +182,18 @@
          observers and contexts programmatically.
       </para>
     
-<programlisting role="JAVA"><![CDATA[public interface Manager {
+<programlisting role="JAVA"><![CDATA[public interface BeanManager {
    public Object getReference(Bean<?> bean, Type beanType, CreationalContext<?> ctx);
    public Object getInjectableReference(InjectionPoint ij, CreationalContext<?> ctx);
    public <T> CreationalContext<T> createCreationalContext(Contextual<T> contextual);
-   public Set<Bean<?>> getBeans(Type beanType, Annotation... bindings);
+   public Set<Bean<?>> getBeans(Type beanType, Annotation... qualifiers);
    public Set<Bean<?>> getBeans(String name);
-   public <X> Bean<? extends X> getMostSpecializedBean(Bean<X> bean);
    public Bean<?> getPassivationCapableBean(String id);
    public <X> Bean<? extends X> resolve(Set<Bean<? extends X>> beans);
    public void validate(InjectionPoint injectionPoint);
-   public void fireEvent(Object event, Annotation... bindings);
-   public <T> Set<ObserverMethod<?, T>> resolveObserverMethods(T event, Annotation... bindings);
-   public List<Decorator<?>> resolveDecorators(Set<Type> types, Annotation... bindings);
+   public void fireEvent(Object event, Annotation... qualifiers);
+   public <T> Set<ObserverMethod<? super T>> resolveObserverMethods(T event, Annotation... qualifiers);
+   public List<Decorator<?>> resolveDecorators(Set<Type> types, Annotation... qualifiers);
    public List<Interceptor<?>> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings);
    public boolean isScope(Class<? extends Annotation> annotationType);
    public boolean isNormalScope(Class<? extends Annotation> annotationType);
@@ -255,10 +254,10 @@
 InjectionTarget<SomeFrameworkComponent> it = beanManager.createInjectionTarget(type);
 
 //each instance needs its own CDI CreationalContext
-CreationalContext instanceContext = beanManager.createCreationalContext(null);
+CreationalContext ctx = beanManager.createCreationalContext(null);
 
 //instantiate the framework component and inject its dependencies
-SomeFrameworkComponent instance = it.produce(instanceContext);  //call the constructor
+SomeFrameworkComponent instance = it.produce(ctx);  //call the constructor
 it.inject(instance, ctx);  //call initializer methods and perform field injection
 it.postConstruct(instance);  //call the @PostConstruct method
 

Modified: doc/trunk/reference/en-US/injection.xml
===================================================================
--- doc/trunk/reference/en-US/injection.xml	2009-12-11 08:16:06 UTC (rev 5269)
+++ doc/trunk/reference/en-US/injection.xml	2009-12-11 08:42:46 UTC (rev 5270)
@@ -744,7 +744,7 @@
 
    @Produces @HttpParam("")
    String getParamValue(ServletRequest request, InjectionPoint ip) {
-      return request.getParameter(ip.getAnnotation(HttpParam.class).value());
+      return request.getParameter(ip.getAnnotated().getAnnotation(HttpParam.class).value());
    }
 
 }]]></programlisting>
@@ -756,11 +756,13 @@
   interface:</para>
 
 <programlisting role="JAVA"><![CDATA[public interface InjectionPoint { 
-   public Object getInstance(); 
-   public Bean<?> getBean(); 
-   public Member getMember(): 
-   public <T extends Annotation> T getAnnotation(Class<T> annotation); 
-   public Set<T extends Annotation> getAnnotations(); 
+   public Type getType();
+   public Set<Annotation> getQualifiers();
+   public Bean<?> getBean();
+   public Member getMember();
+   public Annotated getAnnotated();
+   public boolean isDelegate();
+   public boolean isTransient();
 }]]></programlisting>
 
 </section>



More information about the weld-commits mailing list