Java Doc for ObjectFactory.java in  » J2EE » webwork-2.2.6 » com » opensymphony » xwork » 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 » J2EE » webwork 2.2.6 » com.opensymphony.xwork 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.opensymphony.xwork.ObjectFactory

All known Subclasses:   com.opensymphony.xwork.spring.SpringObjectFactory,  com.opensymphony.webwork.plexus.PlexusObjectFactory,  com.opensymphony.webwork.pico.PicoObjectFactory,
ObjectFactory
public class ObjectFactory (Code)
ObjectFactory is responsible for building the core framework objects. Users may register their own implementation of the ObjectFactory to control instantiation of these Objects.

This default implementation uses the ObjectFactory.buildBean(Class,java.util.Map) buildBean method to create all classes (interceptors, actions, results, etc).
author:
   Jason Carreira


Inner Class :static class ContinuationsClassLoader extends ClassLoader


Constructor Summary
protected  ObjectFactory()
    

Method Summary
public  ObjectbuildAction(String actionName, String namespace, ActionConfig config, Map extraContext)
    
public  ObjectbuildBean(Class clazz, Map extraContext)
     Build a generic Java object of the given type.
public  ObjectbuildBean(String className, Map extraContext)
     Build a generic Java object of the given type.
public  InterceptorbuildInterceptor(InterceptorConfig interceptorConfig, Map interceptorRefParams)
     Builds an Interceptor from the InterceptorConfig and the Map of parameters from the interceptor reference.
public  ResultbuildResult(ResultConfig resultConfig, Map extraContext)
     Build a Result using the type in the ResultConfig and set the parameters in the ResultConfig.
public  ValidatorbuildValidator(String className, Map params, Map extraContext)
    
public  ClassgetClassInstance(String className)
     Utility method to obtain the class matched to className.
public static  StringgetContinuationPackage()
    
public static  ObjectFactorygetObjectFactory()
    
public  booleanisNoArgConstructorRequired()
     Allows for ObjectFactory implementations that support Actions without no-arg constructors.
public static  voidsetContinuationPackage(String continuationPackage)
    
public static  voidsetObjectFactory(ObjectFactory factory)
    


Constructor Detail
ObjectFactory
protected ObjectFactory()(Code)




Method Detail
buildAction
public Object buildAction(String actionName, String namespace, ActionConfig config, Map extraContext) throws Exception(Code)
Build an instance of the action class to handle a web request
Parameters:
  actionName - the name the action configuration is set up with in the configuration
Parameters:
  namespace - the namespace the action is configured in
Parameters:
  config - the action configuration found in the config for the actionName / namespace
Parameters:
  extraContext - a Map of extra context which uses the same keys as the com.opensymphony.xwork.ActionContext instance of the action class to handle a web request
throws:
  Exception -



buildBean
public Object buildBean(Class clazz, Map extraContext) throws Exception(Code)
Build a generic Java object of the given type.
Parameters:
  clazz - the type of Object to build
Parameters:
  extraContext - a Map of extra context which uses the same keys as the com.opensymphony.xwork.ActionContext



buildBean
public Object buildBean(String className, Map extraContext) throws Exception(Code)
Build a generic Java object of the given type.
Parameters:
  className - the type of Object to build
Parameters:
  extraContext - a Map of extra context which uses the same keys as the com.opensymphony.xwork.ActionContext



buildInterceptor
public Interceptor buildInterceptor(InterceptorConfig interceptorConfig, Map interceptorRefParams) throws ConfigurationException(Code)
Builds an Interceptor from the InterceptorConfig and the Map of parameters from the interceptor reference. Implementations of this method should ensure that the Interceptor is parameterized with both the parameters from the Interceptor config and the interceptor ref Map (the interceptor ref params take precedence), and that the Interceptor.init() method is called on the Interceptor instance before it is returned.
Parameters:
  interceptorConfig - the InterceptorConfig from the configuration
Parameters:
  interceptorRefParams - a Map of params provided in the Interceptor reference in theAction mapping or InterceptorStack definition



buildResult
public Result buildResult(ResultConfig resultConfig, Map extraContext) throws Exception(Code)
Build a Result using the type in the ResultConfig and set the parameters in the ResultConfig.
Parameters:
  resultConfig - the ResultConfig found for the action with the result code returned
Parameters:
  extraContext - a Map of extra context which uses the same keys as the com.opensymphony.xwork.ActionContext



buildValidator
public Validator buildValidator(String className, Map params, Map extraContext) throws Exception(Code)
Build a Validator of the given type and set the parameters on it
Parameters:
  className - the type of Validator to build
Parameters:
  params - property name -> value Map to set onto the Validator instance
Parameters:
  extraContext - a Map of extra context which uses the same keys as the com.opensymphony.xwork.ActionContext



getClassInstance
public Class getClassInstance(String className) throws ClassNotFoundException(Code)
Utility method to obtain the class matched to className. Caches look ups so that subsequent lookups will be faster.
Parameters:
  className - The fully qualified name of the class to return The class itself
throws:
  ClassNotFoundException -



getContinuationPackage
public static String getContinuationPackage()(Code)



getObjectFactory
public static ObjectFactory getObjectFactory()(Code)



isNoArgConstructorRequired
public boolean isNoArgConstructorRequired()(Code)
Allows for ObjectFactory implementations that support Actions without no-arg constructors. true if no-arg constructor is required, false otherwise



setContinuationPackage
public static void setContinuationPackage(String continuationPackage)(Code)



setObjectFactory
public static void setObjectFactory(ObjectFactory factory)(Code)



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.