Weitere ähnliche Inhalte
Ähnlich wie Spring survey (20)
Mehr von Chris Roeder (7)
Kürzlich hochgeladen (20)
Spring survey
- 1. An Survey of Spring Chris Roeder March, 2011 This talk summarizes a lot of what is available in: Spring In Action , Craig Walls, Manning 2008
- 5. Aspects – a way to deal with “cross cutting concerns”
- 6. MVC – an alternative to web application frameworks like Struts
- 8. Uses existing anything: ORM, transactions, Aspects, Remoting, etc.
- 9. Spring is there to provide “portability” between frameworks that share a purpose and interface
- 13. When needs require a different implementation, very easy to change the config file with no code changes
- 17. Dependency Injection is a more specific concept that refers to setting values on objects (Java Beans) from an external source.
- 21. Even with good modularity, you still hard-code them together with code like this:
- 22. public static void main(String args[]) { DataProvider dp = new DataProvider(); CorpMetrics metrics = new CorpMetrics(); metrics.calculate(dp);
- 24. A JDBC setup finds its database connection by consulting JNDI, making environmental assumptions: Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup("java:/comp/env"); DataSource ds = (DataSource)envContext.lookup("jdbc/myoracle"); Connection conn = ds.getConnection(); ( http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html )
- 29. IoC is used as a supporting technology throughout Spring
- 34. Easy to swap with a different implementation when both implement the same Java interface.
- 45. Can make use of JSR-181 Web Services Metadata annotations
- 47. provide another layer of encapsulation over the concept of Class. Now you can have private and public classes as members of a module (jar).
- 48. allow for a lifecycle, so module can have a “running” state.