SCOrWare  Introduction to Spring Paris, 31/05/2007 [email_address]
What is Spring <ul><li>Java/JEE Application Framework </li></ul><ul><li>Main target: JEE Web Applications </li></ul><ul><l...
Integration <ul><li>O/R Mapping tools </li></ul><ul><ul><li>JDBC, Hibernate, JDO, iBatis, etc </li></ul></ul><ul><li>Web F...
Hollywood Principle <ul><li>“ Don't call me, I'll call you” </li></ul><ul><li>Inversion of Control </li></ul><ul><ul><li>s...
hello world <ul><li><bean id=”client” class=”Client”> </li></ul><ul><li><property name=”server”> </li></ul><ul><li><ref be...
another example <ul><li><bean id=”dao” class=”MyDao”> </li></ul><ul><li><property name=”dataSource”> </li></ul><ul><li><re...
Spring + AOP <ul><li>Spring v 1.x : proxies around pojos </li></ul><ul><li>Spring 2.x : proxies + aspectj </li></ul><ul><u...
Upcoming SlideShare
Loading in...5
×

Scorware - Spring Introduction

1,488

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,488
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Scorware - Spring Introduction

  1. 1. SCOrWare Introduction to Spring Paris, 31/05/2007 [email_address]
  2. 2. What is Spring <ul><li>Java/JEE Application Framework </li></ul><ul><li>Main target: JEE Web Applications </li></ul><ul><li>Apache 2 License </li></ul><ul><li>Hosted on SourceForge </li></ul><ul><li>Business objects as POJO </li></ul>
  3. 3. Integration <ul><li>O/R Mapping tools </li></ul><ul><ul><li>JDBC, Hibernate, JDO, iBatis, etc </li></ul></ul><ul><li>Web Frameworks </li></ul><ul><ul><li>Spring-WebMVC, Struts, Tapestry, etc </li></ul></ul><ul><li>Remoting Protocols </li></ul><ul><ul><li>RMI, JAX-RPC, HTTP, Hessian, Burlap, </li></ul></ul>
  4. 4. Hollywood Principle <ul><li>“ Don't call me, I'll call you” </li></ul><ul><li>Inversion of Control </li></ul><ul><ul><li>spring-ioc as core module </li></ul></ul><ul><ul><li>objects/components are configured from the outside </li></ul></ul><ul><li>Dependency Injection </li></ul><ul><ul><li>setter based (JavaBeans) </li></ul></ul><ul><ul><li>constructor based </li></ul></ul><ul><ul><li>service lookup (jndi, ...) </li></ul></ul>
  5. 5. hello world <ul><li><bean id=”client” class=”Client”> </li></ul><ul><li><property name=”server”> </li></ul><ul><li><ref bean=”server”/> </li></ul><ul><li></bean> </li></ul><ul><li><bean id=server” class=”Server”/> </li></ul>
  6. 6. another example <ul><li><bean id=”dao” class=”MyDao”> </li></ul><ul><li><property name=”dataSource”> </li></ul><ul><li><ref bean=”dataSource”/> </li></ul><ul><li></bean> </li></ul><ul><li><!--local--> </li></ul><ul><li><bean id=”dataSource class=”BasicDataSource”> </li></ul><ul><ul><li><property name=”driverClassName” value=””/> </li></ul></ul><ul><ul><li><property name=”url” value=”..”/> </li></ul></ul><ul><li></bean> </li></ul><ul><li><bean id=”remoteDataSource” class=”org.springframework.jndi.JndiObjectFactoryBean”> </li></ul><ul><ul><li><property name=”...” > </li></ul></ul><ul><li></bean> </li></ul>To change datasource, change the value referenced in the dao component
  7. 7. Spring + AOP <ul><li>Spring v 1.x : proxies around pojos </li></ul><ul><li>Spring 2.x : proxies + aspectj </li></ul><ul><ul><li>load-time weaving </li></ul></ul>

×