org.androidannotations.annotations
Annotation Type Bean


@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 {
 }
 

See Also:
EBean

Optional Element Summary
 Class<?> value
           
 

value

public abstract Class<?> value
Default:
java.lang.Void.class


Copyright © 2010-2014. All Rights Reserved.