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

java.lang.Object
  上位を拡張 org.seasar.cubby.plugin.AbstractPlugin
      上位を拡張 org.seasar.cubby.plugins.guice.GuicePlugin
すべての実装されたインタフェース:
Plugin

public class GuicePlugin
extends AbstractPlugin

Cubby を Google Guice に統合するためのプラグインです。

GuiceServletContextListener のサブクラスを web.xml に登録して Injector を初期化して下さい。 Cubby では CubbyGuiceServletContextListener を提供しているのでこれを使用することができます。

このプラグインが提供するプロバイダは以下の通りです。

作成者:
baba
関連項目:
Google Guice

フィールドの概要
static String MODULE_INIT_PARAM_NAME
          モジュールの WEB 配備記述子の初期化パラメータ名
 
コンストラクタの概要
GuicePlugin()
          インスタンス化します。
 
メソッドの概要
 void destroy()
          
 Injector getInjector()
          インジェクタを取得します。
<S extends Provider>
S
getProvider(Class<S> service)
          
 void initialize(ServletContext servletContext)
          
 
クラス org.seasar.cubby.plugin.AbstractPlugin から継承されたメソッド
getSupportedServices, invokeAction, invokeActionResult, invokeRequestProcessing, invokeRouting, isSupport, ready, support
 
クラス 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 配備記述子の初期化パラメータ名

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

GuicePlugin

public GuicePlugin()
インスタンス化します。

メソッドの詳細

initialize

public void initialize(ServletContext servletContext)
                throws Exception

定義:
インタフェース Plugin 内の initialize
オーバーライド:
クラス AbstractPlugin 内の initialize
例外:
Exception

destroy

public void destroy()

定義:
インタフェース Plugin 内の destroy
オーバーライド:
クラス AbstractPlugin 内の destroy

getProvider

public <S extends Provider> S getProvider(Class<S> service)

定義:
インタフェース Plugin 内の getProvider
オーバーライド:
クラス AbstractPlugin 内の getProvider

getInjector

public Injector getInjector()
インジェクタを取得します。

戻り値:
インジェクタ


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