|
|||||||||
| Home >> All >> org >> infohazard >> maverick >> [ flow overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.infohazard.maverick.flow
Class MasterFactory

java.lang.Objectorg.infohazard.maverick.flow.MasterFactory
- class MasterFactory
- extends java.lang.Object
Factory for creating View and Transform objects. This calls out to specific instances of ViewFactory and TransformFactory to actually create the objects.
| Field Summary | |
protected static java.lang.String |
ATTR_FACTORY_PROVIDER
xml attribute for the factory provider, value = 'provider'. |
protected static java.lang.String |
ATTR_FACTORY_TYPE_NAME
xml attribute for type, value = 'type'. |
protected static java.lang.String |
ATTR_TRANSFORM_TYPE_NAME
xml attribute for the transform type name (for a view node), value = 'transform-type' |
protected static java.lang.String |
ATTR_TYPE_NAME
xml attribute for the type name, value = 'type' |
protected java.lang.String |
defaultTransformType
The default type of factory to use if no explicit type is set. |
protected java.lang.String |
defaultViewType
The default type of factory to use if no explicit type is set. |
private static org.apache.commons.logging.Log |
log
Logger. |
protected javax.servlet.ServletConfig |
servletCfg
Reference to servlet config of Dispatcher servlet; needed to initialize View and Transform factories. |
static java.lang.String |
TAG_TRANSFORM
xml tag name for a transform, value = 'transform'. |
protected java.util.Map |
transformFactories
Holds mapping of typeName to TransformFactory. |
protected java.util.Map |
viewFactories
Holds mapping of typeName to ViewFactory. |
| Constructor Summary | |
MasterFactory(javax.servlet.ServletConfig servletCfg)
Create the master factory with the dispatcher servlet config. |
|
| Method Summary | |
protected Transform |
createPlainTransform(org.jdom.Element transformNode)
Create a plain (undecorated) transform object. |
protected View |
createPlainView(org.jdom.Element viewNode)
Create a plain (undecorated) view object. |
protected Transform |
createTransform(org.jdom.Element transformNode)
Creates a possibly decorated transform. |
protected Transform[] |
createTransforms(java.util.List transformNodes)
Create transforms. |
protected View |
createView(org.jdom.Element viewNode)
|
void |
defineTransformFactories(java.util.List transFactoryNodes)
Processes a collection of transform factory nodes. |
void |
defineTransformFactory(java.lang.String typeName,
TransformFactory fact)
Defines a transform factory for the specified type. |
void |
defineViewFactories(java.util.List viewFactoryNodes)
Define the view factories from the factory nodes. |
void |
defineViewFactory(java.lang.String typeName,
ViewFactory fact)
Defines a view factory for the specified type; Can be used to override a previously set factory. |
protected java.lang.Class |
loadClass(java.lang.String className)
Load class. |
void |
setDefaultTransformType(java.lang.String type)
Sets the default type to use if one is not explicitly defined in the transform node. |
void |
setDefaultViewType(java.lang.String type)
Sets the default type to use if one is not explicitly defined in the view node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
private static org.apache.commons.logging.Log log
- Logger.
ATTR_FACTORY_TYPE_NAME
protected static final java.lang.String ATTR_FACTORY_TYPE_NAME
- xml attribute for type, value = 'type'.
- See Also:
- Constant Field Values
ATTR_FACTORY_PROVIDER
protected static final java.lang.String ATTR_FACTORY_PROVIDER
- xml attribute for the factory provider, value = 'provider'.
- See Also:
- Constant Field Values
ATTR_TYPE_NAME
protected static final java.lang.String ATTR_TYPE_NAME
- xml attribute for the type name, value = 'type'
- See Also:
- Constant Field Values
ATTR_TRANSFORM_TYPE_NAME
protected static final java.lang.String ATTR_TRANSFORM_TYPE_NAME
- xml attribute for the transform type name (for a view node), value = 'transform-type'
- See Also:
- Constant Field Values
TAG_TRANSFORM
public static final java.lang.String TAG_TRANSFORM
- xml tag name for a transform, value = 'transform'.
- See Also:
- Constant Field Values
viewFactories
protected java.util.Map viewFactories
- Holds mapping of typeName to ViewFactory.
transformFactories
protected java.util.Map transformFactories
- Holds mapping of typeName to TransformFactory.
defaultViewType
protected java.lang.String defaultViewType
- The default type of factory to use if no explicit type is set.
defaultTransformType
protected java.lang.String defaultTransformType
- The default type of factory to use if no explicit type is set.
servletCfg
protected javax.servlet.ServletConfig servletCfg
- Reference to servlet config of Dispatcher servlet;
needed to initialize View and Transform factories.
| Constructor Detail |
MasterFactory
public MasterFactory(javax.servlet.ServletConfig servletCfg)
- Create the master factory with the dispatcher servlet config.
| Method Detail |
setDefaultViewType
public void setDefaultViewType(java.lang.String type)
- Sets the default type to use if one is not explicitly defined in the view node.
createView
protected View createView(org.jdom.Element viewNode) throws ConfigException
createPlainView
protected View createPlainView(org.jdom.Element viewNode) throws ConfigException
- Create a plain (undecorated) view object.
defineViewFactory
public void defineViewFactory(java.lang.String typeName, ViewFactory fact)
- Defines a view factory for the specified type; Can be used to
override a previously set factory.
defineViewFactories
public void defineViewFactories(java.util.List viewFactoryNodes) throws ConfigException
- Define the view factories from the factory nodes.
setDefaultTransformType
public void setDefaultTransformType(java.lang.String type)
- Sets the default type to use if one is not explicitly defined in the transform node.
createTransforms
protected Transform[] createTransforms(java.util.List transformNodes) throws ConfigException
- Create transforms.
createTransform
protected Transform createTransform(org.jdom.Element transformNode) throws ConfigException
- Creates a possibly decorated transform.
createPlainTransform
protected Transform createPlainTransform(org.jdom.Element transformNode) throws ConfigException
- Create a plain (undecorated) transform object.
defineTransformFactory
public void defineTransformFactory(java.lang.String typeName, TransformFactory fact)
- Defines a transform factory for the specified type. Can be used to
override a previously set factory.
defineTransformFactories
public void defineTransformFactories(java.util.List transFactoryNodes) throws ConfigException
- Processes a collection of transform factory nodes.
loadClass
protected java.lang.Class loadClass(java.lang.String className) throws java.lang.ClassNotFoundException
- Load class.
|
|||||||||
| Home >> All >> org >> infohazard >> maverick >> [ flow overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.infohazard.maverick.flow.MasterFactory