[arquillian-issues] [JBoss JIRA] (ARQ-1747) Move InjectionPoint one level up in DroneContext

Karel Piwko (JIRA) issues at jboss.org
Fri Apr 4 07:41:13 EDT 2014


Karel Piwko created ARQ-1747:
--------------------------------

             Summary: 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
             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