Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Black Magic in Java
Search
kaiinui
August 20, 2014
Technology
1
550
Black Magic in Java
Black magic with annotation in Android Java development!
kaiinui
August 20, 2014
Tweet
Share
More Decks by kaiinui
See All by kaiinui
†黒魔術† と Annotation と AspectJ
kaiinui
3
1.2k
API開発自動化と量産
kaiinui
0
440
Other Decks in Technology
See All in Technology
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
5
38k
Devin&Cursor、それぞれの「本質」から導く最適ユースケース戦略
empitsu
8
2.5k
從開發到架構設計的可觀測性實踐
philipz
0
110
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
12k
Azure Developer CLI と Azure Deployment Environment / Azure Developer CLI and Azure Deployment Environment
nnstt1
1
130
Introduction to Bill One Development Engineer
sansan33
PRO
0
240
OTel meets Wasm: プラグイン機構としてのWebAssemblyから見る次世代のObservability
lycorptech_jp
PRO
1
300
プラットフォームとしての Datadog / Datadog as Platforms
aoto
PRO
1
340
Eight Engineering Unit 紹介資料
sansan33
PRO
0
3.2k
大手企業のAIツール導入の壁を越えて:サイバーエージェントのCursor活用戦略
gunta
19
5.2k
ローカル環境でAIを動かそう!
falken
PRO
1
170
技術書典18結果報告
mutsumix
2
180
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
68
11k
What's in a price? How to price your products and services
michaelherold
245
12k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
180
53k
Java REST API Framework Comparison - PWX 2021
mraible
31
8.6k
Adopting Sorbet at Scale
ufuk
76
9.4k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Writing Fast Ruby
sferik
628
61k
Done Done
chrislema
184
16k
VelocityConf: Rendering Performance Case Studies
addyosmani
329
24k
Designing for humans not robots
tammielis
253
25k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Stop Working from a Prison Cell
hatefulcrawdad
269
20k
Transcript
†黒魔術† @_kaiinui
Java の黒魔術: Annotation
Java の黒魔術: Annotation どうみても黒魔術
Java の黒魔術: Annotation Annotation as a code?
良さ? ・宣言的!! ・コードと「宣言」を分離出来る ・コードが短くなったり
例: ButterKnife
例: Retrofit
自作 Annotation を作る
ツール • AspectJ • java.lang.annotation
1. Annotation をつくる(カンタン)
2. AspectJ で黒魔術
@PotatoTip をつけるだけで
黒魔術がもっと気になる人 JakeWharton の Hugo とか参考にしてください>< 普通の Annotation の使い方は、 ButterKnife とか
ところで便利ライブラリ: Hugo
Annotation は Java の福音