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
クラス 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.