public class ReflectionBeanResolver extends Object implements BeanResolver
The class passed as an argument must expose a public, no-arg constructor,
or this resolver will fail with a SearchException
.
If the class passed as an argument contains a method annotated
with @Factory
, the class will be considered as a factory
and the returned bean will be fetched from this factory method instead.
Constructor and Description |
---|
ReflectionBeanResolver() |
Modifier and Type | Method and Description |
---|---|
<T> T |
resolve(Class<?> classOrFactoryClass,
Class<T> expectedClass) |
void |
stop()
Stop phase notification
|
Copyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.