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

java.lang.Object
  上位を拡張 com.google.inject.AbstractModule
      上位を拡張 org.seasar.cubby.plugins.guice.CubbyModule
すべての実装されたインタフェース:
Module

public class CubbyModule
extends AbstractModule

Cubby の設定を行う Module です。

作成者:
baba

コンストラクタの概要
CubbyModule()
           
 
メソッドの概要
 void configure()
          Cubby を構成します。
protected  void configureDefaultConverters()
          標準のコンバータをコンテナに登録します。
protected  void configureDefaultRequestParsers()
          標準の要求解析器をコンテナに登録します。
 
クラス com.google.inject.AbstractModule から継承されたメソッド
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CubbyModule

public CubbyModule()
メソッドの詳細

configure

public void configure()
Cubby を構成します。

定義:
クラス AbstractModule 内の configure

configureDefaultRequestParsers

protected void configureDefaultRequestParsers()
標準の要求解析器をコンテナに登録します。

以下の要求解析器を登録します。

  1. MultipartRequestParser
  2. DefaultRequestParser

要求を解析する場合は、コンテナに登録された順序で RequestParser.isParsable(javax.servlet.http.HttpServletRequest) が評価されて、最初に true を返したインスタンスを解析に使用します。 DefaultRequestParser.isParsable(javax.servlet.http.HttpServletRequest) は、常に true を返すので、 このメソッドをオーバーライドする場合は DefaultRequestParser のインスタンスを最後に登録するようにしてください。


configureDefaultConverters

protected void configureDefaultConverters()
標準のコンバータをコンテナに登録します。

以下のコンバータが登録されます。



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