[JBoss JIRA] (ARQ-1747) Move InjectionPoint one level up in DroneContext
by Tadeas Kriz (JIRA)
[ https://issues.jboss.org/browse/ARQ-1747?page=com.atlassian.jira.plugin.s... ]
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
10 years, 9 months
[JBoss JIRA] (ARQ-1745) Rename InjectionPoint
by Tadeas Kriz (JIRA)
[ https://issues.jboss.org/browse/ARQ-1745?page=com.atlassian.jira.plugin.s... ]
Tadeas Kriz resolved ARQ-1745.
------------------------------
Resolution: Done
> Rename InjectionPoint
> ---------------------
>
> Key: ARQ-1745
> URL: https://issues.jboss.org/browse/ARQ-1745
> 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
>
>
> InjectionPoint is already in Arquillian SPI. Rather, follow the conventions and rename it to DronePoint.
> There is already InjectionPoint and EventPoint in Drone. Having a DronePoint makes perfect sense using this optics.
--
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
10 years, 9 months
[JBoss JIRA] (ARQ-1747) Move InjectionPoint one level up in DroneContext
by Tadeas Kriz (JIRA)
[ https://issues.jboss.org/browse/ARQ-1747?page=com.atlassian.jira.plugin.s... ]
Work on ARQ-1747 started by Tadeas Kriz.
> 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
10 years, 9 months
[JBoss JIRA] (ARQ-1744) Provide metadata storage in DroneContext
by Tadeas Kriz (JIRA)
[ https://issues.jboss.org/browse/ARQ-1744?page=com.atlassian.jira.plugin.s... ]
Tadeas Kriz reassigned ARQ-1744:
--------------------------------
Assignee: Tadeas Kriz
> Provide metadata storage in DroneContext
> ----------------------------------------
>
> Key: ARQ-1744
> URL: https://issues.jboss.org/browse/ARQ-1744
> 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
>
>
> Other extensions might want to store additional data next to Drone callable/instance and its configuration.
> It would be convenient to expose key:String and value:Object storage for storing metadata directly in DroneContext.
> It is not needed to solve conflict anyhow.
--
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
10 years, 9 months