| <!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:25 CET 2014 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>ComponentFactory (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="ComponentFactory (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":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10}; |
| var tabs = {65535:["t0","All 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/ComponentFactory.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/ComponentInstance.html" title="interface in org.apache.felix.ipojo"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/felix/ipojo/ComponentFactory.html" target="_top">Frames</a></li> |
| <li><a href="ComponentFactory.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: </li> |
| <li><a href="#nested.classes.inherited.from.class.org.apache.felix.ipojo.IPojoFactory">Nested</a> | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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</div> |
| <h2 title="Class ComponentFactory" class="title">Class ComponentFactory</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/IPojoFactory.html" title="class in org.apache.felix.ipojo">org.apache.felix.ipojo.IPojoFactory</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.felix.ipojo.ComponentFactory</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/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a>, <a href="../../../../org/apache/felix/ipojo/util/TrackerCustomizer.html" title="interface in org.apache.felix.ipojo.util">TrackerCustomizer</a></dd> |
| </dl> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/composite/CompositeFactory.html" title="class in org.apache.felix.ipojo.composite">CompositeFactory</a>, <a href="../../../../org/apache/felix/ipojo/HandlerManagerFactory.html" title="class in org.apache.felix.ipojo">HandlerManagerFactory</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.48">ComponentFactory</a> |
| extends <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html" title="class in org.apache.felix.ipojo">IPojoFactory</a> |
| implements <a href="../../../../org/apache/felix/ipojo/util/TrackerCustomizer.html" title="interface in org.apache.felix.ipojo.util">TrackerCustomizer</a></pre> |
| <div class="block">The component factory manages component instance objects. This management |
| consists to create and manage component instances build with the current |
| component factory. If the factory is public a <a href="../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo"><code>Factory</code></a> service is exposed.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Author:</span></dt> |
| <dd><a href="mailto:dev@felix.apache.org">Felix Project Team</a></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo"><code>Factory</code></a>, |
| <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html" title="class in org.apache.felix.ipojo"><code>IPojoFactory</code></a>, |
| <a href="../../../../org/apache/felix/ipojo/util/TrackerCustomizer.html" title="interface in org.apache.felix.ipojo.util"><code>TrackerCustomizer</code></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> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.felix.ipojo.IPojoFactory"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from class org.apache.felix.ipojo.<a href="../../../../org/apache/felix/ipojo/IPojoFactory.html" title="class in org.apache.felix.ipojo">IPojoFactory</a></h3> |
| <code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.DefaultNameGenerator.html" title="class in org.apache.felix.ipojo">IPojoFactory.DefaultNameGenerator</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.NameGenerator.html" title="interface in org.apache.felix.ipojo">IPojoFactory.NameGenerator</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.RequiredHandler.html" title="class in org.apache.felix.ipojo">IPojoFactory.RequiredHandler</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.RetryNameGenerator.html" title="class in org.apache.felix.ipojo">IPojoFactory.RetryNameGenerator</a></code></li> |
| </ul> |
| </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"> </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/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#HANDLER_AUTO_PRIMITIVE">HANDLER_AUTO_PRIMITIVE</a></span></code> |
| <div class="block">System property set to automatically attach primitive handlers to primitive |
| component types.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="../../../../org/apache/felix/ipojo/FactoryClassloader.html" title="class in org.apache.felix.ipojo">FactoryClassloader</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#m_classLoader">m_classLoader</a></span></code> |
| <div class="block">The class loader to delegate classloading.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <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></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#m_classname">m_classname</a></span></code> |
| <div class="block">The component implementation qualified class name.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#m_clazz">m_clazz</a></span></code> |
| <div class="block">The component implementation class.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <a href="../../../../org/apache/felix/ipojo/parser/PojoMetadata.html" title="class in org.apache.felix.ipojo.parser">PojoMetadata</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#m_manipulation">m_manipulation</a></span></code> |
| <div class="block">The manipulation metadata of the implementation class.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected <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><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#m_tracker">m_tracker</a></span></code> |
| <div class="block">The tracker used to track required handler factories.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#m_useFactoryClassloader">m_useFactoryClassloader</a></span></code> |
| <div class="block">A flag enabling / disabling the use of the Factory classloader to define the class.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.apache.felix.ipojo.IPojoFactory"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.apache.felix.ipojo.<a href="../../../../org/apache/felix/ipojo/IPojoFactory.html" title="class in org.apache.felix.ipojo">IPojoFactory</a></h3> |
| <code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#INSTANCE_NAME">INSTANCE_NAME</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#m_componentDesc">m_componentDesc</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#m_componentInstances">m_componentInstances</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#m_componentMetadata">m_componentMetadata</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#m_context">m_context</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#m_factoryName">m_factoryName</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#m_isPublic">m_isPublic</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#m_listeners">m_listeners</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#m_logger">m_logger</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#m_requiredHandlers">m_requiredHandlers</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#m_sr">m_sr</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#m_state">m_state</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#m_version">m_version</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.apache.felix.ipojo.Factory"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from interface org.apache.felix.ipojo.<a href="../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a></h3> |
| <code><a href="../../../../org/apache/felix/ipojo/Factory.html#FACTORY_VERSION_PROPERTY">FACTORY_VERSION_PROPERTY</a>, <a href="../../../../org/apache/felix/ipojo/Factory.html#INSTANCE_NAME_PROPERTY">INSTANCE_NAME_PROPERTY</a>, <a href="../../../../org/apache/felix/ipojo/Factory.html#INVALID">INVALID</a>, <a href="../../../../org/apache/felix/ipojo/Factory.html#VALID">VALID</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"> </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/ComponentFactory.html#ComponentFactory-BundleContext-byte:A-org.apache.felix.ipojo.metadata.Element-">ComponentFactory</a></span>(BundleContext context, |
| byte[] clazz, |
| <a href="../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> element)</code> |
| <div class="block">Creates a instance manager factory.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#ComponentFactory-BundleContext-org.apache.felix.ipojo.metadata.Element-">ComponentFactory</a></span>(BundleContext context, |
| <a href="../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> element)</code> |
| <div class="block">Creates a instance manager factory.</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="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"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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/ComponentFactory.html#addedService-ServiceReference-">addedService</a></span>(ServiceReference reference)</code> |
| <div class="block">This method is called when a matching service has been added to the tracker, |
| we can no compute the factory state.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#addingService-ServiceReference-">addingService</a></span>(ServiceReference reference)</code> |
| <div class="block">This method is called when a new handler factory is detected.</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/ComponentFactory.html#check-org.apache.felix.ipojo.metadata.Element-">check</a></span>(<a href="../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> element)</code> |
| <div class="block">Allows a factory to check if the given element is well-formed.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#createInstance-java.util.Dictionary-org.apache.felix.ipojo.IPojoContext-org.apache.felix.ipojo.HandlerManager:A-">createInstance</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> config, |
| <a href="../../../../org/apache/felix/ipojo/IPojoContext.html" title="class in org.apache.felix.ipojo">IPojoContext</a> context, |
| <a href="../../../../org/apache/felix/ipojo/HandlerManager.html" title="class in org.apache.felix.ipojo">HandlerManager</a>[] handlers)</code> |
| <div class="block">Creates a primitive instance.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <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/ComponentFactory.html#defineClass-java.lang.String-byte:A-java.security.ProtectionDomain-">defineClass</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> name, |
| byte[] clazz, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/security/ProtectionDomain.html?is-external=true" title="class or interface in java.security">ProtectionDomain</a> domain)</code> |
| <div class="block">Defines a class.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#getBundleClassLoader--">getBundleClassLoader</a></span>()</code> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><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></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#getClassName--">getClassName</a></span>()</code> |
| <div class="block">Gets the class name.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/ipojo/architecture/ComponentTypeDescription.html" title="class in org.apache.felix.ipojo.architecture">ComponentTypeDescription</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#getComponentTypeDescription--">getComponentTypeDescription</a></span>()</code> |
| <div class="block">Gets the component type description of the current factory.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code><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></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#getFactoryName--">getFactoryName</a></span>()</code> |
| <div class="block">Computes the factory name.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/ipojo/parser/PojoMetadata.html" title="class in org.apache.felix.ipojo.parser">PojoMetadata</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#getPojoMetadata--">getPojoMetadata</a></span>()</code> |
| <div class="block">Returns manipulation metadata of this component type.</div> |
| </td> |
| </tr> |
| <tr id="i10" 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><<a href="../../../../org/apache/felix/ipojo/IPojoFactory.RequiredHandler.html" title="class in org.apache.felix.ipojo">IPojoFactory.RequiredHandler</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#getRequiredHandlerList--">getRequiredHandlerList</a></span>()</code> |
| <div class="block">Computes required handlers.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code><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></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#getVersion--">getVersion</a></span>()</code> |
| <div class="block">Gets the version of the component type.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#loadClass-java.lang.String-">loadClass</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> className)</code> |
| <div class="block">Loads a class.</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/ComponentFactory.html#modifiedService-ServiceReference-java.lang.Object-">modifiedService</a></span>(ServiceReference reference, |
| <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> service)</code> |
| <div class="block">This method is called when a used handler factory is modified.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#removedService-ServiceReference-java.lang.Object-">removedService</a></span>(ServiceReference reference, |
| <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> service)</code> |
| <div class="block">This method is called when a used handler factory disappears.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#setUseFactoryClassloader-boolean-">setUseFactoryClassloader</a></span>(boolean use)</code> |
| <div class="block">Sets the flag enabling / disabling the factory classloader.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#starting--">starting</a></span>()</code> |
| <div class="block">Starts the factory.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#stopping--">stopping</a></span>()</code> |
| <div class="block">Stops all the instance managers.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.felix.ipojo.IPojoFactory"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.felix.ipojo.<a href="../../../../org/apache/felix/ipojo/IPojoFactory.html" title="class in org.apache.felix.ipojo">IPojoFactory</a></h3> |
| <code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#addFactoryStateListener-org.apache.felix.ipojo.FactoryStateListener-">addFactoryStateListener</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#checkAcceptability-java.util.Dictionary-">checkAcceptability</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#computeDescription--">computeDescription</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#computeFactoryState--">computeFactoryState</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#createComponentInstance-java.util.Dictionary-">createComponentInstance</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#createComponentInstance-java.util.Dictionary-org.apache.felix.ipojo.ServiceContext-">createComponentInstance</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#deleted-java.lang.String-">deleted</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#dispose--">dispose</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#disposed-org.apache.felix.ipojo.ComponentInstance-">disposed</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getBundleContext--">getBundleContext</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getComponentDescription--">getComponentDescription</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getComponentMetadata--">getComponentMetadata</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getDescription--">getDescription</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getHandler-org.apache.felix.ipojo.IPojoFactory.RequiredHandler-org.apache.felix.ipojo.ServiceContext-">getHandler</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getInstanceByName-java.lang.String-">getInstanceByName</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getInstances--">getInstances</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getInstancesNames--">getInstancesNames</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getIPOJOBundleContext--">getIPOJOBundleContext</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getLogger--">getLogger</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getMissingHandlers--">getMissingHandlers</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getName--">getName</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getRequiredHandlers--">getRequiredHandlers</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getState--">getState</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#isAcceptable-java.util.Dictionary-">isAcceptable</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#match-org.apache.felix.ipojo.IPojoFactory.RequiredHandler--">match</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#reconfigure-java.util.Dictionary-">reconfigure</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#removeFactoryStateListener-org.apache.felix.ipojo.FactoryStateListener-">removeFactoryStateListener</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#restart--">restart</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#start--">start</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#stop--">stop</a>, <a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#updated-java.lang.String-java.util.Dictionary-">updated</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 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="HANDLER_AUTO_PRIMITIVE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>HANDLER_AUTO_PRIMITIVE</h4> |
| <pre>public static final <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> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.56">HANDLER_AUTO_PRIMITIVE</a></pre> |
| <div class="block">System property set to automatically attach primitive handlers to primitive |
| component types. |
| The value is a String parsed as a list (comma separated). Each element is |
| the fully qualified name of the handler <code>namespace:name</code>.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../constant-values.html#org.apache.felix.ipojo.ComponentFactory.HANDLER_AUTO_PRIMITIVE">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="m_tracker"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_tracker</h4> |
| <pre>protected <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/ComponentFactory.html#line.61">m_tracker</a></pre> |
| <div class="block">The tracker used to track required handler factories. |
| Immutable once set.</div> |
| </li> |
| </ul> |
| <a name="m_classLoader"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_classLoader</h4> |
| <pre>private <a href="../../../../org/apache/felix/ipojo/FactoryClassloader.html" title="class in org.apache.felix.ipojo">FactoryClassloader</a> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.66">m_classLoader</a></pre> |
| <div class="block">The class loader to delegate classloading. |
| Immutable once set.</div> |
| </li> |
| </ul> |
| <a name="m_clazz"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_clazz</h4> |
| <pre>private byte[] <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.71">m_clazz</a></pre> |
| <div class="block">The component implementation class. |
| (manipulated byte array)</div> |
| </li> |
| </ul> |
| <a name="m_classname"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_classname</h4> |
| <pre>private <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> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.77">m_classname</a></pre> |
| <div class="block">The component implementation qualified class name. |
| Immutable once set. |
| This attribute is set during the creation of the factory.</div> |
| </li> |
| </ul> |
| <a name="m_manipulation"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_manipulation</h4> |
| <pre>private <a href="../../../../org/apache/felix/ipojo/parser/PojoMetadata.html" title="class in org.apache.felix.ipojo.parser">PojoMetadata</a> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.83">m_manipulation</a></pre> |
| <div class="block">The manipulation metadata of the implementation class. |
| Immutable once set. |
| This attribute is set during the creation of the factory.</div> |
| </li> |
| </ul> |
| <a name="m_useFactoryClassloader"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>m_useFactoryClassloader</h4> |
| <pre>private boolean <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.88">m_useFactoryClassloader</a></pre> |
| <div class="block">A flag enabling / disabling the use of the Factory classloader to define the class. |
| This flag must be enabled if the component class was manipulated on the fly.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="ComponentFactory-BundleContext-byte:A-org.apache.felix.ipojo.metadata.Element-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ComponentFactory</h4> |
| <pre>public <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.99">ComponentFactory</a>(BundleContext context, |
| byte[] clazz, |
| <a href="../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> element) |
| throws <a href="../../../../org/apache/felix/ipojo/ConfigurationException.html" title="class in org.apache.felix.ipojo">ConfigurationException</a></pre> |
| <div class="block">Creates a instance manager factory. |
| The class is given in parameter. The component type is not a composite.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>context</code> - the bundle context</dd> |
| <dd><code>clazz</code> - the component class</dd> |
| <dd><code>element</code> - the metadata of the component</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> - if the element describing the factory is malformed.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ComponentFactory-BundleContext-org.apache.felix.ipojo.metadata.Element-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ComponentFactory</h4> |
| <pre>public <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.111">ComponentFactory</a>(BundleContext context, |
| <a href="../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> element) |
| throws <a href="../../../../org/apache/felix/ipojo/ConfigurationException.html" title="class in org.apache.felix.ipojo">ConfigurationException</a></pre> |
| <div class="block">Creates a instance manager factory.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>context</code> - the bundle context</dd> |
| <dd><code>element</code> - the metadata of the component to create</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> - if element describing the factory is malformed.</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="setUseFactoryClassloader-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setUseFactoryClassloader</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.121">setUseFactoryClassloader</a>(boolean use)</pre> |
| <div class="block">Sets the flag enabling / disabling the factory classloader.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>use</code> - <code>true</code> enables the factory classloader.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getComponentTypeDescription--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getComponentTypeDescription</h4> |
| <pre>public <a href="../../../../org/apache/felix/ipojo/architecture/ComponentTypeDescription.html" title="class in org.apache.felix.ipojo.architecture">ComponentTypeDescription</a> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.131">getComponentTypeDescription</a>()</pre> |
| <div class="block">Gets the component type description of the current factory.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getComponentTypeDescription--">getComponentTypeDescription</a></code> in class <code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html" title="class in org.apache.felix.ipojo">IPojoFactory</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the description of the component type attached to this factory.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getComponentTypeDescription--"><code>IPojoFactory.getComponentTypeDescription()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="check-org.apache.felix.ipojo.metadata.Element-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>check</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.143">check</a>(<a href="../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> element) |
| throws <a href="../../../../org/apache/felix/ipojo/ConfigurationException.html" title="class in org.apache.felix.ipojo">ConfigurationException</a></pre> |
| <div class="block">Allows a factory to check if the given element is well-formed. |
| A component factory metadata is correct if they contain the 'classname' attribute. |
| As this method is called from the (single-threaded) constructor, no synchronization is needed.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>element</code> - the metadata describing the component</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> - if the element describing the factory is malformed.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getClassName--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getClassName</h4> |
| <pre>public <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> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.158">getClassName</a>()</pre> |
| <div class="block">Gets the class name. |
| No synchronization needed, the classname is immutable.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/Factory.html#getClassName--">getClassName</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getClassName--">getClassName</a></code> in class <code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html" title="class in org.apache.felix.ipojo">IPojoFactory</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the class name.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getClassName--"><code>IPojoFactory.getClassName()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createInstance-java.util.Dictionary-org.apache.felix.ipojo.IPojoContext-org.apache.felix.ipojo.HandlerManager:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createInstance</h4> |
| <pre>public <a href="../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.174">createInstance</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> config, |
| <a href="../../../../org/apache/felix/ipojo/IPojoContext.html" title="class in org.apache.felix.ipojo">IPojoContext</a> context, |
| <a href="../../../../org/apache/felix/ipojo/HandlerManager.html" title="class in org.apache.felix.ipojo">HandlerManager</a>[] handlers) |
| throws <a href="../../../../org/apache/felix/ipojo/ConfigurationException.html" title="class in org.apache.felix.ipojo">ConfigurationException</a></pre> |
| <div class="block">Creates a primitive instance. |
| This method is called when holding the lock.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#createInstance-java.util.Dictionary-org.apache.felix.ipojo.IPojoContext-org.apache.felix.ipojo.HandlerManager:A-">createInstance</a></code> in class <code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html" title="class in org.apache.felix.ipojo">IPojoFactory</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>config</code> - the instance configuration</dd> |
| <dd><code>context</code> - the service context (null if the instance has to be created in the global space).</dd> |
| <dd><code>handlers</code> - the handlers to attach to the instance</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the created instance</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> - if the configuration process failed.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#createInstance-java.util.Dictionary-org.apache.felix.ipojo.IPojoContext-org.apache.felix.ipojo.HandlerManager:A-"><code>IPojoFactory.createInstance(java.util.Dictionary, org.apache.felix.ipojo.IPojoContext, org.apache.felix.ipojo.HandlerManager[])</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="defineClass-java.lang.String-byte:A-java.security.ProtectionDomain-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>defineClass</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <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>> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.208">defineClass</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> name, |
| byte[] clazz, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/security/ProtectionDomain.html?is-external=true" title="class or interface in java.security">ProtectionDomain</a> domain)</pre> |
| <div class="block">Defines a class. |
| This method needs to be synchronized to avoid that the classloader |
| is created twice. |
| This method delegates the <code>define</code> method invocation to the |
| factory classloader.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - the qualified name of the class</dd> |
| <dd><code>clazz</code> - the byte array of the class</dd> |
| <dd><code>domain</code> - the protection domain of the class</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the defined class object</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="loadClass-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>loadClass</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.232">loadClass</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> className) |
| throws <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</a></pre> |
| <div class="block">Loads a class. This method checks if the class |
| to load is the implementation class or not. |
| If it is, the factory classloader is used, else |
| the <code>Bundle#loadClass(String)</code> is called. |
| |
| The implementation class is loaded using the factory classloader only if the factory classloader was enabled</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>className</code> - the name of the class to load</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the resulting Class object</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</a></code> - if the class is not found</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#setUseFactoryClassloader-boolean-"><code>setUseFactoryClassloader(boolean)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="starting--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>starting</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.243">starting</a>()</pre> |
| <div class="block">Starts the factory. |
| This method is not called when holding the monitor lock.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#starting--">starting</a></code> in class <code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html" title="class in org.apache.felix.ipojo">IPojoFactory</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="stopping--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>stopping</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.263">stopping</a>()</pre> |
| <div class="block">Stops all the instance managers. |
| This method is called when holding the lock.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#stopping--">stopping</a></code> in class <code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html" title="class in org.apache.felix.ipojo">IPojoFactory</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getFactoryName--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFactoryName</h4> |
| <pre>public <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> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.278">getFactoryName</a>()</pre> |
| <div class="block">Computes the factory name. The factory name is computed from |
| the 'name' and 'classname' attributes. |
| This method does not manipulate any non-immutable fields, |
| so does not need to be synchronized.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getFactoryName--">getFactoryName</a></code> in class <code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html" title="class in org.apache.felix.ipojo">IPojoFactory</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the factory name.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getRequiredHandlerList--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRequiredHandlerList</h4> |
| <pre>public <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><<a href="../../../../org/apache/felix/ipojo/IPojoFactory.RequiredHandler.html" title="class in org.apache.felix.ipojo">IPojoFactory.RequiredHandler</a>> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.296">getRequiredHandlerList</a>()</pre> |
| <div class="block">Computes required handlers. |
| This method does not manipulate any non-immutable fields, |
| so does not need to be synchronized. |
| This method checks the <a href="../../../../org/apache/felix/ipojo/ComponentFactory.html#HANDLER_AUTO_PRIMITIVE"><code>HANDLER_AUTO_PRIMITIVE</code></a> |
| system property to add the listed handlers to the required handler set.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html#getRequiredHandlerList--">getRequiredHandlerList</a></code> in class <code><a href="../../../../org/apache/felix/ipojo/IPojoFactory.html" title="class in org.apache.felix.ipojo">IPojoFactory</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the required handler list.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addingService-ServiceReference-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addingService</h4> |
| <pre>public boolean <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.373">addingService</a>(ServiceReference reference)</pre> |
| <div class="block">This method is called when a new handler factory is detected. |
| Test if the factory can be used or not. |
| This method need to be synchronized as it accesses to the content |
| of required handlers.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/util/TrackerCustomizer.html#addingService-ServiceReference-">addingService</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/util/TrackerCustomizer.html" title="interface in org.apache.felix.ipojo.util">TrackerCustomizer</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>reference</code> - the new service reference.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the given factory reference matches with a required handler.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.apache.felix.ipojo.util.TrackerCustomizer#addingService(org.osgi.framework.ServiceReference)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addedService-ServiceReference-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addedService</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.398">addedService</a>(ServiceReference reference)</pre> |
| <div class="block">This method is called when a matching service has been added to the tracker, |
| we can no compute the factory state. This method is synchronized to avoid |
| concurrent calls to method modifying the factory state.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/util/TrackerCustomizer.html#addedService-ServiceReference-">addedService</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/util/TrackerCustomizer.html" title="interface in org.apache.felix.ipojo.util">TrackerCustomizer</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>reference</code> - the added service reference.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.apache.felix.ipojo.util.TrackerCustomizer#addedService(org.osgi.framework.ServiceReference)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="removedService-ServiceReference-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removedService</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.413">removedService</a>(ServiceReference reference, |
| <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> service)</pre> |
| <div class="block">This method is called when a used handler factory disappears. |
| This method is synchronized to avoid concurrent calls to method modifying |
| the factory state.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/util/TrackerCustomizer.html#removedService-ServiceReference-java.lang.Object-">removedService</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/util/TrackerCustomizer.html" title="interface in org.apache.felix.ipojo.util">TrackerCustomizer</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>reference</code> - the leaving service reference.</dd> |
| <dd><code>service</code> - the handler factory object.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.apache.felix.ipojo.util.TrackerCustomizer#removedService(org.osgi.framework.ServiceReference, java.lang.Object)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="modifiedService-ServiceReference-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>modifiedService</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.434">modifiedService</a>(ServiceReference reference, |
| <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> service)</pre> |
| <div class="block">This method is called when a used handler factory is modified. |
| However, handler factory modification is not possible, so this method |
| is never called.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/util/TrackerCustomizer.html#modifiedService-ServiceReference-java.lang.Object-">modifiedService</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/util/TrackerCustomizer.html" title="interface in org.apache.felix.ipojo.util">TrackerCustomizer</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>reference</code> - the service reference</dd> |
| <dd><code>service</code> - the Factory object (if already get)</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.apache.felix.ipojo.util.TrackerCustomizer#modifiedService(org.osgi.framework.ServiceReference, java.lang.Object)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getPojoMetadata--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPojoMetadata</h4> |
| <pre>public <a href="../../../../org/apache/felix/ipojo/parser/PojoMetadata.html" title="class in org.apache.felix.ipojo.parser">PojoMetadata</a> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.443">getPojoMetadata</a>()</pre> |
| <div class="block">Returns manipulation metadata of this component type.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>manipulation metadata of this component type.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getVersion--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getVersion</h4> |
| <pre>public <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> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.453">getVersion</a>()</pre> |
| <div class="block">Gets the version of the component type.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/Factory.html#getVersion--">getVersion</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the version of <code>null</code> if not set.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/Factory.html#getVersion--"><code>Factory.getVersion()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getBundleClassLoader--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getBundleClassLoader</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> <a href="../../../../src-html/org/apache/felix/ipojo/ComponentFactory.html#line.457">getBundleClassLoader</a>()</pre> |
| </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/ComponentFactory.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/ComponentInstance.html" title="interface in org.apache.felix.ipojo"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/felix/ipojo/ComponentFactory.html" target="_top">Frames</a></li> |
| <li><a href="ComponentFactory.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: </li> |
| <li><a href="#nested.classes.inherited.from.class.org.apache.felix.ipojo.IPojoFactory">Nested</a> | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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 © 2014. All rights reserved.</small></p> |
| </body> |
| </html> |