Spring Intro

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    5 Favorites

    Spring Intro - Presentation Transcript

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

    + vschiavonivschiavoni, 3 years ago

    custom

    1750 views, 5 favs, 2 embeds more stats

    A small and simple introduction to Spring Framework more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1750
      • 1744 on SlideShare
      • 6 from embeds
    • Comments 0
    • Favorites 5
    • Downloads 0
    Most viewed embeds
    • 4 views on http://jroller.com
    • 2 views on http://www.jroller.com

    more

    All embeds
    • 4 views on http://jroller.com
    • 2 views on http://www.jroller.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories