@Target(value=FIELD) public @interface Reference
Autowired
annotation is added to the field automatically.Leads to:class MyPage { @Reference MyComponent component static class MyComponent { def void someMethod() { } } }
public class MyPage { public static class MyComponent { public void someMethod() { } } @Autowired private MyPage.MyComponent component; public MyPage.MyComponent getComponent() { return this.component; } }
Copyright © 2018–2020 b+m Informatik AG. All rights reserved.