Java Doc for DefinitionsUtil.java in  » Web-Framework » struts-1.3.8 » org » apache » struts » tiles » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » struts 1.3.8 » org.apache.struts.tiles 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.struts.tiles.TilesUtil
      org.apache.struts.tiles.DefinitionsUtil

DefinitionsUtil
public class DefinitionsUtil extends TilesUtil implements ComponentConstants(Code)
Utilities class for definitions factory. Also define userDebugLevel property (TODO to be moved from this class ?). TilesUtil.createDefinitionsFactory(ServletContextDefinitionsFactoryConfig)

Inner Class :static class ServletPropertiesMap extends HashMap

Field Summary
final public static  StringACTION_DEFINITION
     Constant name used to store definition in jsp context.
final public static  StringDEFINITIONS_CONFIG_USER_DEBUG_LEVEL
     Name of init property carrying debug level.
final public static  StringDEFINITIONS_FACTORY
     Constant name used to store factory in context.
final public static  StringDEFINITIONS_FACTORY_CLASSNAME
     Name of init property carrying factory class name.
final public static  intNO_DEBUG
     User Debug level.
protected static  Loglog
     Commons Logging instance.
public static  intuserDebugLevel
     Global user defined debug level.


Method Summary
public static  DefinitionsFactorycreateDefinitionsFactory(ServletContext servletContext, Map properties, String classname)
     Create Definition factory. If a factory class name is provided, a factory of this class is created.
public static  DefinitionsFactorycreateDefinitionsFactory(ServletContext servletContext, Map properties)
     Create default Definition factory.
Parameters:
  servletContext - Servlet Context passed to newly created factory.
Parameters:
  properties - Map of name/property used to initialize factory configuration object.
public static  DefinitionsFactorycreateDefinitionsFactory(ServletContext servletContext, ServletConfig servletConfig)
     Create Definition factory. Create configuration object from servlet web.xml file, then create ConfigurableDefinitionsFactory and initialized it with object.

Convenience method.

public static  DefinitionsFactorycreateDefinitionsFactory(ServletContext servletContext, ServletConfig servletConfig, boolean checkIfExist)
     Create Definition factory. Create configuration object from servlet web.xml file, then create ConfigurableDefinitionsFactory and initialized it with object.

If checkIfExist is true, start by checking if factory already exist.

public static  ComponentDefinitiongetActionDefinition(ServletRequest request)
     Get Definition stored in jsp context by an action.
public static  DefinitionsFactorygetDefinitionsFactory(ServletContext servletContext)
     Get definition factory from appropriate servlet context.
public static  voidpopulateDefinitionsFactoryConfig(DefinitionsFactoryConfig factoryConfig, ServletConfig servletConfig)
     Populate Definition Factory Config from web.xml properties.
protected static  DefinitionsFactoryConfigreadFactoryConfig(ServletConfig servletConfig)
     Create FactoryConfig and initialize it from web.xml.
public static  voidremoveActionDefinition(ServletRequest request, ComponentDefinition definition)
     Remove Definition stored in jsp context.
public static  voidsetActionDefinition(ServletRequest request, ComponentDefinition definition)
     Store definition in jsp context.

Field Detail
ACTION_DEFINITION
final public static String ACTION_DEFINITION(Code)
Constant name used to store definition in jsp context. Used to pass definition from a Struts action to servlet forward.



DEFINITIONS_CONFIG_USER_DEBUG_LEVEL
final public static String DEFINITIONS_CONFIG_USER_DEBUG_LEVEL(Code)
Name of init property carrying debug level.



DEFINITIONS_FACTORY
final public static String DEFINITIONS_FACTORY(Code)
Constant name used to store factory in context.



DEFINITIONS_FACTORY_CLASSNAME
final public static String DEFINITIONS_FACTORY_CLASSNAME(Code)
Name of init property carrying factory class name.



NO_DEBUG
final public static int NO_DEBUG(Code)
User Debug level.



log
protected static Log log(Code)
Commons Logging instance.



userDebugLevel
public static int userDebugLevel(Code)
Global user defined debug level.





Method Detail
createDefinitionsFactory
public static DefinitionsFactory createDefinitionsFactory(ServletContext servletContext, Map properties, String classname) throws DefinitionsFactoryException(Code)
Create Definition factory. If a factory class name is provided, a factory of this class is created. Otherwise, default factory is created.
Parameters:
  classname - Class name of the factory to create.
Parameters:
  servletContext - Servlet Context passed to newly created factory.
Parameters:
  properties - Map of name/property used to initialize factory configuration object. newly created factory.
throws:
  DefinitionsFactoryException - If an error occur while initializing factory



createDefinitionsFactory
public static DefinitionsFactory createDefinitionsFactory(ServletContext servletContext, Map properties) throws DefinitionsFactoryException(Code)
Create default Definition factory.
Parameters:
  servletContext - Servlet Context passed to newly created factory.
Parameters:
  properties - Map of name/property used to initialize factory configuration object. newly created factory of type ConfigurableDefinitionsFactory.
throws:
  DefinitionsFactoryException - If an error occur while initializing factory



