O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

ITB2015 - ColdBox 4 MVC Modular Architecture

498 visualizações

Publicada em

In this session we will introduce you to the modular architecture concepts behind ColdBox MVC and how you can build sustainable and flexible web applications via modularity.

Publicada em: Tecnologia
  • Seja o primeiro a comentar

  • Seja a primeira pessoa a gostar disto

ITB2015 - ColdBox 4 MVC Modular Architecture

  1. 1. ColdBox 4 Modularity Modules are your friend
  2. 2. ColdBox 4 and Modules ● What is a package? ○ box.json ● What is a module? ○ box.json ○ ModuleConfig.cfc
  3. 3. ColdBox Module Interactions ● preModuleLoad() ● postModuleLoad() ● preModuleUnload() ● postModuleUnload()
  4. 4. Module conventions ● ModuleConfig.cfc ■ onLoad() ■ onUnLoad() ○ models/ ○ handlers/ ○ views/ ○ CF Mapping
  5. 5. Environment overrides ● Follows envs defined in /config/ColdBox.cfc ● Called automatically for you
  6. 6. Module Routing SES entry point this.entryPoint = "/mymodule"; Module Routes routes = [ {pattern="/", handler="blog", action="showPosts"}, {pattern="/:year-numeric/:month-numeric?", handler="blog", action="showPosts"} {pattern="/comment/:action", handler="comments"} ]
  7. 7. Module Settings getModuleSettings( ‘moduleName’ ) Returns the structure of module settings by the module name. getModuleConfig( ‘moduleName’ ) Returns the module's configuration structure
  8. 8. Module Dependencies ModuleConfig.cfc this.dependencies = [ "javaloader" ];
  9. 9. Module Inception
  10. 10. Down with Plugins! ● Storages ● MessageBox ● AntiSamy ● MailServies ● Validation ● ColdBox Debugger ● JavaLoader ● i18n ● ORM ● Commons ● ioc ● Feeds ● Soap ● Security
  11. 11. CommandBox Tooling ● forgebox search ● forgebox show ● install ● update ● outdated
  12. 12. Reading http://coldbox.ortusbooks.com/ Buy our books at the table!

×