blob: 7ccc238c5b8e2e1fb31d90a515c28350f53becaa [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 Mon Mar 31 09:56:28 CEST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>InstanceHandler (Apache Felix iPOJO ~ JavaDoc 1.11.2 API)</title>
<meta name="date" content="2014-03-31">
<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="InstanceHandler (Apache Felix iPOJO ~ JavaDoc 1.11.2 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/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 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="strong">Next 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 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.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/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><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="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>(package private) class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.ManagedConfiguration.html" title="class in org.apache.felix.ipojo.composite.instance">InstanceHandler.ManagedConfiguration</a></strong></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="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>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><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#m_configurations">m_configurations</a></strong></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><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#m_description">m_description</a></strong></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><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#m_factories">m_factories</a></strong></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><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#m_scope">m_scope</a></strong></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="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/composite/instance/InstanceHandler.html#InstanceHandler()">InstanceHandler</a></strong>()</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="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/composite/instance/InstanceHandler.html#bindFactory(org.apache.felix.ipojo.Factory)">bindFactory</a></strong>(<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 class="rowColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#checkValidity()">checkValidity</a></strong>()</code>
<div class="block">Check handler validity.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#configure(org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)">configure</a></strong>(<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/7/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 class="rowColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><strong><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></strong>(<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 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><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#getDescription()">getDescription</a></strong>()</code>
<div class="block">Return the handler description, i.e.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><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></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#getObjectFromInstance(java.lang.String)">getObjectFromInstance</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;type)</code>
<div class="block">Method returning an instance object of the given component type.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><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></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#getUsedType()">getUsedType</a></strong>()</code>
<div class="block">Get the list of used component type.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#parseInstance(org.apache.felix.ipojo.metadata.Element)">parseInstance</a></strong>(<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 class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#parseProperty(org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)">parseProperty</a></strong>(<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/7/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 class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#reconfigure(java.util.Dictionary)">reconfigure</a></strong>(<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;configuration)</code>
<div class="block">The composite is reconfigured, we check if we have a property to change.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#start()">start</a></strong>()</code>
<div class="block">Start method.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#stateChanged(org.apache.felix.ipojo.ComponentInstance, int)">stateChanged</a></strong>(<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 class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#stop()">stop</a></strong>()</code>
<div class="block">Stop all created instances.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/felix/ipojo/composite/instance/InstanceHandler.html#unbindFactory(org.apache.felix.ipojo.Factory)">unbindFactory</a></strong>(<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/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="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="strong">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="strong">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="strong">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><strong>Specified by:</strong></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/7/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><strong>Specified by:</strong></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="strong">Parameters:</span></dt><dd><code>metadata</code> - : component type metadata.</dd><dd><code>configuration</code> - : instance configuration.</dd>
<dt><span class="strong">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="strong">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/7/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="strong">Parameters:</span></dt><dd><code>instance</code> - : the Element describing an instance.</dd>
<dt><span class="strong">Returns:</span></dt><dd>: the resulting dictionary</dd>
<dt><span class="strong">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/7/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="strong">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="strong">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><strong>Specified by:</strong></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="strong">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><strong>Specified by:</strong></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="strong">Parameters:</span></dt><dd><code>instance</code> - : instance</dd><dd><code>newState</code> - : the now state of the given instance</dd><dt><span class="strong">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/7/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/7/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="strong">Parameters:</span></dt><dd><code>type</code> - : type.</dd>
<dt><span class="strong">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><strong>Overrides:</strong></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="strong">Returns:</span></dt><dd>the handler description.</dd><dt><span class="strong">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/7/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="strong">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/7/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><strong>Overrides:</strong></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="strong">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><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/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 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="strong">Next 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 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; 2014. All rights reserved.</small></p>
</body>
</html>