@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.
The method MUST have zero parameters.
There MAY be several methods annotated with @AfterInject
in the same
class.
Example :@EActivity(R.layout.main) public class MyActivityTwo extends Activity { @Bean MyBean myBean; @AfterInject void init() { myBean.doSomeStuff(); } }
AfterViews
Copyright © 2010-2014. All Rights Reserved.