Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- properties_include "classpath:application.properties";
- org.apache.commons.dbcp.BasicDataSource dataSource {
- @scope = singleton;
- @destroy-method = close;
- driverClassName = "${jdbc.driverClassName}";
- url = "${jdbc.url}";
- username = "${jdbc.username}";
- password = "${jdbc.password}";
- defaultAutoCommit = true;
- }
- org.springframework.orm.ibatis.SqlMapClientFactoryBean sqlMapClient {
- @scope = singleton;
- @init-method = afterPropertiesSet;
- @factory-method = getObject;
- configLocation = "classpath:sqlmap-config.xml";
- dataSource = $dataSource;
- }
- /* this string will have Java unescape encoding applied */
- STRING str = "tA testu0020string with \ escaped character encodingsrn";
- /* this string will remain literal - with escape characters remaining in place */
- STRING regexp = @"(${([a-zA-Z][a-zA-Z0-9._]*)})";
- /* multi-line text block - equates to a java.lang.String instance */
- TEXT my_multi_line_text = ///
- Here is a line of text.
- This is yet another. Here is a blank line:
- Now picks up again.
- ///;
- /* forward use of 'props' bean */
- java.util.HashMap map {
- this( $props );
- }
- /* equates to a java.util.Propertis instance */
- PROPERTIES props {
- "James Ward" = "Adobe Flex evangelist";
- "Stu Stern" = "Gorilla Logic - Flex Monkey test automation";
- Dilbert = "character in popular comic strip of same title";
- "App Title Display" = "Application: ${app.name}";
- "${app.desc}" = "JFig processes text-format Java configuration data";
- }
- /* equates to a java.util.ArrayList instance */
- LIST list {
- this( ["dusty", "moldy", "${app.version}", $str] );
- [234, 9798.76, -98, .05, "numbers", $props, ["red", "green", "blue"]];
- }
- SqlMapClient sqlMapClient = getBean("sqlMapClient");
- properties_include "classpath:application.properties";
- sqlMapClient: org.springframework.orm.ibatis.SqlMapClientFactoryBean {
- # body.
- }
- sqlMapClient {
- @class = org.springframework.orm.ibatis.SqlMapClientFactoryBean;
- # is there a sensible (perhaps built-in) default if this is missing?
- }
Add Comment
Please, Sign In to add comment