| <!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>PrimitiveHandler (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="PrimitiveHandler (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}; |
| 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/PrimitiveHandler.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html" title="class in org.apache.felix.ipojo"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/felix/ipojo/PrimitiveInstanceDescription.html" title="class 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/PrimitiveHandler.html" target="_top">Frames</a></li> |
| <li><a href="PrimitiveHandler.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>Nested | </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 PrimitiveHandler" class="title">Class PrimitiveHandler</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li><a href="../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">org.apache.felix.ipojo.Handler</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.felix.ipojo.PrimitiveHandler</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/ConstructorInjector.html" title="interface in org.apache.felix.ipojo">ConstructorInjector</a>, <a href="../../../../org/apache/felix/ipojo/FieldInterceptor.html" title="interface in org.apache.felix.ipojo">FieldInterceptor</a>, <a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html" title="interface in org.apache.felix.ipojo">MethodInterceptor</a></dd> |
| </dl> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/handlers/architecture/ArchitectureHandler.html" title="class in org.apache.felix.ipojo.handlers.architecture">ArchitectureHandler</a>, <a href="../../../../org/apache/felix/ipojo/handlers/context/BundleContextHandler.html" title="class in org.apache.felix.ipojo.handlers.context">BundleContextHandler</a>, <a href="../../../../org/apache/felix/ipojo/handlers/configuration/ConfigurationHandler.html" title="class in org.apache.felix.ipojo.handlers.configuration">ConfigurationHandler</a>, <a href="../../../../org/apache/felix/ipojo/handlers/lifecycle/controller/ControllerHandler.html" title="class in org.apache.felix.ipojo.handlers.lifecycle.controller">ControllerHandler</a>, <a href="../../../../org/apache/felix/ipojo/handlers/dependency/DependencyHandler.html" title="class in org.apache.felix.ipojo.handlers.dependency">DependencyHandler</a>, <a href="../../../../org/apache/felix/ipojo/handlers/lifecycle/callback/LifecycleCallbackHandler.html" title="class in org.apache.felix.ipojo.handlers.lifecycle.callback">LifecycleCallbackHandler</a>, <a href="../../../../org/apache/felix/ipojo/handlers/providedservice/ProvidedServiceHandler.html" title="class in org.apache.felix.ipojo.handlers.providedservice">ProvidedServiceHandler</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public abstract class <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.37">PrimitiveHandler</a> |
| extends <a href="../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a> |
| implements <a href="../../../../org/apache/felix/ipojo/FieldInterceptor.html" title="interface in org.apache.felix.ipojo">FieldInterceptor</a>, <a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html" title="interface in org.apache.felix.ipojo">MethodInterceptor</a>, <a href="../../../../org/apache/felix/ipojo/ConstructorInjector.html" title="interface in org.apache.felix.ipojo">ConstructorInjector</a></pre> |
| <div class="block">This class defines common mechanisms of primitive handlers. |
| Primitive handlers are handler composing the container of primitive |
| component instances (declared by the 'component' element inside the |
| iPOJO descriptor). |
| Note that this class also defines default method implementation. |
| Classes overriding this class can change the behavior of those methods.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Author:</span></dt> |
| <dd><a href="mailto:dev@felix.apache.org">Felix Project Team</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== 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/PrimitiveHandler.html#HANDLER_TYPE">HANDLER_TYPE</a></span></code> |
| <div class="block">The "Primitive" Handler type (value).</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="../../../../org/apache/felix/ipojo/ComponentFactory.html" title="class in org.apache.felix.ipojo">ComponentFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#m_factory">m_factory</a></span></code> |
| <div class="block">The factory of the instance manager.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <a href="../../../../org/apache/felix/ipojo/util/Logger.html" title="class in org.apache.felix.ipojo.util">Logger</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#m_instanceLogger">m_instanceLogger</a></span></code> |
| <div class="block">Instance Logger used by the handler.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="../../../../org/apache/felix/ipojo/InstanceManager.html" title="class in org.apache.felix.ipojo">InstanceManager</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#m_manager">m_manager</a></span></code> |
| <div class="block">The reference on the instance manager.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.apache.felix.ipojo.Handler"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.apache.felix.ipojo.<a href="../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></h3> |
| <code><a href="../../../../org/apache/felix/ipojo/Handler.html#HANDLER_LEVEL_PROPERTY">HANDLER_LEVEL_PROPERTY</a>, <a href="../../../../org/apache/felix/ipojo/Handler.html#HANDLER_NAME_PROPERTY">HANDLER_NAME_PROPERTY</a>, <a href="../../../../org/apache/felix/ipojo/Handler.html#HANDLER_NAMESPACE_PROPERTY">HANDLER_NAMESPACE_PROPERTY</a>, <a href="../../../../org/apache/felix/ipojo/Handler.html#HANDLER_TYPE_PROPERTY">HANDLER_TYPE_PROPERTY</a>, <a href="../../../../org/apache/felix/ipojo/Handler.html#m_instance">m_instance</a>, <a href="../../../../org/apache/felix/ipojo/Handler.html#m_isValid">m_isValid</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </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/PrimitiveHandler.html#PrimitiveHandler--">PrimitiveHandler</a></span>()</code> </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>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#attach-org.apache.felix.ipojo.ComponentInstance-">attach</a></span>(<a href="../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a> manager)</code> |
| <div class="block">Attaches the current handler to the given instance.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#getConstructorParameter-int-">getConstructorParameter</a></span>(int index)</code> |
| <div class="block">Gets the object to inject as a constructor parameter</div> |
| </td> |
| </tr> |
| <tr id="i2" 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/PrimitiveHandler.html#getConstructorParameterType-int-">getConstructorParameterType</a></span>(int index)</code> |
| <div class="block">Gets the type of the object to inject in the constructor parameter.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/ipojo/ComponentFactory.html" title="class in org.apache.felix.ipojo">ComponentFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#getFactory--">getFactory</a></span>()</code> |
| <div class="block">Gets the factory which creates the managed instance.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#getHandler-java.lang.String-">getHandler</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)</code> |
| <div class="block">Gets a plugged handler of the same container.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/ipojo/InstanceManager.html" title="class in org.apache.felix.ipojo">InstanceManager</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#getInstanceManager--">getInstanceManager</a></span>()</code> |
| <div class="block">Gets the instance manager managing the instance.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/felix/ipojo/util/Logger.html" title="class in org.apache.felix.ipojo.util">Logger</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#getLogger--">getLogger</a></span>()</code> |
| <div class="block">Gets the logger of the managed instance.</div> |
| </td> |
| </tr> |
| <tr id="i7" 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/PrimitiveHandler.html#getPojoMetadata--">getPojoMetadata</a></span>()</code> |
| <div class="block">Gets the PojoMetadata of the content of the managed |
| instance.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#onCreation-java.lang.Object-">onCreation</a></span>(<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> instance)</code> |
| <div class="block">Callback method called when an instance of the component is created, but |
| before someone can use it.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#onEntry-java.lang.Object-java.lang.reflect.Member-java.lang.Object:A-">onEntry</a></span>(<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> pojo, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> method, |
| <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>[] args)</code> |
| <div class="block">Callback method called when a method will be invoked.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#onError-java.lang.Object-java.lang.reflect.Member-java.lang.Throwable-">onError</a></span>(<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> pojo, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> method, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> throwable)</code> |
| <div class="block">Callback method called when an error occurs.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#onExit-java.lang.Object-java.lang.reflect.Member-java.lang.Object-">onExit</a></span>(<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> pojo, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> method, |
| <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> returnedObj)</code> |
| <div class="block">Callback method called when a method ends.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#onFinally-java.lang.Object-java.lang.reflect.Member-">onFinally</a></span>(<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> pojo, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> method)</code> |
| <div class="block">Callback method called when the execution of a method will terminate : |
| just before to throw an exception or before to return.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html#onGet-java.lang.Object-java.lang.String-java.lang.Object-">onGet</a></span>(<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> pojo, |
| <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> fieldName, |
| <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> value)</code> |
| <div class="block">Callback method called when a managed field |
| asks for a value.</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/PrimitiveHandler.html#onSet-java.lang.Object-java.lang.String-java.lang.Object-">onSet</a></span>(<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> pojo, |
| <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> fieldName, |
| <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> value)</code> |
| <div class="block">Callback method called when a managed field |
| receives a new value.</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/PrimitiveHandler.html#setFactory-org.apache.felix.ipojo.Factory-">setFactory</a></span>(<a href="../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a> factory)</code> |
| <div class="block">Sets the factory of the managed instance.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.felix.ipojo.Handler"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class 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#configure-org.apache.felix.ipojo.metadata.Element-java.util.Dictionary-">configure</a>, <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#getDescription--">getDescription</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#reconfigure-java.util.Dictionary-">reconfigure</a>, <a href="../../../../org/apache/felix/ipojo/Handler.html#setValidity-boolean-">setValidity</a>, <a href="../../../../org/apache/felix/ipojo/Handler.html#start--">start</a>, <a href="../../../../org/apache/felix/ipojo/Handler.html#stateChanged-int-">stateChanged</a>, <a href="../../../../org/apache/felix/ipojo/Handler.html#stop--">stop</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 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_TYPE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>HANDLER_TYPE</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/PrimitiveHandler.html#line.43">HANDLER_TYPE</a></pre> |
| <div class="block">The "Primitive" Handler type (value).</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../constant-values.html#org.apache.felix.ipojo.PrimitiveHandler.HANDLER_TYPE">Constant Field Values</a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="m_manager"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_manager</h4> |
| <pre>private <a href="../../../../org/apache/felix/ipojo/InstanceManager.html" title="class in org.apache.felix.ipojo">InstanceManager</a> <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.48">m_manager</a></pre> |
| <div class="block">The reference on the instance manager.</div> |
| </li> |
| </ul> |
| <a name="m_factory"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_factory</h4> |
| <pre>private <a href="../../../../org/apache/felix/ipojo/ComponentFactory.html" title="class in org.apache.felix.ipojo">ComponentFactory</a> <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.54">m_factory</a></pre> |
| <div class="block">The factory of the instance manager.</div> |
| </li> |
| </ul> |
| <a name="m_instanceLogger"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>m_instanceLogger</h4> |
| <pre>private <a href="../../../../org/apache/felix/ipojo/util/Logger.html" title="class in org.apache.felix.ipojo.util">Logger</a> <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.59">m_instanceLogger</a></pre> |
| <div class="block">Instance Logger used by the handler.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="PrimitiveHandler--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>PrimitiveHandler</h4> |
| <pre>public <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.37">PrimitiveHandler</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="attach-org.apache.felix.ipojo.ComponentInstance-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>attach</h4> |
| <pre>protected void <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.67">attach</a>(<a href="../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a> manager)</pre> |
| <div class="block">Attaches the current handler to the given instance. |
| This method must be called only once, and should not be overridden.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/Handler.html#attach-org.apache.felix.ipojo.ComponentInstance-">attach</a></code> in class <code><a href="../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>manager</code> - the instance on which the current handler will be attached.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/Handler.html#attach-org.apache.felix.ipojo.ComponentInstance-"><code>Handler.attach(org.apache.felix.ipojo.ComponentInstance)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setFactory-org.apache.felix.ipojo.Factory-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setFactory</h4> |
| <pre>public final void <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.77">setFactory</a>(<a href="../../../../org/apache/felix/ipojo/Factory.html" title="interface in org.apache.felix.ipojo">Factory</a> factory)</pre> |
| <div class="block">Sets the factory of the managed instance.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/Handler.html#setFactory-org.apache.felix.ipojo.Factory-">setFactory</a></code> in class <code><a href="../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>factory</code> - the factory</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/Handler.html#setFactory-org.apache.felix.ipojo.Factory-"><code>Handler.setFactory(org.apache.felix.ipojo.Factory)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLogger--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLogger</h4> |
| <pre>public <a href="../../../../org/apache/felix/ipojo/util/Logger.html" title="class in org.apache.felix.ipojo.util">Logger</a> <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.87">getLogger</a>()</pre> |
| <div class="block">Gets the logger of the managed instance. |
| IF no instance attached yet, use the factory logger.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/Handler.html#getLogger--">getLogger</a></code> in class <code><a href="../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the logger to use to log messages.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/Handler.html#getLogger--"><code>Handler.getLogger()</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getInstanceManager--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getInstanceManager</h4> |
| <pre>public <a href="../../../../org/apache/felix/ipojo/InstanceManager.html" title="class in org.apache.felix.ipojo">InstanceManager</a> <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.98">getInstanceManager</a>()</pre> |
| <div class="block">Gets the instance manager managing the instance.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the instance manager</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getFactory--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFactory</h4> |
| <pre>public <a href="../../../../org/apache/felix/ipojo/ComponentFactory.html" title="class in org.apache.felix.ipojo">ComponentFactory</a> <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.106">getFactory</a>()</pre> |
| <div class="block">Gets the factory which creates the managed instance.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the factory which creates the managed instance.</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/PrimitiveHandler.html#line.117">getPojoMetadata</a>()</pre> |
| <div class="block">Gets the PojoMetadata of the content of the managed |
| instance. This method allows getting manipulation |
| metadata.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the information about the content of the |
| managed instance.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getHandler-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getHandler</h4> |
| <pre>public final <a href="../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a> <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.130">getHandler</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)</pre> |
| <div class="block">Gets a plugged handler of the same container. |
| This method must be called only in the start method (or after). |
| In the configure method, this method can be inconsistent |
| as all handlers are not initialized.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/Handler.html#getHandler-java.lang.String-">getHandler</a></code> in class <code><a href="../../../../org/apache/felix/ipojo/Handler.html" title="class in org.apache.felix.ipojo">Handler</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - the name of the handler to find (class name or qualified |
| handler name (<code>ns:name</code>)).</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the handler object or <code>null</code> if the handler is not found.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onSet-java.lang.Object-java.lang.String-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onSet</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.144">onSet</a>(<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> pojo, |
| <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> fieldName, |
| <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> value)</pre> |
| <div class="block">Callback method called when a managed field |
| receives a new value. The given pojo can be |
| null if the new value is set by another handler. |
| This default implementation does nothing.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/FieldInterceptor.html#onSet-java.lang.Object-java.lang.String-java.lang.Object-">onSet</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/FieldInterceptor.html" title="interface in org.apache.felix.ipojo">FieldInterceptor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pojo</code> - the pojo object setting the value</dd> |
| <dd><code>fieldName</code> - the field name</dd> |
| <dd><code>value</code> - the value received by the field</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/FieldInterceptor.html#onSet-java.lang.Object-java.lang.String-java.lang.Object-"><code>FieldInterceptor.onSet(Object, String, Object)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onGet-java.lang.Object-java.lang.String-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onGet</h4> |
| <pre>public <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/PrimitiveHandler.html#line.160">onGet</a>(<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> pojo, |
| <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> fieldName, |
| <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> value)</pre> |
| <div class="block">Callback method called when a managed field |
| asks for a value. |
| The default implementation returned the previously |
| injected value.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/FieldInterceptor.html#onGet-java.lang.Object-java.lang.String-java.lang.Object-">onGet</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/FieldInterceptor.html" title="interface in org.apache.felix.ipojo">FieldInterceptor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pojo</code> - the pojo object requiring the value</dd> |
| <dd><code>fieldName</code> - the field name</dd> |
| <dd><code>value</code> - the value passed to the field (by the previous call)</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the value to inject, of the previous value if the handler |
| don't want to inject a value.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/FieldInterceptor.html#onGet-java.lang.Object-java.lang.String-java.lang.Object-"><code>FieldInterceptor.onGet(Object, String, Object)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getConstructorParameter-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getConstructorParameter</h4> |
| <pre>public <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/PrimitiveHandler.html#line.171">getConstructorParameter</a>(int index)</pre> |
| <div class="block">Gets the object to inject as a constructor parameter</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/ConstructorInjector.html#getConstructorParameter-int-">getConstructorParameter</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/ConstructorInjector.html" title="interface in org.apache.felix.ipojo">ConstructorInjector</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the index of the parameter</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the object to inject, or <code>null</code> if no |
| objects are injected. This implementation returns <code>null</code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/ConstructorInjector.html#getConstructorParameter-int-"><code>ConstructorInjector.getConstructorParameter(int)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getConstructorParameterType-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getConstructorParameterType</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/PrimitiveHandler.html#line.186">getConstructorParameterType</a>(int index)</pre> |
| <div class="block">Gets the type of the object to inject in the constructor parameter. |
| This is the type looked into the Pojo class, so it must match. |
| Returning <code>null</code> will try to get the class from the |
| injected object, however this can be wrong (implementation instead of interface, |
| boxed objects...) and error-prone.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/ConstructorInjector.html#getConstructorParameterType-int-">getConstructorParameterType</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/ConstructorInjector.html" title="interface in org.apache.felix.ipojo">ConstructorInjector</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>index</code> - the parameter index</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the Class object (must fit for primitive type), this implementation |
| just returns <code>null</code></dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/ConstructorInjector.html#getConstructorParameterType-int-"><code>ConstructorInjector.getConstructorParameterType(int)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onEntry-java.lang.Object-java.lang.reflect.Member-java.lang.Object:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onEntry</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.198">onEntry</a>(<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> pojo, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> method, |
| <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>[] args)</pre> |
| <div class="block">Callback method called when a method will be invoked. |
| This default implementation does nothing.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html#onEntry-java.lang.Object-java.lang.reflect.Member-java.lang.Object:A-">onEntry</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html" title="interface in org.apache.felix.ipojo">MethodInterceptor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pojo</code> - the pojo on which the method is called.</dd> |
| <dd><code>method</code> - the method invoked.</dd> |
| <dd><code>args</code> - the arguments array.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html#onEntry-java.lang.Object-java.lang.reflect.Member-java.lang.Object:A-"><code>MethodInterceptor.onEntry(Object, java.lang.reflect.Member, Object[])</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onExit-java.lang.Object-java.lang.reflect.Member-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onExit</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.214">onExit</a>(<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> pojo, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> method, |
| <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> returnedObj)</pre> |
| <div class="block">Callback method called when a method ends. |
| This method is called when a thread exits a method (before a return or a throw). |
| If the given returned object is <code>null</code>, either the method is |
| <code>void</code>, or it returns <code>null</code>. |
| You must not modified the returned object. |
| The default implementation does nothing.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html#onExit-java.lang.Object-java.lang.reflect.Member-java.lang.Object-">onExit</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html" title="interface in org.apache.felix.ipojo">MethodInterceptor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pojo</code> - the pojo on which the method exits.</dd> |
| <dd><code>method</code> - the exiting method.</dd> |
| <dd><code>returnedObj</code> - the returned object (boxed for primitive type)</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html#onExit-java.lang.Object-java.lang.reflect.Member-java.lang.Object-"><code>MethodInterceptor.onExit(Object, java.lang.reflect.Member, Object)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onError-java.lang.Object-java.lang.reflect.Member-java.lang.Throwable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onError</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.228">onError</a>(<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> pojo, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> method, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> throwable)</pre> |
| <div class="block">Callback method called when an error occurs. |
| This method is called when the execution throws an exception |
| in the given method. |
| The default implementation does nothing.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html#onError-java.lang.Object-java.lang.reflect.Member-java.lang.Throwable-">onError</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html" title="interface in org.apache.felix.ipojo">MethodInterceptor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pojo</code> - the pojo on which the method was accessed.</dd> |
| <dd><code>method</code> - the invoked method.</dd> |
| <dd><code>throwable</code> - the thrown exception</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html#onError-java.lang.Object-java.lang.reflect.Member-java.lang.Throwable-"><code>MethodInterceptor.onError(Object, java.lang.reflect.Member, Throwable)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onFinally-java.lang.Object-java.lang.reflect.Member-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>onFinally</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.241">onFinally</a>(<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> pojo, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> method)</pre> |
| <div class="block">Callback method called when the execution of a method will terminate : |
| just before to throw an exception or before to return. This callback is called after |
| <a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html#onExit-java.lang.Object-java.lang.reflect.Member-java.lang.Object-"><code>MethodInterceptor.onExit(Object, java.lang.reflect.Member, Object)</code></a> and |
| <a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html#onError-java.lang.Object-java.lang.reflect.Member-java.lang.Throwable-"><code>MethodInterceptor.onError(Object, java.lang.reflect.Member, Throwable)</code></a> |
| This default implementation does nothing.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html#onFinally-java.lang.Object-java.lang.reflect.Member-">onFinally</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/MethodInterceptor.html" title="interface in org.apache.felix.ipojo">MethodInterceptor</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>pojo</code> - the pojo on which the method was accessed.</dd> |
| <dd><code>method</code> - the invoked method.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="onCreation-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>onCreation</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PrimitiveHandler.html#line.251">onCreation</a>(<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> instance)</pre> |
| <div class="block">Callback method called when an instance of the component is created, but |
| before someone can use it. |
| The default implementation does nothing.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>instance</code> - the created instance</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/PrimitiveHandler.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html" title="class in org.apache.felix.ipojo"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/felix/ipojo/PrimitiveInstanceDescription.html" title="class 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/PrimitiveHandler.html" target="_top">Frames</a></li> |
| <li><a href="PrimitiveHandler.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>Nested | </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> |