home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-03-20 | 2.3 KB | 85 lines |
- /*
- * @(#)BeanContext.java 1.12 98/03/18
- *
- * Copyright 1997, 1998 by Sun Microsystems, Inc.,
- * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
- * All rights reserved.
- *
- * This software is the confidential and proprietary information
- * of Sun Microsystems, Inc. ("Confidential Information"). You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Sun.
- */
-
- package java.beans.beancontext;
-
- import java.beans.DesignMode;
- import java.beans.Visibility;
-
- import java.io.InputStream;
- import java.io.IOException;
-
- import java.net.URL;
-
- import java.util.Collection;
- import java.util.Locale;
-
- /**
- * <p>
- * The BeanContext acts a logical heirarchical container for JavaBeans.
- * </p>
- *
- * @author Laurence P. G. Cable
- * @version 1.9
- * @since JDK1.2
- *
- * @seealso java.beans.Beans
- * @seealso java.beans.beancontext.BeanContextChild
- * @seealso java.beans.beancontext.BeanContextListener
- * @seealso java.beans.PropertyChangeEvent
- * @seealso java.beans.VetoableChangeEvent
- * @seealso java.beans.DesignMode
- * @seealso java.beans.Visibility
- * @seealso java.util.Collection
- */
-
- public interface BeanContext extends BeanContextChild, Collection, DesignMode, Visibility {
-
- /**
- * Instantiate the javaBean named as a child of this BeanContext
- *
- * @param beanName The name of the JavaBean to instantiate as a child of this BeanContext
- */
-
- Object instantiateChild(String beanName) throws IOException, ClassNotFoundException;
-
- /**
- * @return an InputStream to the named resource for the specified child
- *
- * @throw IllegalArgumentException
- */
-
- InputStream getResourceAsStream(String name, BeanContextChild bcc) throws IllegalArgumentException;
-
- /**
- * @return a URL for the named resource for the specified child
- *
- * @throw IllegalArgumentException
- */
-
- URL getResource(String name, BeanContextChild bcc) throws IllegalArgumentException;
-
- /**
- * add a BeanContextMembershipListener
- */
-
- void addBeanContextMembershipListener(BeanContextMembershipListener bcml);
-
- /**
- * remove a BeanContextMembershipListener
- */
-
- void removeBeanContextMembershipListener(BeanContextMembershipListener bcml);
- }
-