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


java.lang.Object
   com.opensymphony.webwork.config.Configuration

All known Subclasses:   com.opensymphony.webwork.config.TestConfiguration,  com.opensymphony.webwork.config.DefaultConfiguration,  com.opensymphony.webwork.config.PropertiesConfiguration,  com.opensymphony.webwork.config.DelegatingConfiguration,
Configuration
public class Configuration (Code)
Handles all WebWork2 config properties. Implementation of this class is pluggable (the default implementation is DefaultConfiguration ). This gives developers to ability to customize how WebWork2 properties are set and retrieved. As an example, a developer may wish to check a separate property store before delegating to the WebWork one.

Key methods:

Key methods for subclassers:


author:
   Rickard �berg
author:
   Jason Carreira
author:
   Bill Lynch (docs)


Field Summary
static  ConfigurationconfigurationImpl
    
static  ConfigurationdefaultImpl
    
static  Localelocale
    


Method Summary
public static  Objectget(String name)
     Returns a property as an Object.
public static  ConfigurationgetConfiguration()
     Gets the current configuration implementation.
public  ObjectgetImpl(String aName)
     Implementation of the Configuration.get(String) method.
public static  LocalegetLocale()
     Returns the WebWork2 locale.
public static  StringgetString(String name)
     Returns a property as a String.
public static  booleanisSet(String name)
     Determines whether or not a value has been set.
public  booleanisSetImpl(String name)
     Implementation of the Configuration.isSet(String) method.
public static  Iteratorlist()
     Returns an Iterator of all properties names.
public  IteratorlistImpl()
     Implementation of the Configuration.list() method.
public static  voidreset()
    
public static  voidset(String name, Object value)
     Sets a property.
public static  voidsetConfiguration(Configuration config)
     Sets the current configuration implementation.
public  voidsetImpl(String name, Object value)
     Implementation of the Configuration.set(String,Object) method.

Field Detail
configurationImpl
static Configuration configurationImpl(Code)



defaultImpl
static Configuration defaultImpl(Code)



locale
static Locale locale(Code)





Method Detail
get
public static Object get(String name) throws IllegalArgumentException(Code)
Returns a property as an Object. This will throw an IllegalArgumentException if an error occurs while retrieveing the property or if the property doesn't exist.
Parameters:
  name - the name of the property to get. the property as an Object.
throws:
  IllegalArgumentException - if an error occurs retrieveing the property or the property does not exist.



getConfiguration
public static Configuration getConfiguration()(Code)
Gets the current configuration implementation. the current configuration implementation.



getImpl
public Object getImpl(String aName) throws IllegalArgumentException(Code)
Implementation of the Configuration.get(String) method.
See Also:   Configuration.get(String)



getLocale
public static Locale getLocale()(Code)
Returns the WebWork2 locale. Keys off the property webwork.locale which should be set as the Java java.util.Locale.toString toString() representation of a Locale object (i.e., "en", "de_DE", "_GB", "en_US_WIN", "de__POSIX", "fr_MAC", etc).

If no locale is specified then the default VM locale is used ( java.util.Locale.getDefault ). the WebWork2 locale if specified or the VM default locale.




getString
public static String getString(String name) throws IllegalArgumentException(Code)
Returns a property as a String. This will throw an IllegalArgumentException if an error occurs while retrieveing the property or if the property doesn't exist.
Parameters:
  name - the name of the property to get. the property as a String
throws:
  IllegalArgumentException - if an error occurs retrieveing the property or the property does not exist.



isSet
public static boolean isSet(String name)(Code)
Determines whether or not a value has been set. Useful for testing for the existance of parameter without throwing an IllegalArgumentException.
Parameters:
  name - the name of the property to test. true if the property exists and has a value, false otherwise.



isSetImpl
public boolean isSetImpl(String name)(Code)
Implementation of the Configuration.isSet(String) method.
See Also:   Configuration.isSet(String)



list
public static Iterator list()(Code)
Returns an Iterator of all properties names. an Iterator of all properties names.



listImpl
public Iterator listImpl()(Code)
Implementation of the Configuration.list() method.
See Also:   Configuration.list()



reset
public static void reset()(Code)



set
public static void set(String name, Object value) throws IllegalArgumentException, UnsupportedOperationException(Code)
Sets a property. Throws an exception if an error occurs when setting the property or if the Configuration implementation does not support setting properties.
Parameters:
  name - the name of the property to set.
Parameters:
  value - the property to set.
throws:
  IllegalArgumentException - if an error occurs when setting the property.
throws:
  UnsupportedOperationException - if the config implementation does not support setting properties.



setConfiguration
public static void setConfiguration(Configuration config) throws IllegalStateException(Code)
Sets the current configuration implementation. Can only be called once.
Parameters:
  config - a Configuration implementation
throws:
  IllegalStateException - if an error occurs when setting the configuration implementation.



setImpl
public void setImpl(String name, Object value) throws IllegalArgumentException, UnsupportedOperationException(Code)
Implementation of the Configuration.set(String,Object) method.
See Also:   Configuration.set(String,Object)



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.