eclipse-ee4j / glassfish-hk2

Dynamic dependency injection framework
https://eclipse-ee4j.github.io/glassfish-hk2
Other
85 stars 57 forks source link

Android support #201

Open glassfishrobot opened 10 years ago

glassfishrobot commented 10 years ago

Please investigate using HK2 under Android.

Does the code compile? Do all unit tests pass? Are there any Java-specific classes that need to be factored out of the JAR file for Android?

Affected Versions

[2.2.0]

glassfishrobot commented 6 years ago
glassfishrobot commented 10 years ago

@glassfishrobot Commented Reported by cowwoc

glassfishrobot commented 10 years ago

@glassfishrobot Commented cowwoc said: While investigating running Jersey 2.x under Android we discovered that:

  1. Reflection is very slow (this is important because HK2 uses Reflection much more aggressively than other DI frameworks)
  2. The code referenced java.awt.* classes which do not exist on Android
  3. We could not get java.util.ServiceLoader to work, in spite of the fact that http://developer.android.com/reference/java/util/ServiceLoader.html exists
glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA HK2-156