createDefinitionsFactory
public static DefinitionsFactory createDefinitionsFactory(ServletContext servletContext, ServletConfig servletConfig) throws DefinitionsFactoryException(Code)
Create Definition factory. Create configuration object from servlet web.xml file, then create ConfigurableDefinitionsFactory and initialized it with object.

Convenience method. Calls createDefinitionsFactory(ServletContext servletContext, DefinitionsFactoryConfig factoryConfig)
Parameters:
  servletContext - Servlet Context passed to newly created factory.
Parameters:
  servletConfig - Servlet config containing parameters to be passed to factory configuration object. newly created factory of type ConfigurableDefinitionsFactory.
throws:
  DefinitionsFactoryException - If an error occur while initializing factory




createDefinitionsFactory
public static DefinitionsFactory createDefinitionsFactory(ServletContext servletContext, ServletConfig servletConfig, boolean checkIfExist) throws DefinitionsFactoryException(Code)
Create Definition factory. Create configuration object from servlet web.xml file, then create ConfigurableDefinitionsFactory and initialized it with object.

If checkIfExist is true, start by checking if factory already exist. If yes, return it. If no, create a new one.

If checkIfExist is false, factory is always created.

Convenience method. Calls createDefinitionsFactory(ServletContext servletContext, DefinitionsFactoryConfig factoryConfig)
Parameters:
  servletContext - Servlet Context passed to newly created factory.
Parameters:
  servletConfig - Servlet config containing parameters to be passed to factory configuration object.
Parameters:
  checkIfExist - Check if factory already exist. If true and factory exist, return it.If true and factory doesn't exist, create it. If false, create it in all cases. newly created factory of type ConfigurableDefinitionsFactory.
throws:
  DefinitionsFactoryException - If an error occur while initializing factory




getActionDefinition
public static ComponentDefinition getActionDefinition(ServletRequest request)(Code)
Get Definition stored in jsp context by an action. ComponentDefinition or null if not found.



getDefinitionsFactory
public static DefinitionsFactory getDefinitionsFactory(ServletContext servletContext)(Code)
Get definition factory from appropriate servlet context. Definitions factory or null if not found.TilesUtil.getDefinitionsFactory(ServletRequestServletContext)
since:
   20020708



populateDefinitionsFactoryConfig
public static void populateDefinitionsFactoryConfig(DefinitionsFactoryConfig factoryConfig, ServletConfig servletConfig) throws IllegalAccessException, InvocationTargetException(Code)
Populate Definition Factory Config from web.xml properties.
Parameters:
  factoryConfig - Definition Factory Config to populate.
Parameters:
  servletConfig - Current servlet config containing web.xml properties.
exception:
  IllegalAccessException - if the caller does not haveaccess to the property accessor method
exception:
  java.lang.reflect.InvocationTargetException - if the property accessor methodthrows an exception
See Also:   org.apache.commons.beanutils.BeanUtils
since:
   tiles 20020708



readFactoryConfig
protected static DefinitionsFactoryConfig readFactoryConfig(ServletConfig servletConfig) throws DefinitionsFactoryException(Code)
Create FactoryConfig and initialize it from web.xml.
Parameters:
  servletConfig - ServletConfig for the module with whichthis plug in is associated
exception:
  DefinitionsFactoryException - if this PlugIn cannotbe successfully initialized



removeActionDefinition
public static void removeActionDefinition(ServletRequest request, ComponentDefinition definition)(Code)
Remove Definition stored in jsp context. Mainly used by Struts to pass a definition defined in an Action to the forward.



setActionDefinition
public static void setActionDefinition(ServletRequest request, ComponentDefinition definition)(Code)
Store definition in jsp context. Mainly used by Struts to pass a definition defined in an Action to the forward.



Fields inherited from org.apache.struts.tiles.TilesUtil
protected static Log log(Code)(Java Doc)
protected static TilesUtilImpl tilesUtilImpl(Code)(Java Doc)

Methods inherited from org.apache.struts.tiles.TilesUtil
public static DefinitionsFactory createDefinitionsFactory(ServletContext servletContext, DefinitionsFactoryConfig factoryConfig) throws DefinitionsFactoryException(Code)(Java Doc)
public static void doForward(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws IOException, ServletException(Code)(Java Doc)
public static void doInclude(String uri, HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) throws IOException, ServletException(Code)(Java Doc)
public static void doInclude(String uri, PageContext pageContext) throws IOException, ServletException(Code)(Java Doc)
public static void doInclude(String uri, PageContext pageContext, boolean flush) throws IOException, ServletException(Code)(Java Doc)
public static ComponentDefinition getDefinition(String definitionName, ServletRequest request, ServletContext servletContext) throws FactoryNotFoundException, DefinitionsFactoryException(Code)(Java Doc)
public static DefinitionsFactory getDefinitionsFactory(ServletRequest request, ServletContext servletContext)(Code)(Java Doc)
public static TilesUtilImpl getTilesUtil()(Code)(Java Doc)
static boolean isTilesUtilImplSet()(Code)(Java Doc)
public static void setTilesUtil(TilesUtilImpl tilesUtil)(Code)(Java Doc)
protected static void testReset()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.