]
Tadeas Kriz edited comment on ARQ-1747 at 4/8/14 8:57 AM:
----------------------------------------------------------
[Pushed
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: