# Legato.BootLoader

The Legato BootLoader Class gives you the possibility to configure and load Legato without defining the body onload Event.

#### You can specify the following js variables to use this class

- legatoBootLoader (must be set to true to enable the bootloader)
- legatoBootLoaderConfigUrl (define if not config.xml)
- legatoBootLoaderOnCreate (callBack method after BeanFactory has been created but did not loaded the config yet)
- legatoBootLoaderOnConfigured (callBack method after BeanFactory has been fully loaded)
- legatoBootLoaderOnDestroy (callBack method before BeanFactory destroys itself and the current map)

Please be adviced that you must define them before including this class.

Inherits from: | Legato.Control

Summary

Legato.BootLoader | The Legato BootLoader Class gives you the possibility to configure and load Legato without defining the body onload Event.
Properties |
configUrl | {String} the default configUrl for Legato
onCreateCallback | {Function} a configurable callback method which will been executed when the Legato BeanFactory has been created but did not load the config yet.
onConfiguredCallback | {Function} a configurable callback method which will been executed when the Legato BeanFactory has loaded the configuration.
onDestroyCallback | {Function} a configurable callback method which will been executed when before the BeanFactory will destroy all objects and the current map.
beanFactory | {Legato.Beans.BeanFactory}
beanFactory | {OpenLayers.Map}
Functions |
initialize | Basic ctor
initialize | Basic ctor
unload | Executed when the DOM unloads

### Properties

### configUrl

{String} the default configUrl for Legato

### onCreateCallback

{Function} a configurable callback method which will been executed when the Legato BeanFactory has been created but did not load the config yet.

### onConfiguredCallback

{Function} a configurable callback method which will been executed when the Legato BeanFactory has loaded the configuration.

### onDestroyCallback

{Function} a configurable callback method which will been executed when before the BeanFactory will destroy all objects and the current map.

### beanFactory

{Legato.Beans.BeanFactory}

### beanFactory

{OpenLayers.Map}

### Functions

### initialize

> initialize : function( | options | )

Basic ctor

#### Parameters

options | {Object} A Hashmap containing option parameters for this control (currently not used)

### initialize

Basic ctor

#### Parameters

options | {Object} A Hashmap containing option parameters for this control (currently not used)

### unload

> unload: function()

Executed when the DOM unloads

> initialize : function( | options | )

Basic ctor

> unload: function()

Executed when the DOM unloads
Abstract base class for all Legato control classes