📄 beancontext.html
字号:
<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> <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> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="globalHierarchyLock"><!-- --></A><H3>globalHierarchyLock</H3><PRE>public static final <A HREF="../../../java/lang/Object.html">Object</A> <B>globalHierarchyLock</B></PRE><DL><DD>This global lock is used by both <code>BeanContext</code> and <code>BeanContextServices</code> implementors to serialize changes in a <code>BeanContext</code> hierarchy and any service requests etc.</DL><!-- ========= 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="instantiateChild(java.lang.String)"><!-- --></A><H3>instantiateChild</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>instantiateChild</B>(<A HREF="../../../java/lang/String.html">String</A> beanName) throws <A HREF="../../../java/io/IOException.html">IOException</A>, <A HREF="../../../java/lang/ClassNotFoundException.html">ClassNotFoundException</A></PRE><DL><DD>Instantiate the javaBean named as a child of this <code>BeanContext</code>. The implementation of the JavaBean is derived from the value of the beanName parameter, and is defined by the <code>java.beans.Beans.instantiate()</code> method.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>beanName</CODE> - The name of the JavaBean to instantiate as a child of this <code>BeanContext</code><DT><B>Throws:</B><DD><CODE><code>IOException</code></CODE> - <DD><CODE><code>ClassNotFoundException</code></CODE> - if the class identified by the beanName parameter is not found</DL></DD></DL><HR><A NAME="getResourceAsStream(java.lang.String, java.beans.beancontext.BeanContextChild)"><!-- --></A><H3>getResourceAsStream</H3><PRE>public <A HREF="../../../java/io/InputStream.html">InputStream</A> <B>getResourceAsStream</B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A> bcc) throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></PRE><DL><DD>Analagous to <code>java.lang.ClassLoader.getResourceAsStream()</code>, this method allows a <code>BeanContext</code> implementation to interpose behavior between the child <code>Component</code> and underlying <code>ClassLoader</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the resource name<DD><CODE>bcc</CODE> - the specified child<DT><B>Returns:</B><DD>an <code>InputStream</code> for reading the resource, or <code>null</code> if the resource could not be found.<DT><B>Throws:</B><DD><CODE><code>IllegalArgumentException</code></CODE> - if the resource is not valid</DL></DD></DL><HR><A NAME="getResource(java.lang.String, java.beans.beancontext.BeanContextChild)"><!-- --></A><H3>getResource</H3><PRE>public <A HREF="../../../java/net/URL.html">URL</A> <B>getResource</B>(<A HREF="../../../java/lang/String.html">String</A> name, <A HREF="../../../java/beans/beancontext/BeanContextChild.html">BeanContextChild</A> bcc) throws <A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></PRE><DL><DD>Analagous to <code>java.lang.ClassLoader.getResource()</code>, this method allows a <code>BeanContext</code> implementation to interpose behavior between the child <code>Component</code> and underlying <code>ClassLoader</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the resource name<DD><CODE>bcc</CODE> - the specified child<DT><B>Returns:</B><DD>a <code>URL</code> for the named resource for the specified child<DT><B>Throws:</B><DD><CODE><code>IllegalArgumentException</code></CODE> - if the resource is not valid</DL></DD></DL><HR><A NAME="addBeanContextMembershipListener(java.beans.beancontext.BeanContextMembershipListener)"><!-- --></A><H3>addBeanContextMembershipListener</H3><PRE>public void <B>addBeanContextMembershipListener</B>(<A HREF="../../../java/beans/beancontext/BeanContextMembershipListener.html">BeanContextMembershipListener</A> bcml)</PRE><DL><DD>Adds the specified <code>BeanContextMembershipListener</code> to receive <code>BeanContextMembershipEvents</code> from this <code>BeanContext</code> whenever it adds or removes a child <code>Component</code>(s).<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bcml</CODE> - the <code>BeanContextMembershipListener</code> to be added</DL></DD></DL><HR><A NAME="removeBeanContextMembershipListener(java.beans.beancontext.BeanContextMembershipListener)"><!-- --></A><H3>removeBeanContextMembershipListener</H3><PRE>public void <B>removeBeanContextMembershipListener</B>(<A HREF="../../../java/beans/beancontext/BeanContextMembershipListener.html">BeanContextMembershipListener</A> bcml)</PRE><DL><DD>Removes the specified <code>BeanContextMembershipListener</code> so that it no longer receives <code>BeanContextMembershipEvent</code>s when the child <code>Component</code>(s) are added or removed.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bcml</CODE> - the <code>BeanContextMembershipListener</code> to be removed</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/BeanContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../java/beans/beancontext/BeanContextChild.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> <A HREF="BeanContext.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <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 + -