@Retention(value=CLASS)
@Target(value=FIELD)
public @interface Bean
Injects an EBean
annotated class in an enhanced class.
You can specify a specific implementation to inject using the value attribute.
Example :@EActivity public class MyActivity extends Activity { @Bean MyBean myBean; @Bean(MyBean2.class) MyBean myBean2; } @EBean public class MyBean { } @EBean public class MyBean2 extends MyBean { }
EBean
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<?> |
value |
Copyright © 2010-2014. All Rights Reserved.