javaee / hk2

A light-weight and dynamic dependency injection framework
https://javaee.github.io/hk2
Other
112 stars 83 forks source link

Android support #200

Closed glassfishrobot closed 6 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 10 years ago

Reported by cowwoc

glassfishrobot commented 10 years ago

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

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

glassfishrobot commented 6 years ago

Closing this as this issue is migrated to https://github.com/eclipse-ee4j/glassfish-hk2/issues/201