public interface BeanReference
Modifier and Type | Method and Description |
---|---|
String |
getName() |
Class<?> |
getType() |
static BeanReference |
of(String name,
Class<?> type)
Create a
BeanReference referencing a bean by its name and type. |
static BeanReference |
ofName(String name)
Create a
BeanReference referencing a bean by its name. |
static BeanReference |
ofType(Class<?> type)
Create a
BeanReference referencing a bean by its type. |
String getName()
null
implies no name reference.Class<?> getType()
null
implies no type reference.static BeanReference ofName(String name)
BeanReference
referencing a bean by its name.
Note: when no dependency injection framework is used, Hibernate Search uses reflection to resolve beans, and in that case "names" are interpreted as fully qualified class names.
name
- The bean name.BeanReference
.static BeanReference ofType(Class<?> type)
BeanReference
referencing a bean by its type.type
- The bean type.BeanReference
.static BeanReference of(String name, Class<?> type)
BeanReference
referencing a bean by its name and type.name
- The bean name.type
- The bean type.BeanReference
.Copyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.