Skip to content

Commit

Permalink
CDI-672 Remove BeanAttributesConfigurator#read methods. (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotn authored and antoinesd committed Jan 9, 2017
1 parent 07dcb22 commit ad34851
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
Expand Up @@ -37,30 +37,6 @@
* @since 2.0
*/
public interface BeanAttributesConfigurator<T> {
/**
* Read the information from the given {@link AnnotatedType}. All relevant information is overwritten.
*
* @param type AnnotatedType to read information from
* @return self
*/
<U extends T> BeanAttributesConfigurator<U> read(AnnotatedType<U> type);

/**
* Read the information from the given {@link AnnotatedMember} (field or method).
* All relevant information is overwritten.
*
* @param member AnnotatedMember to read information from
* @return self
*/
<U extends T> BeanAttributesConfigurator<U> read(AnnotatedMember<U> member);

/**
* Read the information from the given bean attributes. All relevant information is overwritten.
*
* @param beanAttributes beanAttributes to read information from
* @return self
*/
BeanAttributesConfigurator<T> read(BeanAttributes<?> beanAttributes);

/**
*
Expand Down
4 changes: 2 additions & 2 deletions spec/src/main/asciidoc/core/spi.asciidoc
Expand Up @@ -1469,7 +1469,7 @@ If any `ProcessBeanAttributes` method is called outside of the observer method i

CDI 2.0 introduced the `javax.enterprise.inject.spi.configurator.BeanAttributesConfigurator` interface to help configuring a new `BeanAttributes` instance.

`BeanAttributesConfigurator` must be initialized from an `AnnotatedType`, or an existing `BeanAttributes` with one of its `read()` methods.
`BeanAttributesConfigurator` is obtainable during `ProcessBeanAttributes` event and is therefore automatically initilized from existing `BeanAttributes`.

With `BeanAttributesConfigurator` you can perform the following operations :

Expand Down Expand Up @@ -1714,4 +1714,4 @@ public Product createInterceptedProduct(InterceptionFactory<Product> interceptio
}
----

If an injection point of type `InterceptionFactory` and qualifier @Default which is not a parameter of a producer method exists, the container automatically detects the problem and treats it as a definition error.
If an injection point of type `InterceptionFactory` and qualifier @Default which is not a parameter of a producer method exists, the container automatically detects the problem and treats it as a definition error.

0 comments on commit ad34851

Please sign in to comment.