org.seasar.cubby.plugins.guice
クラス CubbyGuiceServletContextListener

java.lang.Object
  上位を拡張 com.google.inject.servlet.GuiceServletContextListener
      上位を拡張 org.seasar.cubby.plugins.guice.CubbyGuiceServletContextListener
すべての実装されたインタフェース:
EventListener, ServletContextListener

public class CubbyGuiceServletContextListener
extends GuiceServletContextListener

Injector を初期化するための Servlet コンテキストのリスナです。

アプリケーションが使用するモジュールのクラス名を WEB 配備記述子の初期化パラメータ "cubby.guice.module" に指定してください。

 <context-param>
   <param-name>"cubby.guice.module"</paanm-name>
   <param-value>com.example.ApplicationModule</param-value>
 </context-param>
 

作成者:
baba

フィールドの概要
static String MODULE_INIT_PARAM_NAME
          モジュールの WEB 配備記述子の初期化パラメータ名
 
コンストラクタの概要
CubbyGuiceServletContextListener()
           
 
メソッドの概要
 void contextInitialized(ServletContextEvent servletContextEvent)
          
protected  Module createModule(String moduleClassName)
          指定されたクラス名のモジュールを生成します。
protected  Injector getInjector()
          
 
クラス com.google.inject.servlet.GuiceServletContextListener から継承されたメソッド
contextDestroyed
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

MODULE_INIT_PARAM_NAME

public static final String MODULE_INIT_PARAM_NAME
モジュールの WEB 配備記述子の初期化パラメータ名

関連項目:
定数フィールド値
コンストラクタの詳細

CubbyGuiceServletContextListener

public CubbyGuiceServletContextListener()
メソッドの詳細

contextInitialized

public void contextInitialized(ServletContextEvent servletContextEvent)

定義:
インタフェース ServletContextListener 内の contextInitialized
オーバーライド:
クラス GuiceServletContextListener 内の contextInitialized

createModule

protected Module createModule(String moduleClassName)
指定されたクラス名のモジュールを生成します。

パラメータ:
moduleClassName - モジュールのクラス名
戻り値:
インジェクタ

getInjector

protected Injector getInjector()

定義:
クラス GuiceServletContextListener 内の getInjector


Copyright © 2006-2009 The Seasar Foundation. All Rights Reserved.