|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=CLASS) @Target(value=METHOD) public @interface AfterInject
Methods annotated with @AfterInject will be called after the
constructor is called in an enhanced class. Any code depending on injected
fields should be done in an AfterInject annotated method.
AfterInject in the same
class.
Example :
@EActivity(R.layout.main)
public class MyActivityTwo extends Activity {
@Bean
MyBean myBean;
@AfterInject
void init() {
myBean.doSomeStuff();
}
}
AfterViews
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||