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

📄 beancontextservices.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:34:29 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Interface  BeanContextServices</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">java.beans.beancontext</FONT><BR>Interface  BeanContextServices</H2><DL><DT><B>All Superinterfaces:</B> <DD><A HREF="../../../java/beans/beancontext/BeanContext.html">BeanContext</A>, <A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A>, <A HREF="../../../java/beans/beancontext/BeanContextServiceRevokedListener.html">BeanContextServiceRevokedListener</A>, <A HREF="../../../java/beans/beancontext/BeanContextServicesListener.html">BeanContextServicesListener</A>, <A HREF="../../../java/util/Collection.html">Collection</A>, <A HREF="../../../java/beans/DesignMode.html">DesignMode</A>, <A HREF="../../../java/util/EventListener.html">EventListener</A>, <A HREF="../../../java/beans/Visibility.html">Visibility</A></DD></DL><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../java/beans/beancontext/BeanContextServicesSupport.html">BeanContextServicesSupport</A></DD></DL><HR><DL><DT>public interface <B>BeanContextServices</B><DT>extends <A HREF="../../../java/beans/beancontext/BeanContext.html">BeanContext</A>, <A HREF="../../../java/beans/beancontext/BeanContextServicesListener.html">BeanContextServicesListener</A></DL><P><p> The BeanContextServices interface provides a mechanism for a BeanContext to expose generic "services" to the BeanContextChild objects within. </p><P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="fields_inherited_from_class_java.beans.beancontext.BeanContext"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields 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#globalHierarchyLock">globalHierarchyLock</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_java.beans.DesignMode"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields 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#PROPERTYNAME">PROPERTYNAME</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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#addBeanContextServicesListener(java.beans.beancontext.BeanContextServicesListener)">addBeanContextServicesListener</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;Adds a <code>BeanContextServicesListener</code> to this BeanContext</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextServices.html#addService(java.lang.Class, java.beans.beancontext.BeanContextServiceProvider)">addService</A></B>(<A HREF="../../../java/lang/Class.html">Class</A>&nbsp;serviceClass,           <A HREF="../../../java/beans/beancontext/BeanContextServiceProvider.html">BeanContextServiceProvider</A>&nbsp;serviceProvider)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a service to this BeanContext.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/util/Iterator.html">Iterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextServices.html#getCurrentServiceClasses()">getCurrentServiceClasses</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the currently available services for this context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/util/Iterator.html">Iterator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextServices.html#getCurrentServiceSelectors(java.lang.Class)">getCurrentServiceSelectors</A></B>(<A HREF="../../../java/lang/Class.html">Class</A>&nbsp;serviceClass)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the list of service dependent service parameters  (Service Selectors) for the specified service, by  calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextServices.html#getService(java.beans.beancontext.BeanContextChild, java.lang.Object, java.lang.Class, java.lang.Object, java.beans.beancontext.BeanContextServiceRevokedListener)">getService</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/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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/beans/beancontext/BeanContextServices.html#hasService(java.lang.Class)">hasService</A></B>(<A HREF="../../../java/lang/Class.html">Class</A>&nbsp;serviceClass)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reports whether or not a given service is  currently available from this context.</TD>

⌨️ 快捷键说明

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