Guest User

Untitled

a guest
May 6th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. properties_include "classpath:application.properties";
  2.  
  3.  
  4. org.apache.commons.dbcp.BasicDataSource dataSource {
  5. @scope = singleton;
  6. @destroy-method = close;
  7. driverClassName = "${jdbc.driverClassName}";
  8. url = "${jdbc.url}";
  9. username = "${jdbc.username}";
  10. password = "${jdbc.password}";
  11. defaultAutoCommit = true;
  12. }
  13.  
  14.  
  15. org.springframework.orm.ibatis.SqlMapClientFactoryBean sqlMapClient {
  16. @scope = singleton;
  17. @init-method = afterPropertiesSet;
  18. @factory-method = getObject;
  19. configLocation = "classpath:sqlmap-config.xml";
  20. dataSource = $dataSource;
  21. }
  22.  
  23.  
  24. /* this string will have Java unescape encoding applied */
  25. STRING str = "tA testu0020string with \ escaped character encodingsrn";
  26.  
  27.  
  28. /* this string will remain literal - with escape characters remaining in place */
  29. STRING regexp = @"(${([a-zA-Z][a-zA-Z0-9._]*)})";
  30.  
  31.  
  32. /* multi-line text block - equates to a java.lang.String instance */
  33. TEXT my_multi_line_text = ///
  34. Here is a line of text.
  35. This is yet another. Here is a blank line:
  36.  
  37. Now picks up again.
  38. ///;
  39.  
  40.  
  41. /* forward use of 'props' bean */
  42. java.util.HashMap map {
  43. this( $props );
  44. }
  45.  
  46.  
  47. /* equates to a java.util.Propertis instance */
  48. PROPERTIES props {
  49. "James Ward" = "Adobe Flex evangelist";
  50. "Stu Stern" = "Gorilla Logic - Flex Monkey test automation";
  51. Dilbert = "character in popular comic strip of same title";
  52. "App Title Display" = "Application: ${app.name}";
  53. "${app.desc}" = "JFig processes text-format Java configuration data";
  54. }
  55.  
  56.  
  57. /* equates to a java.util.ArrayList instance */
  58. LIST list {
  59. this( ["dusty", "moldy", "${app.version}", $str] );
  60. [234, 9798.76, -98, .05, "numbers", $props, ["red", "green", "blue"]];
  61. }
  62.  
  63. SqlMapClient sqlMapClient = getBean("sqlMapClient");
  64.  
  65. properties_include "classpath:application.properties";
  66.  
  67. sqlMapClient: org.springframework.orm.ibatis.SqlMapClientFactoryBean {
  68. # body.
  69. }
  70.  
  71. sqlMapClient {
  72. @class = org.springframework.orm.ibatis.SqlMapClientFactoryBean;
  73. # is there a sensible (perhaps built-in) default if this is missing?
  74. }
Add Comment
Please, Sign In to add comment