27
28 import java.applet.Applet;
29
30 import java.beans.beancontext.BeanContext;
31
32 /**
33 * <p>
34 * This interface is designed to work in collusion with java.beans.Beans.instantiate.
35 * The interface is intended to provide mechanism to allow the proper
36 * initialization of JavaBeans that are also Applets, during their
37 * instantiation by java.beans.Beans.instantiate().
38 * </p>
39 *
40 * @see java.beans.Beans#instantiate
41 *
42 * @since 1.2
43 *
44 */
45
46
47 public interface AppletInitializer {
48
49 /**
50 * <p>
51 * If passed to the appropriate variant of java.beans.Beans.instantiate
52 * this method will be called in order to associate the newly instantiated
53 * Applet (JavaBean) with its AppletContext, AppletStub, and Container.
54 * </p>
55 * <p>
56 * Conformant implementations shall:
57 * <ol>
58 * <li> Associate the newly instantiated Applet with the appropriate
59 * AppletContext.
60 *
61 * <li> Instantiate an AppletStub() and associate that AppletStub with
62 * the Applet via an invocation of setStub().
63 *
64 * <li> If BeanContext parameter is null, then it shall associate the
65 * Applet with its appropriate Container by adding that Applet to its
66 * Container via an invocation of add(). If the BeanContext parameter is
|
27
28 import java.applet.Applet;
29
30 import java.beans.beancontext.BeanContext;
31
32 /**
33 * <p>
34 * This interface is designed to work in collusion with java.beans.Beans.instantiate.
35 * The interface is intended to provide mechanism to allow the proper
36 * initialization of JavaBeans that are also Applets, during their
37 * instantiation by java.beans.Beans.instantiate().
38 * </p>
39 *
40 * @see java.beans.Beans#instantiate
41 *
42 * @since 1.2
43 *
44 */
45
46
47 @SuppressWarnings("deprecation")
48 public interface AppletInitializer {
49
50 /**
51 * <p>
52 * If passed to the appropriate variant of java.beans.Beans.instantiate
53 * this method will be called in order to associate the newly instantiated
54 * Applet (JavaBean) with its AppletContext, AppletStub, and Container.
55 * </p>
56 * <p>
57 * Conformant implementations shall:
58 * <ol>
59 * <li> Associate the newly instantiated Applet with the appropriate
60 * AppletContext.
61 *
62 * <li> Instantiate an AppletStub() and associate that AppletStub with
63 * the Applet via an invocation of setStub().
64 *
65 * <li> If BeanContext parameter is null, then it shall associate the
66 * Applet with its appropriate Container by adding that Applet to its
67 * Container via an invocation of add(). If the BeanContext parameter is
|