org.seasar.velocity.tools
クラス S2ServletToolInfo
java.lang.Object
org.apache.velocity.tools.view.ViewToolInfo
org.apache.velocity.tools.view.servlet.ServletToolInfo
org.seasar.velocity.tools.S2ServletToolInfo
- すべての実装されたインタフェース:
- org.apache.velocity.tools.view.ToolInfo
- 直系の既知のサブクラス:
- AutoRegisteringS2ServletToolInfo
public class S2ServletToolInfo
- extends org.apache.velocity.tools.view.servlet.ServletToolInfo
- バージョン:
- $Id: S2ServletToolInfo.java,v 1.4 2004/11/27 06:38:45 sato Exp $
- 作成者:
- Sato Tadayosi, tanigon
フィールドの概要 |
protected Class |
clazz
|
protected static org.apache.commons.logging.Log |
LOG
|
クラス org.apache.velocity.tools.view.servlet.ServletToolInfo から継承されたメソッド |
allowsRequestPath, getRequestPath, getScope, setRequestPath, setScope |
クラス org.apache.velocity.tools.view.ViewToolInfo から継承されたメソッド |
getParameters, setParameter, setParameters |
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.commons.logging.Log LOG
clazz
protected Class clazz
S2ServletToolInfo
public S2ServletToolInfo()
getInstance
public Object getInstance(Object initData)
- Overrides
ViewTool
.
NOTE ここでS2コンテナからインスタンスを取り出している。
- 定義:
- インタフェース
org.apache.velocity.tools.view.ToolInfo
内の getInstance
- オーバーライド:
- クラス
org.apache.velocity.tools.view.ViewToolInfo
内の getInstance
createToolInstance
protected Object createToolInstance()
- ツールのクラスがコンテナに存在すれば、コンテナからインスタンスを取得。
無ければ、通常の方法でインスタンスを作る。
NOTE ここを上書きすることで、ツールのコンテナ管理の方法を変更できる。
setKey
public void setKey(String key)
- オーバーライド:
- クラス
org.apache.velocity.tools.view.ViewToolInfo
内の setKey
setClassname
public void setClassname(String classname)
throws Exception
- If an instance of the tool cannot be created from
the classname passed to this method, it will throw an exception.
- オーバーライド:
- クラス
org.apache.velocity.tools.view.ViewToolInfo
内の setClassname
- パラメータ:
classname
- the fully qualified java.lang.Class of the tool
- 例外:
Exception
getApplicationClass
protected Class getApplicationClass(String name)
throws ClassNotFoundException
- Overrides
ViewToolInfo
to use class loader for
S2ServletToolInfo.
- オーバーライド:
- クラス
org.apache.velocity.tools.view.ViewToolInfo
内の getApplicationClass
- 例外:
ClassNotFoundException
getClassname
public String getClassname()
- 定義:
- インタフェース
org.apache.velocity.tools.view.ToolInfo
内の getClassname
- オーバーライド:
- クラス
org.apache.velocity.tools.view.ViewToolInfo
内の getClassname
getKey
public String getKey()
- 定義:
- インタフェース
org.apache.velocity.tools.view.ToolInfo
内の getKey
- オーバーライド:
- クラス
org.apache.velocity.tools.view.ViewToolInfo
内の getKey
Copyright © 2004-2008 The Seasar Foundation. All Rights Reserved.