]
Lukáš Fryč updated ARQGRA-295:
------------------------------
Fix Version/s: 2.2-Tracking
(was: 2.1-Tracking)
Provide more convenient way for Interceptors
registration/unregistration
-------------------------------------------------------------------------
Key: ARQGRA-295
URL:
https://issues.jboss.org/browse/ARQGRA-295
Project: Arquillian Graphene
Issue Type: Feature Request
Components: api, core
Affects Versions: 2.0.0.Alpha4
Reporter: Juraj Húska
Priority: Minor
Fix For: 2.2-Tracking
It would be nice to have a more simple way of registering/unregistering Interceptors.
Currently this is supported:
{code}
GrapheneProxyInstance proxy = (GrapheneProxyInstance) webdriver;
proxy.registerInterceptor(new SearchContextInterceptor());
{code}
It would be nice to have something like:
{code}
Graphene.registerInterceptor(new SearchContextInterceptor());
{code}
It will be also good to choose class and method which will be intercepted.
The above mentioned is just minimum.
IMHO it would be awesome to provide way how to register interceptors like it is done in
Java EE:
{code}
@Interceptor(MyCustomInterceptor.class)
public void testFooBar() {
...
}
{code}