/// <summary> /// <para> /// Instantiate a JavaBean. /// </para> </summary> /// <returns> a JavaBean /// </returns> /// <param name="cls"> the class-loader from which we should create /// the bean. If this is null, then the system /// class-loader is used. </param> /// <param name="beanName"> the name of the bean within the class-loader. /// For example "sun.beanbox.foobah" </param> /// <param name="beanContext"> The BeanContext in which to nest the new bean /// </param> /// <exception cref="ClassNotFoundException"> if the class of a serialized /// object could not be found. </exception> /// <exception cref="IOException"> if an I/O error occurs. </exception> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public static Object instantiate(ClassLoader cls, String beanName, java.beans.beancontext.BeanContext beanContext) throws java.io.IOException, ClassNotFoundException public static Object Instantiate(ClassLoader cls, String beanName, BeanContext beanContext) { return(Beans.Instantiate(cls, beanName, beanContext, null)); }
/// <summary> /// <para> /// Instantiate a JavaBean. /// </para> </summary> /// <returns> a JavaBean </returns> /// <param name="cls"> the class-loader from which we should create /// the bean. If this is null, then the system /// class-loader is used. </param> /// <param name="beanName"> the name of the bean within the class-loader. /// For example "sun.beanbox.foobah" /// </param> /// <exception cref="ClassNotFoundException"> if the class of a serialized /// object could not be found. </exception> /// <exception cref="IOException"> if an I/O error occurs. </exception> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public static Object instantiate(ClassLoader cls, String beanName) throws java.io.IOException, ClassNotFoundException public static Object Instantiate(ClassLoader cls, String beanName) { return(Beans.Instantiate(cls, beanName, null, null)); }