org.jboss.errai.ioc.client.container
Interface BeanProvider<T>
public interface BeanProvider<T>
A bean provider is used for defining the actual procedure for generating a bean. It is responsible for
instantiating and wiring the bean. This interface, however, is implemented by the Errai code generators directly
and is not meant to be used directly by users.
- Author:
- Mike Brock
getInstance
T getInstance(CreationalContext context)
- Returns a new instance of the bean which this BeanProvider represents. It does not however, return
the bean in a ready-to-use state. Any
InitializationCallback
tasks or ProxyResolver
tasks should
be added to the CreationalContext
by this method, only to be called by the bean manager itself, before
putting all beans created within the context into service.
- Parameters:
context
- the CreationalContext
associated with this bean construction.
- Returns:
- a new instance of the bean.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.