blob: 8e2d830c2eadcaeddcafddbadab94e37f6ff15b2 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_25) on Sat Jun 29 08:36:30 CEST 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>ContextSourceManager (Apache Felix iPOJO ~ JavaDoc 1.10.1 API)</title>
<meta name="date" content="2013-06-29">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ContextSourceManager (Apache Felix iPOJO ~ JavaDoc 1.10.1 API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ContextSourceManager.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/felix/ipojo/util/Callback.html" title="class in org.apache.felix.ipojo.util"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.SourceTracker.html" title="class in org.apache.felix.ipojo.util"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/felix/ipojo/util/ContextSourceManager.html" target="_top">Frames</a></li>
<li><a href="ContextSourceManager.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.felix.ipojo.util</div>
<h2 title="Class ContextSourceManager" class="title">Class ContextSourceManager</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.felix.ipojo.util.ContextSourceManager</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../org/apache/felix/ipojo/ContextListener.html" title="interface in org.apache.felix.ipojo">ContextListener</a></dd>
</dl>
<hr>
<br>
<pre>public class <a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.38">ContextSourceManager</a>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../org/apache/felix/ipojo/ContextListener.html" title="interface in org.apache.felix.ipojo">ContextListener</a></pre>
<div class="block">This class manages context-source management.</div>
<dl><dt><span class="strong">Author:</span></dt>
<dd><a href="mailto:dev@felix.apache.org">Felix Project Team</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.SourceTracker.html" title="class in org.apache.felix.ipojo.util">ContextSourceManager.SourceTracker</a></strong></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Character.html?is-external=true" title="class or interface in java.lang">Character</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#FORBIDDEN_CHARACTERS">FORBIDDEN_CHARACTERS</a></strong></code>
<div class="block">List of characters forbidden in variable names</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#m_context">m_context</a></strong></code>
<div class="block">Bundle context.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="../../../../../org/apache/felix/ipojo/util/DependencyModel.html" title="class in org.apache.felix.ipojo.util">DependencyModel</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#m_dependency">m_dependency</a></strong></code>
<div class="block">Managed dependency.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#m_filter">m_filter</a></strong></code>
<div class="block">Original filter (containing variables).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/felix/ipojo/ContextSource.html" title="interface in org.apache.felix.ipojo">ContextSource</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#m_sources">m_sources</a></strong></code>
<div class="block">List of monitored context sources.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="../../../../../org/apache/felix/ipojo/util/Tracker.html" title="class in org.apache.felix.ipojo.util">Tracker</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#m_tracker">m_tracker</a></strong></code>
<div class="block">The Context-Source service tracker.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#m_variables">m_variables</a></strong></code>
<div class="block">Variables contained in the original filter.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static char</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#VARIABLE_END">VARIABLE_END</a></strong></code>
<div class="block">The variable end</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#VARIABLE_START">VARIABLE_START</a></strong></code>
<div class="block">The variable prefix</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#ContextSourceManager(org.apache.felix.ipojo.util.DependencyModel)">ContextSourceManager</a></strong>(<a href="../../../../../org/apache/felix/ipojo/util/DependencyModel.html" title="class in org.apache.felix.ipojo.util">DependencyModel</a>&nbsp;dependency)</code>
<div class="block">Creates the context source manager.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#addContextSource(org.apache.felix.ipojo.ContextSource)">addContextSource</a></strong>(<a href="../../../../../org/apache/felix/ipojo/ContextSource.html" title="interface in org.apache.felix.ipojo">ContextSource</a>&nbsp;source)</code>
<div class="block">A context source appears.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#computeFilter()">computeFilter</a></strong>()</code>
<div class="block">Compute the new filter.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Character.html?is-external=true" title="class or interface in java.lang">Character</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#containsForbiddenCharacter(java.lang.String)">containsForbiddenCharacter</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#extractVariablesFromFilter(java.lang.String)">extractVariablesFromFilter</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filter)</code>
<div class="block">Extracts the variables (${name}) from the given filter.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#removeContextSource(org.apache.felix.ipojo.ContextSource)">removeContextSource</a></strong>(<a href="../../../../../org/apache/felix/ipojo/ContextSource.html" title="interface in org.apache.felix.ipojo">ContextSource</a>&nbsp;source)</code>
<div class="block">A context source disappears.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#setFilter(java.lang.String)">setFilter</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filter)</code>
<div class="block">Set the filter of the managed dependency.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#start()">start</a></strong>()</code>
<div class="block">Start the context management.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#stop()">stop</a></strong>()</code>
<div class="block">Stop the context management.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#substitute(java.lang.String, java.util.Dictionary)">substitute</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;values)</code>
<div class="block">This method substitutes ${var} substring by values stored in a map.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.html#update(org.apache.felix.ipojo.ContextSource, java.lang.String, java.lang.Object)">update</a></strong>(<a href="../../../../../org/apache/felix/ipojo/ContextSource.html" title="interface in org.apache.felix.ipojo">ContextSource</a>&nbsp;source,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;property,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;value)</code>
<div class="block">A context source has modified a monitored property.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="VARIABLE_START">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>VARIABLE_START</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.43">VARIABLE_START</a></pre>
<div class="block">The variable prefix</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.util.ContextSourceManager.VARIABLE_START">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="VARIABLE_END">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>VARIABLE_END</h4>
<pre>public static final&nbsp;char <a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.48">VARIABLE_END</a></pre>
<div class="block">The variable end</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.util.ContextSourceManager.VARIABLE_END">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FORBIDDEN_CHARACTERS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FORBIDDEN_CHARACTERS</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Character.html?is-external=true" title="class or interface in java.lang">Character</a>&gt; <a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.53">FORBIDDEN_CHARACTERS</a></pre>
<div class="block">List of characters forbidden in variable names</div>
</li>
</ul>
<a name="m_dependency">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_dependency</h4>
<pre>private&nbsp;<a href="../../../../../org/apache/felix/ipojo/util/DependencyModel.html" title="class in org.apache.felix.ipojo.util">DependencyModel</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.59">m_dependency</a></pre>
<div class="block">Managed dependency.</div>
</li>
</ul>
<a name="m_sources">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_sources</h4>
<pre>private&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../../org/apache/felix/ipojo/ContextSource.html" title="interface in org.apache.felix.ipojo">ContextSource</a>&gt; <a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.63">m_sources</a></pre>
<div class="block">List of monitored context sources.</div>
</li>
</ul>
<a name="m_variables">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_variables</h4>
<pre>private&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt; <a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.67">m_variables</a></pre>
<div class="block">Variables contained in the original filter.</div>
</li>
</ul>
<a name="m_filter">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_filter</h4>
<pre>private&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.71">m_filter</a></pre>
<div class="block">Original filter (containing variables).</div>
</li>
</ul>
<a name="m_context">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_context</h4>
<pre>private&nbsp;<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.75">m_context</a></pre>
<div class="block">Bundle context.</div>
</li>
</ul>
<a name="m_tracker">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>m_tracker</h4>
<pre>private&nbsp;<a href="../../../../../org/apache/felix/ipojo/util/Tracker.html" title="class in org.apache.felix.ipojo.util">Tracker</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.79">m_tracker</a></pre>
<div class="block">The Context-Source service tracker.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="ContextSourceManager(org.apache.felix.ipojo.util.DependencyModel)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ContextSourceManager</h4>
<pre>public&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.86">ContextSourceManager</a>(<a href="../../../../../org/apache/felix/ipojo/util/DependencyModel.html" title="class in org.apache.felix.ipojo.util">DependencyModel</a>&nbsp;dependency)
throws <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></pre>
<div class="block">Creates the context source manager.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dependency</code> - the dependency model on which this manager is plugged.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></code></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="substitute(java.lang.String, java.util.Dictionary)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>substitute</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.100">substitute</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;str,
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;values)</pre>
<div class="block">This method substitutes ${var} substring by values stored in a map.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>str</code> - : string with variables</dd><dd><code>values</code> - : dictionary containing the variable name and the value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>resulted string</dd></dl>
</li>
</ul>
<a name="extractVariablesFromFilter(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>extractVariablesFromFilter</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.139">extractVariablesFromFilter</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filter)
throws <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></pre>
<div class="block">Extracts the variables (${name}) from the given filter.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filter</code> - : string form of the filter.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the list of found properties.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></code> - thrown when the variables are not consistent.</dd></dl>
</li>
</ul>
<a name="containsForbiddenCharacter(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsForbiddenCharacter</h4>
<pre>private static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Character.html?is-external=true" title="class or interface in java.lang">Character</a>&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.181">containsForbiddenCharacter</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key)</pre>
</li>
</ul>
<a name="start()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>start</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.194">start</a>()</pre>
<div class="block">Start the context management.</div>
</li>
</ul>
<a name="stop()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stop</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.205">stop</a>()</pre>
<div class="block">Stop the context management.</div>
</li>
</ul>
<a name="setFilter(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFilter</h4>
<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.223">setFilter</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filter)</pre>
<div class="block">Set the filter of the managed dependency.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filter</code> - : the new filter to apply</dd></dl>
</li>
</ul>
<a name="computeFilter()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeFilter</h4>
<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.237">computeFilter</a>()</pre>
<div class="block">Compute the new filter.</div>
</li>
</ul>
<a name="update(org.apache.felix.ipojo.ContextSource, java.lang.String, java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>update</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.258">update</a>(<a href="../../../../../org/apache/felix/ipojo/ContextSource.html" title="interface in org.apache.felix.ipojo">ContextSource</a>&nbsp;source,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;property,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;value)</pre>
<div class="block">A context source has modified a monitored property.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/felix/ipojo/ContextListener.html#update(org.apache.felix.ipojo.ContextSource, java.lang.String, java.lang.Object)">update</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/felix/ipojo/ContextListener.html" title="interface in org.apache.felix.ipojo">ContextListener</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - : source</dd><dd><code>property</code> - : modified property</dd><dd><code>value</code> - : new value.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/felix/ipojo/ContextListener.html#update(org.apache.felix.ipojo.ContextSource, java.lang.String, java.lang.Object)"><code>ContextListener.update(org.apache.felix.ipojo.ContextSource, String, Object)</code></a></dd></dl>
</li>
</ul>
<a name="addContextSource(org.apache.felix.ipojo.ContextSource)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addContextSource</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.267">addContextSource</a>(<a href="../../../../../org/apache/felix/ipojo/ContextSource.html" title="interface in org.apache.felix.ipojo">ContextSource</a>&nbsp;source)</pre>
<div class="block">A context source appears.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - : new context source.</dd></dl>
</li>
</ul>
<a name="removeContextSource(org.apache.felix.ipojo.ContextSource)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>removeContextSource</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/ContextSourceManager.html#line.278">removeContextSource</a>(<a href="../../../../../org/apache/felix/ipojo/ContextSource.html" title="interface in org.apache.felix.ipojo">ContextSource</a>&nbsp;source)</pre>
<div class="block">A context source disappears.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - : leaving context source.</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ContextSourceManager.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/felix/ipojo/util/Callback.html" title="class in org.apache.felix.ipojo.util"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/felix/ipojo/util/ContextSourceManager.SourceTracker.html" title="class in org.apache.felix.ipojo.util"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/felix/ipojo/util/ContextSourceManager.html" target="_top">Frames</a></li>
<li><a href="ContextSourceManager.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2013. All rights reserved.</small></p>
</body>
</html>