Java Doc for PropertyEditorRegistrySupport.java in  » J2EE » spring-framework-2.0.6 » org » springframework » beans » 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 » spring framework 2.0.6 » org.springframework.beans 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.beans.PropertyEditorRegistrySupport

All known Subclasses:   org.springframework.beans.SimpleTypeConverter,  org.springframework.beans.AbstractPropertyAccessor,
PropertyEditorRegistrySupport
public class PropertyEditorRegistrySupport implements PropertyEditorRegistry(Code)
Base implementation of the PropertyEditorRegistry interface. Provides management of default editors and custom editors. Mainly serves as base class for BeanWrapperImpl .
author:
   Juergen Hoeller
author:
   Rob Harrop
since:
   1.2.6
See Also:   java.beans.PropertyEditorManager
See Also:   java.beans.PropertyEditorSupport.setAsText
See Also:   java.beans.PropertyEditorSupport.setValue




Method Summary
protected  voidcopyCustomEditorsTo(PropertyEditorRegistry target, String nestedProperty)
     Copy the custom editors registered in this instance to the given target registry.
protected  voidcopyDefaultEditorsTo(PropertyEditorRegistrySupport target)
     Copy the default editors registered in this instance to the given target registry.
public  PropertyEditorfindCustomEditor(Class requiredType, String propertyPath)
    
protected  PropertyEditorgetDefaultEditor(Class requiredType)
     Retrieve the default editor for the given property type, if any.
protected  ClassgetPropertyType(String propertyPath)
     Determine the property type for the given property path.
protected  ClassguessPropertyTypeFromEditors(String propertyName)
     Guess the property type of the specified property from the registered custom editors (provided that they were registered for a specific type).
public  booleanhasCustomEditorForElement(Class elementType, String propertyPath)
     Determine whether this registry contains a custom editor for the specified array/collection element.
public  booleanisSharedEditor(PropertyEditor propertyEditor)
     Check whether the given editor instance is a shared editor, that is, whether the given editor instance might be used concurrently.
public  voidregisterCustomEditor(Class requiredType, PropertyEditor propertyEditor)
    
public  voidregisterCustomEditor(Class requiredType, String propertyPath, PropertyEditor propertyEditor)
    
protected  voidregisterDefaultEditors()
     Activate the default editors for this registry instance, allowing for lazily registering default editors when needed.
public  voidregisterSharedEditor(Class requiredType, PropertyEditor propertyEditor)
     Register the given custom property editor for all properties of the given type, indicating that the given instance is a shared editor that might be used concurrently.
public  voiduseConfigValueEditors()
     Activate config value editors which are only intended for configuration purposes, such as org.springframework.beans.propertyeditors.StringArrayPropertyEditor .

Those editors are not registered by default simply because they are in general inappropriate for data binding purposes.




Method Detail
copyCustomEditorsTo
protected void copyCustomEditorsTo(PropertyEditorRegistry target, String nestedProperty)(Code)
Copy the custom editors registered in this instance to the given target registry.
Parameters:
  target - the target registry to copy to
Parameters:
  nestedProperty - the nested property path of the target registry, if any.If this is non-null, only editors registered for a path below this nested propertywill be copied.



copyDefaultEditorsTo
protected void copyDefaultEditorsTo(PropertyEditorRegistrySupport target)(Code)
Copy the default editors registered in this instance to the given target registry.
Parameters:
  target - the target registry to copy to



findCustomEditor
public PropertyEditor findCustomEditor(Class requiredType, String propertyPath)(Code)



getDefaultEditor
protected PropertyEditor getDefaultEditor(Class requiredType)(Code)
Retrieve the default editor for the given property type, if any.

Lazily registers the default editors, if they are active.
Parameters:
  requiredType - type of the property the default editor, or null if none found
See Also:   PropertyEditorRegistrySupport.registerDefaultEditors




getPropertyType
protected Class getPropertyType(String propertyPath)(Code)
Determine the property type for the given property path.

Called by PropertyEditorRegistrySupport.findCustomEditor if no required type has been specified, to be able to find a type-specific editor even if just given a property path.

The default implementation always returns null. BeanWrapperImpl overrides this with the standard getPropertyType method as defined by the BeanWrapper interface.
Parameters:
  propertyPath - the property path to determine the type for the type of the property, or null if not determinable
See Also:   BeanWrapper.getPropertyType(String)




guessPropertyTypeFromEditors
protected Class guessPropertyTypeFromEditors(String propertyName)(Code)
Guess the property type of the specified property from the registered custom editors (provided that they were registered for a specific type).
Parameters:
  propertyName - the name of the property the property type, or null if not determinable



hasCustomEditorForElement
public boolean hasCustomEditorForElement(Class elementType, String propertyPath)(Code)
Determine whether this registry contains a custom editor for the specified array/collection element.
Parameters:
  elementType - the target type of the element(can be null if not known)
Parameters:
  propertyPath - the property path (typically of the array/collection;can be null if not known) whether a matching custom editor has been found



isSharedEditor
public boolean isSharedEditor(PropertyEditor propertyEditor)(Code)
Check whether the given editor instance is a shared editor, that is, whether the given editor instance might be used concurrently.
Parameters:
  propertyEditor - the editor instance to check whether the editor is a shared instance



registerCustomEditor
public void registerCustomEditor(Class requiredType, PropertyEditor propertyEditor)(Code)



registerCustomEditor
public void registerCustomEditor(Class requiredType, String propertyPath, PropertyEditor propertyEditor)(Code)



registerDefaultEditors
protected void registerDefaultEditors()(Code)
Activate the default editors for this registry instance, allowing for lazily registering default editors when needed.



registerSharedEditor
public void registerSharedEditor(Class requiredType, PropertyEditor propertyEditor)(Code)
Register the given custom property editor for all properties of the given type, indicating that the given instance is a shared editor that might be used concurrently.
Parameters:
  requiredType - the type of the property
Parameters:
  propertyEditor - the shared editor to register



useConfigValueEditors
public void useConfigValueEditors()(Code)
Activate config value editors which are only intended for configuration purposes, such as org.springframework.beans.propertyeditors.StringArrayPropertyEditor .

Those editors are not registered by default simply because they are in general inappropriate for data binding purposes. Of course, you may register them individually in any case, through PropertyEditorRegistrySupport.registerCustomEditor .




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.