org.seasar.velocity.tools
クラス ContainerBasedToolboxManager

java.lang.Object
  上位を拡張 org.seasar.velocity.tools.ContainerBasedToolboxManager
すべての実装されたインタフェース:
org.apache.velocity.tools.view.ToolboxManager

public class ContainerBasedToolboxManager
extends Object
implements org.apache.velocity.tools.view.ToolboxManager

(in japanese) S2Containerベースでツールボックス・インスタンスを管理するToolboxManager実装.
このToolboxManagerを使う場合は、Velocity-toolsで指定しているtoolbox.xmlが不要となる.
各ツールのインスタンス管理はすべてS2Containerに委任される。requestやsessionなどのインスタンス定義もS2Container依存となるため、 従来のtoolbox.xmlはdiconファイルの同等物を記入することとなる.

作成者:
tanigon

コンストラクタの概要
ContainerBasedToolboxManager()
           
 
メソッドの概要
 void addData(org.apache.velocity.tools.view.ToolInfo arg0)
          addData may be called by digester (see ToolboxRuleSet) but This toolbox manager doesn't handle any XML file with Digester or RuleSet, so this method may be never called.
 void addTool(org.apache.velocity.tools.view.ToolInfo toolInfo)
          addTool may be called by digester (see ToolboxRuleSet) but This toolbox manager doesn't handle any XML file with Digester or RuleSet, so this method may be never called.
protected  Object assembleSessionTool(Object initData, org.apache.velocity.tools.view.context.ViewContext ctx, org.seasar.framework.container.ComponentDef def)
           
 Map getToolbox(Object initData)
           
protected  org.seasar.framework.container.S2Container getToolboxContainer()
           
 String getToolboxNamespace()
           
protected  void initViewToolComponent(Object initData, Object component)
          initialize component which is (former) ViewTool style.
 void setToolboxNamespace(String toolboxNamespace)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ContainerBasedToolboxManager

public ContainerBasedToolboxManager()
メソッドの詳細

addTool

public void addTool(org.apache.velocity.tools.view.ToolInfo toolInfo)
addTool may be called by digester (see ToolboxRuleSet) but This toolbox manager doesn't handle any XML file with Digester or RuleSet, so this method may be never called.

定義:
インタフェース org.apache.velocity.tools.view.ToolboxManager 内の addTool

addData

public void addData(org.apache.velocity.tools.view.ToolInfo arg0)
addData may be called by digester (see ToolboxRuleSet) but This toolbox manager doesn't handle any XML file with Digester or RuleSet, so this method may be never called.

定義:
インタフェース org.apache.velocity.tools.view.ToolboxManager 内の addData

getToolbox

public Map getToolbox(Object initData)
定義:
インタフェース org.apache.velocity.tools.view.ToolboxManager 内の getToolbox

initViewToolComponent

protected void initViewToolComponent(Object initData,
                                     Object component)
initialize component which is (former) ViewTool style.

パラメータ:
initData - initData, assumed as ViewContext
component - destination object

getToolboxContainer

protected org.seasar.framework.container.S2Container getToolboxContainer()

assembleSessionTool

protected Object assembleSessionTool(Object initData,
                                     org.apache.velocity.tools.view.context.ViewContext ctx,
                                     org.seasar.framework.container.ComponentDef def)

getToolboxNamespace

public String getToolboxNamespace()

setToolboxNamespace

public void setToolboxNamespace(String toolboxNamespace)


Copyright © 2004-2008 The Seasar Foundation. All Rights Reserved.