[arquillian-issues] [JBoss JIRA] (ARQ-1747) Move InjectionPoint one level up in DroneContext
Tadeas Kriz (JIRA)
issues at jboss.org
Mon Apr 7 08:36:13 EDT 2014
[ https://issues.jboss.org/browse/ARQ-1747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tadeas Kriz resolved ARQ-1747.
------------------------------
Resolution: Done
> Move InjectionPoint one level up in DroneContext
> ------------------------------------------------
>
> Key: ARQ-1747
> URL: https://issues.jboss.org/browse/ARQ-1747
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Affects Versions: drone_2.0.0.Alpha1
> Reporter: Karel Piwko
> Assignee: Tadeas Kriz
> Fix For: drone_2.0.0.Alpha2
>
>
> Instead of having
> {code}
> context.getDrone(InjectionPoint<?>)
> context.getDroneConfiguration(InjectionPoint<?>)
> {code}
> provide rather
> {code}
> context.get(InjectionPoint<?>).getInstance() // type defined by IP
> context.get(InjectionPoint<?>).getInstanceAs(Class<?>)
> context.get(InjectionPoint<?>).getConfigurationAs(Class<?>)
> context.get(InjectionPoint<?>).getMetadataAs(String, Class<?>)
> {code}
> Implementation note: We might provide NullInjectionPoint to avoid people doing null checks. Or, we can throw exception instead.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list