• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

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.

Like this presentation? Why not share!

Øredev 2010 - Guice and @Inject

on

  • 2,124 views

If @Inject is the new new then is Guice the new you? See how Guice makes application assembly a snap, saving you from spaghetti-hell. ...

If @Inject is the new new then is Guice the new you? See how Guice makes application assembly a snap, saving you from spaghetti-hell.

This talk covers the basics of @Inject/Guice before diving into examples that use servlets, persistence, and classpath scanning. Nexus and Maven3 already run on Guice - will your code be next?

Statistics

Views

Total Views
2,124
Views on SlideShare
2,123
Embed Views
1

Actions

Likes
7
Downloads
51
Comments
1

1 Embed 1

http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • <br />
  • <br />
  • hints for anyone extending or re-using class <br /> can still load class without annos on classpath <br />
  • <br />
  • Spaghetti! <br /> what do I need to wire? <br /> XML == paper manual (which might go missing) <br />
  • No need for paper manual <br />
  • Provider like factory -> get() ... no context passed in! <br /> @Qualifier meta-annotation <br /> at least 5 implementations so far <br />
  • <br />
  • setters can have multiple arguments <br />
  • <br />
  • <br />
  • <br />
  • Lazy loading <br /> Multiple values <br /> Mixing scopes <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • eager singletons? <br />
  • <br />
  • <br />
  • <br />
  • + concrete types <br />
  • AOP alliance (like JSR330) <br />
  • <br />
  • web.xml <br />
  • web.xml <br />
  • all servlets and filters must be @Singleton&#x2019;s <br /> mention @RequestScoped / @SessionScoped <br /> sitebricks! <br />
  • persistence.xml <br />
  • starts / stops JPA <br />
  • session-per-transaction <br /> supports rollback on exception <br /> <br /> MyService instance(s) must be created by Guice <br />
  • session-per-http-request / open-session-in-view <br /> <br /> no need to explicitly start PersistService <br />
  • <br />
  • <br />
  • <br />
  • <br />

Øredev 2010 - Guice and @Inject Øredev 2010 - Guice and @Inject Presentation Transcript