⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 beancontextservices.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextServices.html#releaseService(java.beans.beancontext.BeanContextChild, java.lang.Object, java.lang.Object)">releaseService</A></B>(<A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A>&nbsp;child,               <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;requestor,               <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;service)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Releases a <code>BeanContextChild</code>'s  (or any arbitrary object associated with a BeanContextChild)  reference to the specified service by calling releaseService()  on the underlying <code>BeanContextServiceProvider</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextServices.html#removeBeanContextServicesListener(java.beans.beancontext.BeanContextServicesListener)">removeBeanContextServicesListener</A></B>(<A HREF="../../../java/beans/beancontext/BeanContextServicesListener.html">BeanContextServicesListener</A>&nbsp;bcsl)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a <code>BeanContextServicesListener</code>  from this <code>BeanContext</code></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextServices.html#revokeService(java.lang.Class, java.beans.beancontext.BeanContextServiceProvider, boolean)">revokeService</A></B>(<A HREF="../../../java/lang/Class.html">Class</A>&nbsp;serviceClass,              <A HREF="../../../java/beans/beancontext/BeanContextServiceProvider.html">BeanContextServiceProvider</A>&nbsp;serviceProvider,              boolean&nbsp;revokeCurrentServicesNow)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BeanContextServiceProviders wishing to remove  a currently registered service from this context may do so via invocation of this method.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.beans.beancontext.BeanContext"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.beans.beancontext.<A HREF="../../../java/beans/beancontext/BeanContext.html">BeanContext</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/beans/beancontext/BeanContext.html#addBeanContextMembershipListener(java.beans.beancontext.BeanContextMembershipListener)">addBeanContextMembershipListener</A>, <A HREF="../../../java/beans/beancontext/BeanContext.html#getResource(java.lang.String, java.beans.beancontext.BeanContextChild)">getResource</A>, <A HREF="../../../java/beans/beancontext/BeanContext.html#getResourceAsStream(java.lang.String, java.beans.beancontext.BeanContextChild)">getResourceAsStream</A>, <A HREF="../../../java/beans/beancontext/BeanContext.html#instantiateChild(java.lang.String)">instantiateChild</A>, <A HREF="../../../java/beans/beancontext/BeanContext.html#removeBeanContextMembershipListener(java.beans.beancontext.BeanContextMembershipListener)">removeBeanContextMembershipListener</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.beans.beancontext.BeanContextChild"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.beans.beancontext.<A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/beans/beancontext/BeanContextChild.html#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, <A HREF="../../../java/beans/beancontext/BeanContextChild.html#addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener)">addVetoableChangeListener</A>, <A HREF="../../../java/beans/beancontext/BeanContextChild.html#getBeanContext()">getBeanContext</A>, <A HREF="../../../java/beans/beancontext/BeanContextChild.html#removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, <A HREF="../../../java/beans/beancontext/BeanContextChild.html#removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener)">removeVetoableChangeListener</A>, <A HREF="../../../java/beans/beancontext/BeanContextChild.html#setBeanContext(java.beans.beancontext.BeanContext)">setBeanContext</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.util.Collection"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.util.<A HREF="../../../java/util/Collection.html">Collection</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/util/Collection.html#add(java.lang.Object)">add</A>, <A HREF="../../../java/util/Collection.html#addAll(java.util.Collection)">addAll</A>, <A HREF="../../../java/util/Collection.html#clear()">clear</A>, <A HREF="../../../java/util/Collection.html#contains(java.lang.Object)">contains</A>, <A HREF="../../../java/util/Collection.html#containsAll(java.util.Collection)">containsAll</A>, <A HREF="../../../java/util/Collection.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/util/Collection.html#hashCode()">hashCode</A>, <A HREF="../../../java/util/Collection.html#isEmpty()">isEmpty</A>, <A HREF="../../../java/util/Collection.html#iterator()">iterator</A>, <A HREF="../../../java/util/Collection.html#remove(java.lang.Object)">remove</A>, <A HREF="../../../java/util/Collection.html#removeAll(java.util.Collection)">removeAll</A>, <A HREF="../../../java/util/Collection.html#retainAll(java.util.Collection)">retainAll</A>, <A HREF="../../../java/util/Collection.html#size()">size</A>, <A HREF="../../../java/util/Collection.html#toArray()">toArray</A>, <A HREF="../../../java/util/Collection.html#toArray(java.lang.Object[])">toArray</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.beans.DesignMode"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.beans.<A HREF="../../../java/beans/DesignMode.html">DesignMode</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/beans/DesignMode.html#isDesignTime()">isDesignTime</A>, <A HREF="../../../java/beans/DesignMode.html#setDesignTime(boolean)">setDesignTime</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.beans.Visibility"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.beans.<A HREF="../../../java/beans/Visibility.html">Visibility</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/beans/Visibility.html#avoidingGui()">avoidingGui</A>, <A HREF="../../../java/beans/Visibility.html#dontUseGui()">dontUseGui</A>, <A HREF="../../../java/beans/Visibility.html#needsGui()">needsGui</A>, <A HREF="../../../java/beans/Visibility.html#okToUseGui()">okToUseGui</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.beans.beancontext.BeanContextServicesListener"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.beans.beancontext.<A HREF="../../../java/beans/beancontext/BeanContextServicesListener.html">BeanContextServicesListener</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/beans/beancontext/BeanContextServicesListener.html#serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent)">serviceAvailable</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.beans.beancontext.BeanContextServiceRevokedListener"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.beans.beancontext.<A HREF="../../../java/beans/beancontext/BeanContextServiceRevokedListener.html">BeanContextServiceRevokedListener</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/beans/beancontext/BeanContextServiceRevokedListener.html#serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent)">serviceRevoked</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="addService(java.lang.Class, java.beans.beancontext.BeanContextServiceProvider)"><!-- --></A><H3>addService</H3><PRE>public boolean <B>addService</B>(<A HREF="../../../java/lang/Class.html">Class</A>&nbsp;serviceClass,                          <A HREF="../../../java/beans/beancontext/BeanContextServiceProvider.html">BeanContextServiceProvider</A>&nbsp;serviceProvider)</PRE><DL><DD>Adds a service to this BeanContext. <code>BeanContextServiceProvider</code>s call this method  to register a particular service with this context.  If the service has not previously been added, the  <code>BeanContextServices</code> associates the service with the <code>BeanContextServiceProvider</code> and  fires a <code>BeanContextServiceAvailableEvent</code> to all  currently registered <code>BeanContextServicesListeners</code>.  The method then returns <code>true</code>, indicating that  the addition of the service was successful. If the given service has already been added, this method  simply returns <code>false</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE><code>serviceClass</code></CODE> - the service to add<DD><CODE>serviceProvider</CODE> - the <code>BeanContextServiceProvider</code>  associated with the service</DL></DD></DL><HR><A NAME="revokeService(java.lang.Class, java.beans.beancontext.BeanContextServiceProvider, boolean)"><!-- --></A><H3>revokeService</H3><PRE>public void <B>revokeService</B>(<A HREF="../../../java/lang/Class.html">Class</A>&nbsp;serviceClass,                          <A HREF="../../../java/beans/beancontext/BeanContextServiceProvider.html">BeanContextServiceProvider</A>&nbsp;serviceProvider,                          boolean&nbsp;revokeCurrentServicesNow)</PRE><DL><DD>BeanContextServiceProviders wishing to remove  a currently registered service from this context may do so via invocation of this method. Upon revocation of  the service, the <code>BeanContextServices</code> fires a  <code>BeanContextServiceRevokedEvent</code> to its list of currently registered  <code>BeanContextServiceRevokedListeners</code> and  <code>BeanContextServicesListeners</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>serviceClass</CODE> - the service to revoke from this BeanContextServices<DD><CODE>serviceProvider</CODE> - the BeanContextServiceProvider associated with this particular service that is being revoked<DD><CODE>revokeCurrentServicesNow</CODE> - a value of <code>true</code>  indicates an exceptional circumstance where the  <code>BeanContextServiceProvider</code> or <code>BeanContextServices</code> wishes to immediately  terminate service to all currently outstanding references  to the specified service.</DL></DD></DL><HR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -