Upload
jeong-yoon-yoon
View
369
Download
0
Embed Size (px)
DESCRIPTION
Spring For Android 세미나 자료
Citation preview
Spring for Android윤종윤
13년 6월 13일 목요일
Components
• RestTemplate Module
• Spring For Social(Facebook, Twitter...)
• Spring Security
13년 6월 13일 목요일
RestTemplate
• Spring MVC Rest Template Android Version
• Separated from Spring MVC
• Simple way to HTTP Request
• Json Marshalling- jackson, GSon
• XML Marshalling - jaxb, XStream
• Gzip Compression, Using SSL
13년 6월 13일 목요일
RestTemplate
• Support HTTP GET/POST/PUT/DELETE
• Using Message Convertersjust like Spring MVC
• Gingerbread Compatibility
• Too many Functions/ Too Large Amount
• No Asynchronous Support
13년 6월 13일 목요일
Asynchronous Support
• AsyncTask
• Robospice
• AndroidAnnotations @Background @UIThread
13년 6월 13일 목요일
Spring for Social
• Through Web OAuth Authorization
• Using SQLite Repository
• Spring for Twitter, Spring for Facebook
• Easy way to use
• Over 30 services Support
13년 6월 13일 목요일
Authentication
13년 6월 13일 목요일
Structure
• ConnectionRepository
• Store Connection Information
• ConnectionFactory
• Operate Facebook, Twitter
13년 6월 13일 목요일
ConnectionRepository
SQLiteConnectionRepository
TwitterConnectionRepository
FacebookConnectionRepository
ConnectionFacetoryRegistry
LocalSQLite
DB
User승인 정보 저장
Connection Factory
TwitterConnectionFactory
FacebookConnectionFactory
13년 6월 13일 목요일
Dependency Injection?
• Not supported
• Alternatives - Dagger, Guice
13년 6월 13일 목요일
Annotations?
• Use Androidannotations
• Make code simple
13년 6월 13일 목요일
References
• http://helloworld.naver.com/377316
• http://static.springsource.org/spring-android/docs/1.0.x/reference/htmlsingle/
• https://github.com/octo-online/robospice
• http://static.springsource.org/spring-social/docs/1.0.x/reference/html/
13년 6월 13일 목요일