-
Notifications
You must be signed in to change notification settings - Fork 824
Alternatives to reflection for Android
stephanenicolas edited this page Oct 22, 2014
·
2 revisions
This page maps out all alternatives to reflection that can be used on Android.
Ultimately, we are looking for solutions to make Guice / RG faster.
- Url : http://docs.oracle.com/javase/tutorial/reflect/
- Usable on Android : yes
- Limitation : damn slow.
- Url : http://developer.android.com/reference/android/util/Property.html
- Usable on Android : yes
- Limitation : private fields can't be set.
- Url : https://github.com/cglib/cglib/tree/master/src/proxy/net/sf/cglib/reflect
- Usable on Android : should be, unsure.
- Limitation :
- Url : https://github.com/EsotericSoftware/reflectasm
- Usable on Android : yes
- Limitation : private fields can't be set. No gradle support
- Url : https://code.google.com/p/reflectify-protocol/
- Usable on Android : not clear
- Limitation : No gradle support
Please ping us to add alternatives.
- For Projects Using Gradle
- For Projects Using Maven
- Manual Installation for Older Projects
- Inheriting from RoboGuice Classes
- Upgrade Instructions from RoboGuice 2
- Your First View Injection
- Your First Resource Injection
- Your First System Service Injection
- Your First POJO Injection
- Singletons and ContextSingletons (wiki/Understanding Scopes)
- Your First Custom Binding
- Your First Injected Fragment
- Your First Injected Service and BroadcastReceiver
- Your First Testcase
- Your First Injection into a Custom View class
- Your First Injected ContentProvider
- Using Events in your RoboGuice application
- Logging via Ln
- RoboGuice Standard Injections
- How Injection Works
- When Injection Just Works, and when you have to call injectMembers()
- The Difference between Global and Context-scoped Injection
- Analyzing a Guice Stack Trace
- What's the difference between Nullable and Optional?
- RoboBlender wiki
- Use ProGuard with RoboGuice
- Define advanced custom bindings
- Remove or replace RoboGuice's default bindings
- Use your own BaseActivity with RoboGuice
- Inject into an object that you don't instantiate
- Dealing with Circular Dependencies
- Work with Library Projects
- Deal with ComputationException due to StackOverflowError
- Taming Fragmentation using RoboGuice