You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
Commit af57bfe
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-core/androidannotations-api/src/main/java/org/androidannotations/annotations/EBean.java
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,22 @@ enum Scope {
110
110
*/
111
111
Default, //
112
112
113
+
/**
114
+
* A new instance of the bean is created the first time it is needed in an
115
+
* Activity scope, it is then retained and the same instance is always returned
116
+
* from within the same Activity. Different Activities hold different copies of
117
+
* the bean.
118
+
*/
119
+
Activity,
120
+
121
+
/**
122
+
* A new instance of the bean is created the first time it is needed in a
123
+
* Fragment scope, it is then retained and the same instance is always returned
124
+
* from within the same Fragment. Different Fragments hold different copies of
125
+
* the bean.
126
+
*/
127
+
Fragment,
128
+
113
129
/**
114
130
* A new instance of the bean is created the first time it is needed, it is then
115
131
* retained and the same instance is always returned.
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-core/androidannotations-test/src/main/java/org/androidannotations/test/ebean/BeanInjectedActivity.java
+36-4Lines changed: 36 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -33,17 +33,29 @@ public class BeanInjectedActivity extends Activity {
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-core/androidannotations-test/src/main/java/org/androidannotations/test/ebean/CustomFragment.java
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,4 +32,13 @@ public class CustomFragment extends Fragment {
Copy file name to clipboardExpand all lines: AndroidAnnotations/androidannotations-core/androidannotations-test/src/main/java/org/androidannotations/test/ebean/DifferentFragment.java
0 commit comments