public interface SyncBeanManagerSetup
Modifier and Type | Method and Description |
---|---|
void |
addBean(Class<Object> type,
Class<?> beanType,
BeanProvider<Object> callback,
Object instance,
Annotation[] qualifiers)
Register a bean with the manager.
|
void |
addBean(Class<Object> type,
Class<?> beanType,
BeanProvider<Object> callback,
Object instance,
Annotation[] qualifiers,
String name)
Register a bean with the manager with a name.
|
void |
addBean(Class<Object> type,
Class<?> beanType,
BeanProvider<Object> callback,
Object instance,
Annotation[] qualifiers,
String name,
boolean concreteType,
Class<Object> beanActivatorType)
Register a bean with the manager with a name as well as specifying whether the bean should be
treated a concrete type.
|
void addBean(Class<Object> type, Class<?> beanType, BeanProvider<Object> callback, Object instance, Annotation[] qualifiers)
type
- the bean typebeanType
- the actual type of the beancallback
- the creational callback used to construct the beaninstance
- the instance referencequalifiers
- any qualifiersvoid addBean(Class<Object> type, Class<?> beanType, BeanProvider<Object> callback, Object instance, Annotation[] qualifiers, String name)
type
- the bean typebeanType
- the actual type of the beancallback
- the creational callback used to construct the beaninstance
- the instance referencequalifiers
- any qualifiersname
- the name of the beanvoid addBean(Class<Object> type, Class<?> beanType, BeanProvider<Object> callback, Object instance, Annotation[] qualifiers, String name, boolean concreteType, Class<Object> beanActivatorType)
type
- the bean typebeanType
- the actual type of the beancallback
- the creational callback used to construct the beaninstance
- the instance referencequalifiers
- any qualifiersname
- the name of the beanconcreteType
- true if bean should be treated as concrete (ie. not an interface or abstract type).beanActivator
- the bean activator type to use.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.