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

📄 beancontextservices.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<A NAME="hasService(java.lang.Class)"><!-- --></A><H3>hasService</H3><PRE>public boolean <B>hasService</B>(<A HREF="../../../java/lang/Class.html">Class</A>&nbsp;serviceClass)</PRE><DL><DD>Reports whether or not a given service is  currently available from this context.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>serviceClass</CODE> - the service in question<DT><B>Returns:</B><DD>true if the service is available</DL></DD></DL><HR><A NAME="getService(java.beans.beancontext.BeanContextChild, java.lang.Object, java.lang.Class, java.lang.Object, java.beans.beancontext.BeanContextServiceRevokedListener)"><!-- --></A><H3>getService</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>getService</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/Class.html">Class</A>&nbsp;serviceClass,                         <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;serviceSelector,                         <A HREF="../../../java/beans/beancontext/BeanContextServiceRevokedListener.html">BeanContextServiceRevokedListener</A>&nbsp;bcsrl)                  throws <A HREF="../../../java/util/TooManyListenersException.html">TooManyListenersException</A></PRE><DL><DD>A <code>BeanContextChild</code>, or any arbitrary object  associated with a <code>BeanContextChild</code>, may obtain  a reference to a currently registered service from its  nesting <code>BeanContextServices</code>  via invocation of this method. When invoked, this method gets the service by calling the getService() method on the  underlying <code>BeanContextServiceProvider</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>child</CODE> - the <code>BeanContextChild</code>  associated with this request<DD><CODE>requestor</CODE> - the object requesting the service<DD><CODE>serviceClass</CODE> - class of the requested service<DD><CODE>serviceSelector</CODE> - the service dependent parameter<DD><CODE>bcsrl</CODE> - the  <code>BeanContextServiceRevokedListener</code> to notify if the service should later become revoked<DT><B>Returns:</B><DD>a reference to this context's named  Service as requested or <code>null</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/util/TooManyListenersException.html">TooManyListenersException</A></CODE> - &nbsp;</DL></DD></DL><HR><A NAME="releaseService(java.beans.beancontext.BeanContextChild, java.lang.Object, java.lang.Object)"><!-- --></A><H3>releaseService</H3><PRE>public void <B>releaseService</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)</PRE><DL><DD>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>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>child</CODE> - the <code>BeanContextChild</code><DD><CODE>requestor</CODE> - the requestor<DD><CODE>service</CODE> - the service</DL></DD></DL><HR><A NAME="getCurrentServiceClasses()"><!-- --></A><H3>getCurrentServiceClasses</H3><PRE>public <A HREF="../../../java/util/Iterator.html">Iterator</A> <B>getCurrentServiceClasses</B>()</PRE><DL><DD>Gets the currently available services for this context.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an <code>Iterator</code> consisting of the  currently available services</DL></DD></DL><HR><A NAME="getCurrentServiceSelectors(java.lang.Class)"><!-- --></A><H3>getCurrentServiceSelectors</H3><PRE>public <A HREF="../../../java/util/Iterator.html">Iterator</A> <B>getCurrentServiceSelectors</B>(<A HREF="../../../java/lang/Class.html">Class</A>&nbsp;serviceClass)</PRE><DL><DD>Gets the list of service dependent service parameters  (Service Selectors) for the specified service, by  calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>serviceClass</CODE> - the specified service<DT><B>Returns:</B><DD>the currently available service selectors  for the named serviceClass</DL></DD></DL><HR><A NAME="addBeanContextServicesListener(java.beans.beancontext.BeanContextServicesListener)"><!-- --></A><H3>addBeanContextServicesListener</H3><PRE>public void <B>addBeanContextServicesListener</B>(<A HREF="../../../java/beans/beancontext/BeanContextServicesListener.html">BeanContextServicesListener</A>&nbsp;bcsl)</PRE><DL><DD>Adds a <code>BeanContextServicesListener</code> to this BeanContext<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bcsl</CODE> - the <code>BeanContextServicesListener</code> to add</DL></DD></DL><HR><A NAME="removeBeanContextServicesListener(java.beans.beancontext.BeanContextServicesListener)"><!-- --></A><H3>removeBeanContextServicesListener</H3><PRE>public void <B>removeBeanContextServicesListener</B>(<A HREF="../../../java/beans/beancontext/BeanContextServicesListener.html">BeanContextServicesListener</A>&nbsp;bcsl)</PRE><DL><DD>Removes a <code>BeanContextServicesListener</code>  from this <code>BeanContext</code><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bcsl</CODE> - the <code>BeanContextServicesListener</code>  to remove from this context</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/BeanContextServices.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../java/beans/beancontext/BeanContextServiceRevokedListener.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/beans/beancontext/BeanContextServicesListener.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="BeanContextServices.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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