You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by pd...@apache.org on 2018/10/22 22:13:17 UTC
svn commit: r1844604 -
/felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager/reference/dm-annotations.mdtext
Author: pderop
Date: Mon Oct 22 22:13:17 2018
New Revision: 1844604
URL: http://svn.apache.org/viewvc?rev=1844604&view=rev
Log:
dm r13 updates
Modified:
felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager/reference/dm-annotations.mdtext
Modified: felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager/reference/dm-annotations.mdtext
URL: http://svn.apache.org/viewvc/felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager/reference/dm-annotations.mdtext?rev=1844604&r1=1844603&r2=1844604&view=diff
==============================================================================
--- felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager/reference/dm-annotations.mdtext (original)
+++ felix/site/trunk/content/documentation/subprojects/apache-felix-dependency-manager/reference/dm-annotations.mdtext Mon Oct 22 22:13:17 2018
@@ -1306,22 +1306,15 @@ The following example illustrates a comp
void bind(Dependency2 dep2) {}
// Lifecycle callbacks also applied on the Helper ...
- @Init
- void init() {}
@Start
void start() {}
- @Stop
- void stop() {}
-
- @Destroy()
- void destroy() {}
}
public class Helper {
// Also injected, since we are part of the composition
- Dependency dep;
+ volatile Dependency dep;
// But since we are not interested by the Dependency2, we don't have to declare the bind(Dependency2) method ...
@@ -1335,9 +1328,10 @@ The following example illustrates a comp
}
}
-Here, MyServiceImpl is the main component implementation, but is composed of the Helper object instance. So all Dependencies defined in MyServiceImpl
-will be also injected to the Helper (if the Helper declares the fields or methods). The Helper may also declare lifecycle callbacks (optionally).
-
+Here, MyServiceImpl is the main component implementation, but is composed of the Helper object
+instance. So all Dependencies defined in MyServiceImpl
+will be also injected to the Helper (if the Helper declares the fields or methods).
+The Helper may also define annotated lifecycle callbacks (optionally).
# Service scopes