Acciente Company Logo

Parameter Injection Quick Reference II

  1. Parameter Injection Quick Reference II
    1. Controller Resolver
      1. Controller resolver CONSTRUCTOR
      2. Controller resolver METHODS : commonly used parameter types
      3. Controller resolver METHODS : less commonly used parameter types
    2. View Resolver
      1. View resolver CONSTRUCTOR
      2. View resolver METHODS : commonly used parameter types
      3. View resolver METHODS : less commonly used parameter types
    3. Redirect Resolver
      1. Redirect resolver CONSTRUCTOR
      2. Redirect resolver METHODS : commonly used parameter types
      3. Redirect resolver METHODS : less commonly used parameter types
    4. Templating Engine
      1. Templating Engine CONSTRUCTOR

This document is intended as quick reference to determine what parameter values are available for injection in different contexts in Induction.

Controller Resolver

Controller resolver CONSTRUCTOR

Type Package Description
<model_class_name> <any_package> instance of a developer provided model class (must be an application scope model)
Config.ControllerResolver com.acciente.induction.init.config the configuration data that decided this controller resolver be loaded
Config.ControllerMapping com.acciente.induction.init.config the controller mapping configuration data used by the standard ShortURL controller resolver
ClassLoader java.lang access to the main classloader used by Induction to load classes (returns the reloading classloader if it is in use)
ServletConfig javax.servlet access to the ServletConfig object provided by the web container

Controller resolver METHODS : commonly used parameter types

Type Package Description
<model_class_name> <any_package> instance of a developer provided model class, the instance is managed to conform to a user specified lifecycle (also referred to as scope)
Form com.acciente.induction.controller provides access to the HTML form (if any) submitted with this request
HttpServletRequest javax.servlet.http access to the standard servlet request
HttpServletResponse javax.servlet.http access to the standard servlet response
Request com.acciente.induction.controller facade to the servlet request, extends javax.servlet.http.HttpServletRequest
Response com.acciente.induction.controller facade to the servlet response, extends javax.servlet.http.HttpServletResponse
Throwable java.lang only valid in resolveThrowable(...) method, contains the unhandled exception that was thrown by a controller

Controller resolver METHODS : less commonly used parameter types

Type Package Description
ClassLoader java.lang access to the main classloader used by Induction to load classes (returns the reloading classloader if it is in use) (not used by typical applications)
ControllerResolver.Resolution com.acciente.induction.resolver provides access to the controller resolution object (useful for writing generic parameterized controllers) (not used by typical applications)
TemplatingEngine com.acciente.induction.template access to the the templating engine configured for Induction (not used by typical applications)

View Resolver

View resolver CONSTRUCTOR

Type Package Description
<model_class_name> <any_package> instance of a developer provided model class (must be an application scope model)
Config.ViewResolver com.acciente.induction.init.config the configuration data that decided this view resolver be loaded
Config.ViewMapping com.acciente.induction.init.config the view mapping configuration data used by the standard ShortURL view resolver
ClassLoader java.lang access to the main classloader used by Induction to load classes (returns the reloading classloader if it is in use)
ServletConfig javax.servlet access to the ServletConfig object provided by the web container

View resolver METHODS : commonly used parameter types

Type Package Description
<model_class_name> <any_package> instance of a developer provided model class, the instance is managed to conform to a user specified lifecycle (also referred to as scope)
Form com.acciente.induction.controller provides access to the HTML form (if any) submitted with this request
HttpServletRequest javax.servlet.http access to the standard servlet request
HttpServletResponse javax.servlet.http access to the standard servlet response
Request com.acciente.induction.controller facade to the servlet request, extends javax.servlet.http.HttpServletRequest
Response com.acciente.induction.controller facade to the servlet response, extends javax.servlet.http.HttpServletResponse

View resolver METHODS : less commonly used parameter types

Type Package Description
ClassLoader java.lang access to the main classloader used by Induction to load classes (returns the reloading classloader if it is in use) (not used by typical applications)
ControllerResolver.Resolution com.acciente.induction.resolver provides access to the controller resolution object (useful for writing generic parameterized controllers) (not used by typical applications)
TemplatingEngine com.acciente.induction.template access to the the templating engine configured for Induction (not used by typical applications)

Redirect Resolver

Redirect resolver CONSTRUCTOR

Type Package Description
<model_class_name> <any_package> instance of a developer provided model class (must be an application scope model)
Config.RedirectResolver com.acciente.induction.init.config the configuration data that decided this redirect resolver be loaded
Config.RedirectMapping com.acciente.induction.init.config the redirect mapping configuration data used by the standard ShortURL redirect resolver
ClassLoader java.lang access to the main classloader used by Induction to load classes (returns the reloading classloader if it is in use)
ServletConfig javax.servlet access to the ServletConfig object provided by the web container

Redirect resolver METHODS : commonly used parameter types

Type Package Description
<model_class_name> <any_package> instance of a developer provided model class, the instance is managed to conform to a user specified lifecycle (also referred to as scope)
Form com.acciente.induction.controller provides access to the HTML form (if any) submitted with this request
HttpServletRequest javax.servlet.http access to the standard servlet request
HttpServletResponse javax.servlet.http access to the standard servlet response
Request com.acciente.induction.controller facade to the servlet request, extends javax.servlet.http.HttpServletRequest
Response com.acciente.induction.controller facade to the servlet response, extends javax.servlet.http.HttpServletResponse

Redirect resolver METHODS : less commonly used parameter types

Type Package Description
ClassLoader java.lang access to the main classloader used by Induction to load classes (returns the reloading classloader if it is in use) (not used by typical applications)
ControllerResolver.Resolution com.acciente.induction.resolver provides access to the controller resolution object (useful for writing generic parameterized controllers) (not used by typical applications)
TemplatingEngine com.acciente.induction.template access to the the templating engine configured for Induction (not used by typical applications)

Templating Engine

Templating Engine CONSTRUCTOR

Type Package Description
<model_class_name> <any_package> instance of a developer provided model class, the instance is managed to conform to a user specified lifecycle (also referred to as scope)
Config.Templating com.acciente.induction.init.config the configuration data for the templating engine
ClassLoader java.lang access to the main classloader used by Induction to load classes (returns the reloading classloader if it is in use)
ServletConfig javax.servlet access to the ServletConfig object provided by the web container