Class GenericApplicationModule<T extends GenericApplication>

java.lang.Object
com.google.inject.AbstractModule
com.mastfrog.acteur.server.ServerModule<T>
com.mastfrog.acteur.annotations.GenericApplicationModule<T>
All Implemented Interfaces:
com.google.inject.Module

public class GenericApplicationModule<T extends GenericApplication> extends ServerModule<T>
Acteur ServerModule which uses GenericApplication. Page that have the HttpCall annotation which are on the classpath will automatically be added, and any bindings they specify will be bound in request scope. Any modules with the @GuiceModule annotation will be automatically installed.

An exclusion list can be passed to

Author:
Tim Boudreau
  • Field Details

    • settings

      protected final com.mastfrog.settings.Settings settings
    • EXCLUDED_CLASSES

      public static final String EXCLUDED_CLASSES
      See Also:
  • Constructor Details

    • GenericApplicationModule

      public GenericApplicationModule(com.mastfrog.settings.Settings settings)
      Constructor which just takes a Settings, for use with giulius-tests
      Parameters:
      settings -
    • GenericApplicationModule

      public GenericApplicationModule(com.mastfrog.settings.Settings settings, Class<?>... exclude)
      Create a new GenericApplicationModule using the passed settings and the specified class exclusion list.
      Parameters:
      settings -
      exclude - A list of Page, Module or implicit binding classes which should be ignored
    • GenericApplicationModule

      public GenericApplicationModule(com.mastfrog.settings.Settings settings, Class<? extends T> appType, Class<?>... exclude)
      Create a new GenericApplicationModule with a specific subtype of GenericApplication.
      Parameters:
      settings - Settings
      appType - The application type
      exclude - A list of Page, Module or implicit binding classes which should be ignored
    • GenericApplicationModule

      public GenericApplicationModule(com.mastfrog.giulius.scope.ReentrantScope scope, com.mastfrog.settings.Settings settings, Class<? extends T> appType, Class<?>... exclude)
      Create a new GenericApplicationModule with a specific subtype of GenericApplication, passing in the scope to be used for request scope.
      Parameters:
      scope - The scope to bind types in
      settings - Settings
      appType - The application type
      exclude - A list of Page, Module or implicit binding classes which should be ignored
  • Method Details