-
Feature Request
-
Resolution: Done
-
Major
-
drone_2.0.0.Alpha1
-
None
Instead of having
context.getDrone(InjectionPoint<?>) context.getDroneConfiguration(InjectionPoint<?>)
provide rather
context.get(InjectionPoint<?>).getInstance() // type defined by IP context.get(InjectionPoint<?>).getInstanceAs(Class<?>) context.get(InjectionPoint<?>).getConfigurationAs(Class<?>) context.get(InjectionPoint<?>).getMetadataAs(String, Class<?>)
Implementation note: We might provide NullInjectionPoint to avoid people doing null checks. Or, we can throw exception instead.