|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.google.inject.AbstractModule
org.seasar.cubby.plugins.guice.AbstractCubbyModule
public abstract class AbstractCubbyModule
Cubby の設定を行う Module
の抽象クラスです。
コンストラクタの概要 | |
---|---|
AbstractCubbyModule()
|
メソッドの概要 | |
---|---|
void |
configure()
Cubby を構成します。 |
protected void |
configureFormatPattern()
FormatPattern を構成します。 |
protected void |
configureMessagesBehaviour()
MessagesBehaviour を構成します。 |
protected Collection<Converter> |
createConverters(Injector injector)
コンバーターのコレクションを取得します。 |
protected Collection<RequestParser> |
createRequestParsers(Injector injector)
リクエスト解析器のコレクションを取得します。 |
protected abstract PathResolver |
getPathResolver()
PathResolver を取得します。 |
クラス com.google.inject.AbstractModule から継承されたメソッド |
---|
addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindScope, configure, install, requestStaticInjection |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public AbstractCubbyModule()
メソッドの詳細 |
---|
public void configure()
AbstractModule
内の configure
protected Collection<RequestParser> createRequestParsers(Injector injector)
戻り値のコレクションには以下の順序でリクエスト解析器のインスタンスが格納されます。
要求を解析する場合は、このメソッドの戻り値のコレクションの順序で
RequestParser.isParsable(javax.servlet.http.HttpServletRequest)
が評価されて、最初に true
を返したインスタンスを解析に使用します。
DefaultRequestParser.isParsable(javax.servlet.http.HttpServletRequest)
は、常に true
を返すので、 このメソッドをオーバーライドする場合は
DefaultRequestParser
のインスタンスがコレクションの最後になるようにしてください。
injector
- インジェクタ
protected Collection<Converter> createConverters(Injector injector)
戻り値のコレクションには以下のコンバータが含まれます。
BigDecimalConverter
BigIntegerConverter
BooleanConverter
ByteArrayFileItemConverter
ByteConverter
CharacterConverter
DateConverter
DoubleConverter
EnumConverter
FloatConverter
InputStreamFileItemConverter
IntegerConverter
LongConverter
ShortConverter
SqlDateConverter
SqlTimeConverter
SqlTimestampConverter
injector
- インジェクタ
protected abstract PathResolver getPathResolver()
PathResolver
を取得します。
サブクラスではアクションを登録済みの PathResolver
を返してください。
PathResolver
protected void configureMessagesBehaviour()
MessagesBehaviour
を構成します。
MessagesBehaviour
を DefaultMessagesBehaviour
にバインドします。
protected void configureFormatPattern()
FormatPattern
を構成します。
FormatPattern
を DefaultFormatPattern
にバインドします。
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |