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) |
public <T> T resolve(Class<?> classOrFactoryClass, Class<T> expectedClass)
resolve in interface BeanResolverCopyright © 2006–2017 Hibernate. All rights reserved.