|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper
Wrapper from new definition factory interface to old interface. This class provides mapping from the old interface's life cycle to the new life cycle.
| フィールドの概要 | |
private DefinitionsFactoryConfig |
config
Factory configuration, |
private ComponentDefinitionsFactory |
factory
The underlying factory. |
| コンストラクタの概要 | |
ComponentDefinitionsFactoryWrapper()
Constructor. |
|
ComponentDefinitionsFactoryWrapper(ComponentDefinitionsFactory factory)
Constructor. |
|
| メソッドの概要 | |
static java.util.Map |
createConfigMap(DefinitionsFactoryConfig config)
Create map of configuration attributes from configuration object. |
protected ComponentDefinitionsFactory |
createFactoryInstance(java.lang.String classname)
Create Definition factory from provided classname which must implement ComponentDefinitionsFactory.
|
void |
destroy()
Do nothing because old life cycle has no equivalent. |
DefinitionsFactoryConfig |
getConfig()
Get underlying factory configuration. |
ComponentDefinition |
getDefinition(java.lang.String name,
javax.servlet.ServletRequest request,
javax.servlet.ServletContext servletContext)
Get requested definition. |
ComponentDefinitionsFactory |
getInternalFactory()
Get internal factory. |
void |
init(DefinitionsFactoryConfig config,
javax.servlet.ServletContext servletContext)
Call underlying factory init method. |
void |
setConfig(DefinitionsFactoryConfig config,
javax.servlet.ServletContext servletContext)
Set underlying factory configuration. |
java.lang.String |
toString()
Return String representation. |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| フィールドの詳細 |
private ComponentDefinitionsFactory factory
private DefinitionsFactoryConfig config
| コンストラクタの詳細 |
public ComponentDefinitionsFactoryWrapper(ComponentDefinitionsFactory factory)
factory - The factory to create a wrapper for.public ComponentDefinitionsFactoryWrapper()
ComponentDefinitionsFactory.
| メソッドの詳細 |
public ComponentDefinition getDefinition(java.lang.String name,
javax.servlet.ServletRequest request,
javax.servlet.ServletContext servletContext)
throws NoSuchDefinitionException,
DefinitionsFactoryException
DefinitionsFactory 内の getDefinitionname - Name of the definition.request - The request we are processing.servletContext - Our servlet context.
DefinitionsFactoryException - An error occur while getting definition.
NoSuchDefinitionException - No definition found for specified name
Implementation can throw more accurate exception as a subclass of this exception
public void init(DefinitionsFactoryConfig config,
javax.servlet.ServletContext servletContext)
throws DefinitionsFactoryException
DefinitionsFactory 内の initconfig - DefinitionsFactoryConfig.servletContext - Our servlet context.
DefinitionsFactoryException - An error occur during initialization.public void destroy()
DefinitionsFactory 内の destroy
public void setConfig(DefinitionsFactoryConfig config,
javax.servlet.ServletContext servletContext)
throws DefinitionsFactoryException
DefinitionsFactory 内の setConfigconfig - DefinitionsFactoryConfig to use.servletContext - Our servlet context.
DefinitionsFactoryException - An error occur during initialization.public DefinitionsFactoryConfig getConfig()
DefinitionsFactory 内の getConfigpublic ComponentDefinitionsFactory getInternalFactory()
protected ComponentDefinitionsFactory createFactoryInstance(java.lang.String classname)
throws DefinitionsFactoryException
ComponentDefinitionsFactory.
Factory class must extend DefinitionsFactory.
classname - Class name of the factory to create.
DefinitionsFactoryException - If an error occur while initializing factorypublic java.lang.String toString()
public static java.util.Map createConfigMap(DefinitionsFactoryConfig config)
config - The DefinitionsFactoryConfig to use.
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||