Author: buildbot
Date: Sat Mar 7 21:47:43 2015
New Revision: 942794
Log:
Staging update by buildbot for felix
Modified:
websites/staging/felix/trunk/content/ (props changed)
websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/reference/dependencies.html
Propchange: websites/staging/felix/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Mar 7 21:47:43 2015
@@ -1 +1 @@
-1664923
+1664924
Modified:
websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/reference/dependencies.html
==============================================================================
---
websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/reference/dependencies.html
(original)
+++
websites/staging/felix/trunk/content/documentation/subprojects/apache-felix-dependency-manager-4/reference/dependencies.html
Sat Mar 7 21:47:43 2015
@@ -86,9 +86,11 @@
<p>However, it's quite easy to add your own custom type of dependency too, as
is described below.</p>
<h2 id="implementing-your-own-dependency">Implementing Your Own Dependency</h2>
<p>All dependencies share a common API which you can implement yourself if you
need a special type of dependency. Whilst not entirely trivial, this allows you
to create your own types of dependencies. This can be useful for various
scenarios where you want to have components that depend on things that are not
services, bundles or configuration.</p>
-<p>An example implementation can be found in one of the many test cases for
the dependency manager: <code>CustomDependencyTest</code>. This implements a
dependency that can be made available and unavailable by manipulating a
<code>Toggle</code> which can be made available or unavailable. You basically
have to implement two interfaces: <code>Dependency</code> and
<code>DependencyActivation</code>. The former contains the bulk of the methods
that you will need to implement and depending on the actual features you want
your dependency to support, you have to implement some or all of them. The
JavaDoc for each method plus the example code should get you started. The
latter contains a couple of life cycle methods to start and stop tracking your
custom dependency.</p>
+<p>An example implementation can be found in the samples available in the
source distribution.
+In the org.apache.felix.dependencymanager.samples module, you can refer to
src/org/apache/felix/dependencymanager/samples/customdep/README file,
+which describes a custom "PathDependency" that tracks files that are added or
removed from /tmp/ directory.</p>
<div class="timestamp" style="margin-top: 30px; font-size: 80%;
text-align: right;">
- Rev. 1664129 by marrs on Wed, 4 Mar 2015 19:59:46 +0000
+ Rev. 1664924 by pderop on Sat, 7 Mar 2015 21:47:30 +0000
</div>
<div class="trademarkFooter">
Apache Felix, Felix, Apache, the Apache feather logo, and the Apache
Felix project