[arquillian-issues] [JBoss JIRA] (ARQ-1059) Expose events for instantiation and destruction of drivers
Lukáš Fryč (JIRA)
jira-events at lists.jboss.org
Fri Jul 12 09:05:21 EDT 2013
[ https://issues.jboss.org/browse/ARQ-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789336#comment-12789336 ]
Lukáš Fryč commented on ARQ-1059:
---------------------------------
With introduction of Drone's [Ehnancer|https://github.com/arquillian/arquillian-extension-drone/blob/master/drone-spi/src/main/java/org/jboss/arquillian/drone/spi/Enhancer.java] SPI, those methods are no longer needed.
> Expose events for instantiation and destruction of drivers
> ----------------------------------------------------------
>
> Key: ARQ-1059
> URL: https://issues.jboss.org/browse/ARQ-1059
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Affects Versions: drone_1.1.0.CR2
> Reporter: Lukáš Fryč
> Fix For: drone_1.2.0.next
>
>
> Right now, Graphene needs to wrap all specific factories with higher priority and delegate to original factories - in the process, Graphene creates proxy for real instance (to allow its magic) and during destruction, Graphene "unwraps" original instance and pass it to real implementation.
> It forces Graphene reflect changes in drivers implemented by Drone and ties it to the particular version of Drone.
> ---
> The suggested events should allow listeners to "modify" the created instance (e.g. Graphene could then provide its proxy instead and setup real implementation to context).
> Similarly during destruction, event should be fired before {{destroy}} method, which would allow to reflect changes and provide the real instance to be destroyed (Graphene would unwrap proxy and pass real driver instance to destroy and reset the context).
--
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