# Legato.Beans.BeanFactory

Summary

Legato.Beans.BeanFactory |
Functions |
initialize | Creates a bean factory with given bean definitions.
getBean | Retrieves bean instance for the given name.
putBean | Puts bean instance to the bean factory.

### Functions

### initialize

> initialize : function( | beanDefinitions | )

Creates a bean factory with given bean definitions.

#### Parameters

beanDefinitions | {Object} bean definitions.

### getBean

> getBean : function( | name | )

Retrieves bean instance for the given name.

#### Parameters

name | {String} name of the bean.

### putBean

> putBean : function( | name,
> | instance | )

Puts bean instance to the bean factory.

#### Parameters

name | {String} name of the bean. instance - bean to be added to the bean factory.

> initialize : function( | beanDefinitions | )

Creates a bean factory with given bean definitions.

> getBean : function( | name | )

Retrieves bean instance for the given name.

> putBean : function( | name,
> | instance | )

Puts bean instance to the bean factory.