-
Notifications
You must be signed in to change notification settings - Fork 37
Behind The Scenes
JoanZapata edited this page Dec 19, 2014
·
2 revisions
First of all, AsyncService does not rely heavily upon reflection. It's an annotation processor, which generates code that will call your code directly at runtime, without reflection. The only bit of reflection is done to find and instantiate the injector for your class when you call inject()
.
// TODO schema
It generates a subclass of your AsyncService
managing cache and threading for you, and an Injector
for each class using @InjectService
or @OnMessage
, to avoid using reflection when you call AsyncService.inject()
.
Created by Joan Zapata.
- Learn the basics.
- How to [enhance your service](Enhance Service).
- Take advantage of [caching](Caching Patterns).
- How to [handle exceptions](Handle Exceptions).
- Want more? See what's [behind the scenes](Behind The Scenes).