blob: f8e9b06e347379bbce6e3fafe87849f41caf0883 [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 (1.8.0) on Wed Dec 24 15:58:27 CET 2014 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>InstanceHandler (Apache Felix iPOJO ~ JavaDoc 1.12.1 API)</title>
<meta name="date" content="2014-12-24">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="InstanceHandler (Apache Felix iPOJO ~ JavaDoc 1.12.1 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":9,"i8":9,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<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/InstanceHandler.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>Prev&nbsp;Class</li>
<li><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.ManagedConfiguration.html" title="class in org.apache.felix.ipojo.composite.instance"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/felix/ipojo/composite/instance/InstanceHandler.html" target="_top">Frames</a></li>
<li><a href="InstanceHandler.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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.composite.instance</div>
<h2 title="Class InstanceHandler" class="title">Class InstanceHandler</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/8/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><a href="../../../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">org.apache.felix.ipojo.Handler</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../org/apache/felix/ipojo/composite/CompositeHandler.html" title="class in org.apache.felix.ipojo.composite">org.apache.felix.ipojo.composite.CompositeHandler</a></li>
<li>
<ul class="inheritance">
<li>org.apache.felix.ipojo.composite.instance.InstanceHandler</li>
</ul>
</li>
</ul>
</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/InstanceStateListener.html" title="interface in org.apache.felix.ipojo">InstanceStateListener</a></dd>
</dl>
<hr>
<br>
<pre>public class <a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.46">InstanceHandler</a>
extends <a href="../../../../../../org/apache/felix/ipojo/composite/CompositeHandler.html" title="class in org.apache.felix.ipojo.composite">CompositeHandler</a>
implements <a href="../../../../../../org/apache/felix/ipojo/InstanceStateListener.html" title="interface in org.apache.felix.ipojo">InstanceStateListener</a></pre>
<div class="block">Composite Instance Handler.
This handler allows creating an instance inside a composite.
This instance is determine by its type and a configuration.</div>
<dl>
<dt><span class="simpleTagLabel">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="memberSummary" 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>(package private) class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.ManagedConfiguration.html" title="class in org.apache.felix.ipojo.composite.instance">InstanceHandler.ManagedConfiguration</a></span></code>
<div class="block">This structure aims to manage a configuration.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" 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>private <a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.ManagedConfiguration.html" title="class in org.apache.felix.ipojo.composite.instance">InstanceHandler.ManagedConfiguration</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#m_configurations">m_configurations</a></span></code>
<div class="block">Configurations to create and maintains.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandlerDescription.html" title="class in org.apache.felix.ipojo.composite.instance">InstanceHandlerDescription</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#m_description">m_description</a></span></code>
<div class="block">Handler description.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="../../../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a>[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#m_factories">m_factories</a></span></code>
<div class="block">Available factories.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="../../../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#m_scope">m_scope</a></span></code>
<div class="block">Internal context.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.felix.ipojo.composite.CompositeHandler">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.felix.ipojo.composite.<a href="../../../../../../org/apache/felix/ipojo/composite/CompositeHandler.html" title="class in org.apache.felix.ipojo.composite">CompositeHandler</a></h3>
<code><a href="../../../../../../org/apache/felix/ipojo/composite/CompositeHandler.html#HANDLER_TYPE">HANDLER_TYPE</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.felix.ipojo.Handler">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.felix.ipojo.<a href="../../../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></h3>
<code><a href="../../../../../../org/apache/felix/ipojo/Handler.html#HANDLER_LEVEL_PROPERTY">HANDLER_LEVEL_PROPERTY</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#HANDLER_NAME_PROPERTY">HANDLER_NAME_PROPERTY</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#HANDLER_NAMESPACE_PROPERTY">HANDLER_NAMESPACE_PROPERTY</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#HANDLER_TYPE_PROPERTY">HANDLER_TYPE_PROPERTY</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#m_instance">m_instance</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#m_isValid">m_isValid</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" 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><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#InstanceHandler--">InstanceHandler</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#bindFactory-org.apache.felix.ipojo.Factory-">bindFactory</a></span>(<a href="../../../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a>&nbsp;factory)</code>
<div class="block">A new valid factory appears.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#checkValidity--">checkValidity</a></span>()</code>
<div class="block">Check handler validity.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#configure-org.apache.felix.ipojo.metadata.Element-java.util.Dictionary-">configure</a></span>(<a href="../../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;metadata,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;configuration)</code>
<div class="block">Configure method.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#createInstance-org.apache.felix.ipojo.Factory-org.apache.felix.ipojo.composite.instance.InstanceHandler.ManagedConfiguration-">createInstance</a></span>(<a href="../../../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a>&nbsp;fact,
<a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.ManagedConfiguration.html" title="class in org.apache.felix.ipojo.composite.instance">InstanceHandler.ManagedConfiguration</a>&nbsp;config)</code>
<div class="block">Create an instance using the given factory and the given configuration.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/felix/ipojo/architecture/HandlerDescription.html" title="class in org.apache.felix.ipojo.architecture">HandlerDescription</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#getDescription--">getDescription</a></span>()</code>
<div class="block">Return the handler description, i.e.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#getObjectFromInstance-java.lang.String-">getObjectFromInstance</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;type)</code>
<div class="block">Method returning an instance object of the given component type.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#getUsedType--">getUsedType</a></span>()</code>
<div class="block">Get the list of used component type.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#parseInstance-org.apache.felix.ipojo.metadata.Element-">parseInstance</a></span>(<a href="../../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;instance)</code>
<div class="block">Parse an Element to get a dictionary.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#parseProperty-org.apache.felix.ipojo.metadata.Element-java.util.Dictionary-">parseProperty</a></span>(<a href="../../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;prop,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;dict)</code>
<div class="block">Parse a property.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#reconfigure-java.util.Dictionary-">reconfigure</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;configuration)</code>
<div class="block">The composite is reconfigured, we check if we have a property to change.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#start--">start</a></span>()</code>
<div class="block">Start method.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#stateChanged-org.apache.felix.ipojo.ComponentInstance-int-">stateChanged</a></span>(<a href="../../../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a>&nbsp;instance,
int&nbsp;newState)</code>
<div class="block">Instance state listener.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#stop--">stop</a></span>()</code>
<div class="block">Stop all created instances.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#unbindFactory-org.apache.felix.ipojo.Factory-">unbindFactory</a></span>(<a href="../../../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a>&nbsp;factory)</code>
<div class="block">An existing factory disappears or becomes invalid.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.felix.ipojo.composite.CompositeHandler">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.felix.ipojo.composite.<a href="../../../../../../org/apache/felix/ipojo/composite/CompositeHandler.html" title="class in org.apache.felix.ipojo.composite">CompositeHandler</a></h3>
<code><a href="../../../../../../org/apache/felix/ipojo/composite/CompositeHandler.html#attach-org.apache.felix.ipojo.ComponentInstance-">attach</a>, <a href="../../../../../../org/apache/felix/ipojo/composite/CompositeHandler.html#getCompositeManager--">getCompositeManager</a>, <a href="../../../../../../org/apache/felix/ipojo/composite/CompositeHandler.html#getHandler-java.lang.String-">getHandler</a>, <a href="../../../../../../org/apache/felix/ipojo/composite/CompositeHandler.html#getLogger--">getLogger</a>, <a href="../../../../../../org/apache/felix/ipojo/composite/CompositeHandler.html#setFactory-org.apache.felix.ipojo.Factory-">setFactory</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.felix.ipojo.Handler">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.felix.ipojo.<a href="../../../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></h3>
<code><a href="../../../../../../org/apache/felix/ipojo/Handler.html#debug-java.lang.String-">debug</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#error-java.lang.String-">error</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#error-java.lang.String-java.lang.Throwable-">error</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#getHandlerManager--">getHandlerManager</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#getValidity--">getValidity</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#info-java.lang.String-">info</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#initializeComponentFactory-org.apache.felix.ipojo.architecture.ComponentTypeDescription-org.apache.felix.ipojo.metadata.Element-">initializeComponentFactory</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#isValid--">isValid</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#setValidity-boolean-">setValidity</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#stateChanged-int-">stateChanged</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#warn-java.lang.String-">warn</a>, <a href="../../../../../../org/apache/felix/ipojo/Handler.html#warn-java.lang.String-java.lang.Throwable-">warn</a></code></li>
</ul>
<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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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="m_scope">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_scope</h4>
<pre>private&nbsp;<a href="../../../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a> <a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.51">m_scope</a></pre>
<div class="block">Internal context.</div>
</li>
</ul>
<a name="m_factories">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_factories</h4>
<pre>private&nbsp;<a href="../../../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a>[] <a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.56">m_factories</a></pre>
<div class="block">Available factories.</div>
</li>
</ul>
<a name="m_description">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_description</h4>
<pre>private&nbsp;<a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandlerDescription.html" title="class in org.apache.felix.ipojo.composite.instance">InstanceHandlerDescription</a> <a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.61">m_description</a></pre>
<div class="block">Handler description.</div>
</li>
</ul>
<a name="m_configurations">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>m_configurations</h4>
<pre>private&nbsp;<a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.ManagedConfiguration.html" title="class in org.apache.felix.ipojo.composite.instance">InstanceHandler.ManagedConfiguration</a>[] <a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.149">m_configurations</a></pre>
<div class="block">Configurations to create and maintains.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="InstanceHandler--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>InstanceHandler</h4>
<pre>public&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.46">InstanceHandler</a>()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="createInstance-org.apache.felix.ipojo.Factory-org.apache.felix.ipojo.composite.instance.InstanceHandler.ManagedConfiguration-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createInstance</h4>
<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.157">createInstance</a>(<a href="../../../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a>&nbsp;fact,
<a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.ManagedConfiguration.html" title="class in org.apache.felix.ipojo.composite.instance">InstanceHandler.ManagedConfiguration</a>&nbsp;config)</pre>
<div class="block">Create an instance using the given factory and the given configuration.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fact</code> - : the factory name to used.</dd>
<dd><code>config</code> - : the configuration.</dd>
</dl>
</li>
</ul>
<a name="bindFactory-org.apache.felix.ipojo.Factory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bindFactory</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.176">bindFactory</a>(<a href="../../../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a>&nbsp;factory)</pre>
<div class="block">A new valid factory appears.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>factory</code> - : factory.</dd>
</dl>
</li>
</ul>
<a name="unbindFactory-org.apache.felix.ipojo.Factory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unbindFactory</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.197">unbindFactory</a>(<a href="../../../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a>&nbsp;factory)</pre>
<div class="block">An existing factory disappears or becomes invalid.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>factory</code> - : factory</dd>
</dl>
</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/composite/instance/InstanceHandler.html#line.215">stop</a>()</pre>
<div class="block">Stop all created instances.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/Handler.html#stop--">stop</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></code></dd>
</dl>
</li>
</ul>
<a name="configure-org.apache.felix.ipojo.metadata.Element-java.util.Dictionary-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>configure</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.236">configure</a>(<a href="../../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;metadata,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;configuration)
throws <a href="../../../../../../org/apache/felix/ipojo/ConfigurationException.html" title="class in org.apache.felix.ipojo">ConfigurationException</a></pre>
<div class="block">Configure method.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/Handler.html#configure-org.apache.felix.ipojo.metadata.Element-java.util.Dictionary-">configure</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>metadata</code> - : component type metadata.</dd>
<dd><code>configuration</code> - : instance configuration.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/ConfigurationException.html" title="class in org.apache.felix.ipojo">ConfigurationException</a></code> - : occurs an instance cannot be parsed correctly.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/felix/ipojo/Handler.html#configure-org.apache.felix.ipojo.metadata.Element-java.util.Dictionary-"><code>Handler.configure(org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)</code></a></dd>
</dl>
</li>
</ul>
<a name="parseInstance-org.apache.felix.ipojo.metadata.Element-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseInstance</h4>
<pre>public static&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a>&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.276">parseInstance</a>(<a href="../../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;instance)
throws <a href="../../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre>
<div class="block">Parse an Element to get a dictionary.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - : the Element describing an instance.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>: the resulting dictionary</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - : occurs when a configuration cannot be parse correctly.</dd>
</dl>
</li>
</ul>
<a name="parseProperty-org.apache.felix.ipojo.metadata.Element-java.util.Dictionary-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseProperty</h4>
<pre>public static&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.304">parseProperty</a>(<a href="../../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a>&nbsp;prop,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;dict)
throws <a href="../../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></pre>
<div class="block">Parse a property.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>prop</code> - : the current element to parse</dd>
<dd><code>dict</code> - : the dictionary to populate</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/parser/ParseException.html" title="class in org.apache.felix.ipojo.parser">ParseException</a></code> - : occurs if the property cannot be parsed correctly</dd>
</dl>
</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/composite/instance/InstanceHandler.html#line.329">start</a>()</pre>
<div class="block">Start method.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/Handler.html#start--">start</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></code></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/felix/ipojo/Handler.html#start--"><code>Handler.start()</code></a></dd>
</dl>
</li>
</ul>
<a name="checkValidity--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkValidity</h4>
<pre>private&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.346">checkValidity</a>()</pre>
<div class="block">Check handler validity.
The method updates the validity of the handler.</div>
</li>
</ul>
<a name="stateChanged-org.apache.felix.ipojo.ComponentInstance-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stateChanged</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.363">stateChanged</a>(<a href="../../../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a>&nbsp;instance,
int&nbsp;newState)</pre>
<div class="block">Instance state listener.
This method listens when managed instance states change.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/InstanceStateListener.html#stateChanged-org.apache.felix.ipojo.ComponentInstance-int-">stateChanged</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/InstanceStateListener.html" title="interface in org.apache.felix.ipojo">InstanceStateListener</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>instance</code> - : instance</dd>
<dd><code>newState</code> - : the now state of the given instance</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/felix/ipojo/InstanceStateListener.html#stateChanged-org.apache.felix.ipojo.ComponentInstance-int-"><code>InstanceStateListener.stateChanged(org.apache.felix.ipojo.ComponentInstance, int)</code></a></dd>
</dl>
</li>
</ul>
<a name="getObjectFromInstance-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getObjectFromInstance</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.391">getObjectFromInstance</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;type)</pre>
<div class="block">Method returning an instance object of the given component type.
This method must be called only on 'primitive' type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - : type.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an instance object or null if not found.</dd>
</dl>
</li>
</ul>
<a name="getDescription--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDescription</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/felix/ipojo/architecture/HandlerDescription.html" title="class in org.apache.felix.ipojo.architecture">HandlerDescription</a>&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.411">getDescription</a>()</pre>
<div class="block">Return the handler description, i.e. the state of created instances.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/Handler.html#getDescription--">getDescription</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the handler description.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/felix/ipojo/Handler.html#getDescription--"><code>Handler.getDescription()</code></a></dd>
</dl>
</li>
</ul>
<a name="getUsedType--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUsedType</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.419">getUsedType</a>()</pre>
<div class="block">Get the list of used component type.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the list containing the used component type</dd>
</dl>
</li>
</ul>
<a name="reconfigure-java.util.Dictionary-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>reconfigure</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/felix/ipojo/composite/instance/InstanceHandler.html#line.432">reconfigure</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&nbsp;configuration)</pre>
<div class="block">The composite is reconfigured, we check if we have a property to change.
We reconfigure all contained instances.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="../../../../../../org/apache/felix/ipojo/Handler.html#reconfigure-java.util.Dictionary-">reconfigure</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>configuration</code> - the new instance configuration</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>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<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/InstanceHandler.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>Prev&nbsp;Class</li>
<li><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.ManagedConfiguration.html" title="class in org.apache.felix.ipojo.composite.instance"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/felix/ipojo/composite/instance/InstanceHandler.html" target="_top">Frames</a></li>
<li><a href="InstanceHandler.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;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; 2014. All rights reserved.</small></p>
</body>
</html>