Skip to content

Commit

Permalink
CDI-700 Mention BeanManager#createInstance in spec and correct it's j…
Browse files Browse the repository at this point in the history
…avadoc. (#387)
  • Loading branch information
manovotn authored and antoinesd committed Apr 18, 2017
1 parent fb13948 commit 57ce847
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ public <T> Bean<T> createBean(BeanAttributes<T> attributes, Class<T> beanClass,
* If no qualifier is passed to {@link Instance#select} method, the <tt>@Default</tt> qualifier is assumed.
*
* @return an {@link Instance} object to request beans instances
* @throws IllegalStateException if called during application initialization, before the {@link AfterBeanDiscovery}
* @throws IllegalStateException if called during application initialization, before the {@link AfterDeploymentValidation}
* event is fired.
* @since 2.0
*/
Expand Down
3 changes: 2 additions & 1 deletion spec/src/main/asciidoc/core/spi.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ Note that, an exception is thrown if the following operations are called before

and if the following operations are called before the `AfterDeploymentValidation` event is fired:

* `getReference(Bean, Type, CreationalContext)`
* `createInstance()`,
* `getReference(Bean, Type, CreationalContext)`,
* `getInjectableReference(InjectionPoint, CreationalContext)`.

All other operations of BeanManager may be called at any time during the execution of the application.
Expand Down

0 comments on commit 57ce847

Please sign in to comment.