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


org.springframework.beans.factory.config.PropertyResourceConfigurer
   org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
      org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer

PreferencesPlaceholderConfigurer
public class PreferencesPlaceholderConfigurer extends PropertyPlaceholderConfigurer implements InitializingBean(Code)
Subclass of PropertyPlaceholderConfigurer that supports JDK 1.4's Preferences API (java.util.prefs).

Tries to resolve placeholders as keys first in the user preferences, then in the system preferences, then in this configurer's properties. Thus, behaves like PropertyPlaceholderConfigurer if no corresponding preferences defined.

Supports custom paths for the system and user preferences trees. Also supports custom paths specified in placeholders ("myPath/myPlaceholderKey"). Uses the respective root node if not specified.
author:
   Juergen Hoeller
since:
   16.02.2004
See Also:   PreferencesPlaceholderConfigurer.setSystemTreePath
See Also:   PreferencesPlaceholderConfigurer.setUserTreePath
See Also:   java.util.prefs.Preferences





Method Summary
public  voidafterPropertiesSet()
     This implementation eagerly fetches the Preferences instances for the required system and user tree nodes.
protected  StringresolvePlaceholder(String placeholder, Properties props)
     This implementation tries to resolve placeholders as keys first in the user preferences, then in the system preferences, then in the passed-in properties.
protected  StringresolvePlaceholder(String path, String key, Preferences preferences)
     Resolve the given path and key against the given Preferences.
public  voidsetSystemTreePath(String systemTreePath)
     Set the path in the system preferences tree to use for resolving placeholders.
public  voidsetUserTreePath(String userTreePath)
     Set the path in the system preferences tree to use for resolving placeholders.



Method Detail
afterPropertiesSet
public void afterPropertiesSet()(Code)
This implementation eagerly fetches the Preferences instances for the required system and user tree nodes.



resolvePlaceholder
protected String resolvePlaceholder(String placeholder, Properties props)(Code)
This implementation tries to resolve placeholders as keys first in the user preferences, then in the system preferences, then in the passed-in properties.



resolvePlaceholder
protected String resolvePlaceholder(String path, String key, Preferences preferences)(Code)
Resolve the given path and key against the given Preferences.
Parameters:
  path - the preferences path (placeholder part before '/')
Parameters:
  key - the preferences key (placeholder part after '/')
Parameters:
  preferences - the Preferences to resolve against the value for the placeholder, or null if none found



setSystemTreePath
public void setSystemTreePath(String systemTreePath)(Code)
Set the path in the system preferences tree to use for resolving placeholders. Default is the root node.



setUserTreePath
public void setUserTreePath(String userTreePath)(Code)
Set the path in the system preferences tree to use for resolving placeholders. Default is the root node.



Fields inherited from org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
final public static String DEFAULT_PLACEHOLDER_PREFIX(Code)(Java Doc)
final public static String DEFAULT_PLACEHOLDER_SUFFIX(Code)(Java Doc)
final public static int SYSTEM_PROPERTIES_MODE_FALLBACK(Code)(Java Doc)
final public static int SYSTEM_PROPERTIES_MODE_NEVER(Code)(Java Doc)
final public static int SYSTEM_PROPERTIES_MODE_OVERRIDE(Code)(Java Doc)

Methods inherited from org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
protected String parseStringValue(String strVal, Properties props, Set visitedPlaceholders) throws BeanDefinitionStoreException(Code)(Java Doc)
protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, Properties props) throws BeansException(Code)(Java Doc)
protected String resolvePlaceholder(String placeholder, Properties props, int systemPropertiesMode)(Code)(Java Doc)
protected String resolvePlaceholder(String placeholder, Properties props)(Code)(Java Doc)
protected String resolveSystemProperty(String key)(Code)(Java Doc)
public void setBeanFactory(BeanFactory beanFactory)(Code)(Java Doc)
public void setBeanName(String beanName)(Code)(Java Doc)
public void setIgnoreUnresolvablePlaceholders(boolean ignoreUnresolvablePlaceholders)(Code)(Java Doc)
public void setPlaceholderPrefix(String placeholderPrefix)(Code)(Java Doc)
public void setPlaceholderSuffix(String placeholderSuffix)(Code)(Java Doc)
public void setSearchSystemEnvironment(boolean searchSystemEnvironment)(Code)(Java Doc)
public void setSystemPropertiesMode(int systemPropertiesMode)(Code)(Java Doc)
public void setSystemPropertiesModeName(String constantName) throws IllegalArgumentException(Code)(Java Doc)

Methods inherited from org.springframework.beans.factory.config.PropertyResourceConfigurer
protected void convertProperties(Properties props)(Code)(Java Doc)
protected String convertPropertyValue(String originalValue)(Code)(Java Doc)
public int getOrder()(Code)(Java Doc)
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException(Code)(Java Doc)
abstract protected void processProperties(ConfigurableListableBeanFactory beanFactory, Properties props) throws BeansException(Code)(Java Doc)
public void setOrder(int order)(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.