Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.client.container
Interface SyncBeanManagerSetup

All Known Implementing Classes:
SyncBeanManagerImpl

public interface SyncBeanManagerSetup

Author:
Mike Brock

Method Summary
 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.
 

Method Detail

addBean

void addBean(Class<Object> type,
             Class<?> beanType,
             BeanProvider<Object> callback,
             Object instance,
             Annotation[] qualifiers)
Register a bean with the manager. This is usually called by the generated code to advertise the bean. Adding beans at runtime will make beans available for lookup through the BeanManager, but will not in any way alter the wiring scenario of auto-discovered beans at runtime.

Parameters:
type - the bean type
beanType - the actual type of the bean
callback - the creational callback used to construct the bean
instance - the instance reference
qualifiers - any qualifiers

addBean

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. This is usually called by the generated code to advertise the bean. Adding beans at runtime will make beans available for lookup through the BeanManager, but will not in any way alter the wiring scenario of auto-discovered beans at runtime.

Parameters:
type - the bean type
beanType - the actual type of the bean
callback - the creational callback used to construct the bean
instance - the instance reference
qualifiers - any qualifiers
name - the name of the bean

addBean

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. This is usually called by the generated code to advertise the bean. Adding beans at runtime will make beans available for lookup through the BeanManager, but will not in any way alter the wiring scenario of auto-discovered beans at runtime.

Parameters:
type - the bean type
beanType - the actual type of the bean
callback - the creational callback used to construct the bean
instance - the instance reference
qualifiers - any qualifiers
name - the name of the bean
concreteType - true if bean should be treated as concrete (ie. not an interface or abstract type).
beanActivator - the bean activator type to use.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.