20101206 roo

518 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
518
On SlideShare
0
From Embeds
0
Number of Embeds
26
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

20101206 roo

  1. 1. The 9 thBenkyo-kaiSpring ROO in Action<br />2012/12/6<br />
  2. 2. What’s ROO<br />http://www.springsource.org/roo<br />Roo 1.1.0.GA Released<br />
  3. 3. Download & Setup<br />http://www.springsource.org/roo/start<br />JDK 6 (u22)<br />Set “JAVA_HOME” variable. (for Maven)<br />Add bin directory path to “PATH” variable.<br />Try >java –version<br />with 1.4.x or older, UnsupportedClassVersion Error will happens if you run “roo” command.<br />Maven (3.0.1)<br />Add bin directory to “PATH” variable.<br />Try > mvn –version<br />Configure proxy setting “confsetting.xml”<br />ROO (1.1.0)<br />Attention: Just only shell version today.<br />Attention: You don’t have to register your personal info.<br />Add bin directory to “PATH” variable.<br />Eclipse<br />
  4. 4. Try TryTry!<br />Let’s start command prompt.<br />Make workspace someplace.<br />Ex) D:SpringROOworkspacehello<br />Move there<br />Type “roo”<br />
  5. 5. ROO project init<br />これからいろいろ機能を作る前に、プロジェクトを作りましょう。<br />projectとタイプして、TABキーを押してください。(--topLevelPackageと出てきます。)<br />パッケージ名を適当に指定したら、ENTERキーを押してください。<br />カレントディレクトリにディレクトリができますよ。<br />TABキーは同じ使い方をしていくので、困ったらTABキーを押してくださいね。<br />他には、困ったら、hintコマンドかENTERキーを押してください<br />
  6. 6. Rest of them<br />in ROO<br />Database setting<br />Making Entity classes & fields<br />Making Selenium test (wow<br />GWT (WOW?!<br />Run test<br />Attention: takes about 15minutes for collect Jars<br />Maven’s any goals you need!<br />mvntomcat:run (takes 10 minutes…)<br />Access http://localhost:8080/helloworld/timers<br />
  7. 7. Why ROO<br />Rapid start up!<br />Automatic<br />Database & Entity setting<br />Collecting many Jar files powered by Maven<br />Domain first, Infrastructure second<br />ROO: DomainModel -> JavaEE Server & libraries<br />ELSE: JavaEE Server & libraries -> DomainModel<br />DDD<br />
  8. 8. DDD architecture<br />User Interface Layer<br />In/Out functions<br />Application Layer<br />Not Business Knowledge, State, but hold some application states<br />Web-specific status management, http-specific validation<br />Domain Layer<br />Business Knowledge, State<br />Independent of other layers<br />Infrastructure Layer<br />Persistence<br />Utility<br />
  9. 9. Logic?<br />Manual coding<br />ROO assists rapid setup, not generates business logic you think in hearts.<br />
  10. 10. Comment?<br />Eclipseにインポートしたけどエラーでまくり<br />どういうときに向いているか?<br />新規(Mavenだからね)<br />一人でコーディングするとき(どうやって複数人でやるのかわかんない)<br />

×