Skip to content

Bindings

Marc Magon edited this page Feb 17, 2017 · 1 revision

JWebSwing uses Guice 4.1 for its injection and site control.

All configuration required is placed inside the framework itself, and/or any components add-ons. By default everything is request scoped.

Some of the components configure custom servlets and addresses for their functionality. An example would be the file receiver for the file upload component, You can view the guide on how to perform these tasks.

The root class GuiceContext enables Just-In-Time development, and allows access to the global injector via GuiceContext.inject()

The Guice Injection Support Library and source code is available at https://github.com/GedMarc/GuiceInjection.
It is added on as a separate archive, as such you can make any changes (hopefully with a pull request) and simply replace the archive being used.

Classes of Interest are

  • GuiceContext
  • GuiceDefaultBinder
  • GuiceDefaultSiteBinder

Environment Prep

My First Website

  • Basic Structure
  • Code Explanation
  • Run Everywhere

Bindings

  • The Default Binder
  • The Site Binder
  • Quick User Authentication Filter

Generating Outputs

Persistable Components

  • Serialize to JSON
  • Deserialize from JSON

Create My First Plugin

  • The Page Configurator
  • HTML Only
  • HTML with JS
  • HTML with JS and CSS
  • HTML with Angular, JS, and CSS
  • HTML with All, and a custom servlet
  • A Complete Plugin
Clone this wiki locally