## Uses of Interface
java.beans.beancontext.BeanContext

- Packages that use BeanContext
  Package | Description
  --- | ---
  java.beans | Contains classes related to developing beans -- components based on the JavaBeans™ architecture.
  java.beans.beancontext | Provides classes and interfaces relating to bean context.

- - ### Uses of BeanContext in java.beans

    Methods in java.beans with parameters of type BeanContext
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | AppletInitializer.`initialize(Applet newAppletBean, BeanContext bCtxt)` If passed to the appropriate variant of java.beans.Beans.instantiate this method will be called in order to associate the newly instantiated Applet (JavaBean) with its AppletContext, AppletStub, and Container.
    `static Object` | Beans.`instantiate(ClassLoader cls, String beanName, BeanContext beanContext)` Instantiate a JavaBean.
    `static Object` | Beans.`instantiate(ClassLoader cls, String beanName, BeanContext beanContext, AppletInitializer initializer)` Instantiate a bean.

  - ### Uses of BeanContext in java.beans.beancontext

    Subinterfaces of BeanContext in java.beans.beancontext
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `BeanContextServices` The BeanContextServices interface provides a mechanism for a BeanContext to expose generic "services" to the BeanContextChild objects within.

    Classes in java.beans.beancontext that implement BeanContext
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `BeanContextServicesSupport` This helper class provides a utility implementation of the java.beans.beancontext.BeanContextServices interface.
    `class` | `BeanContextSupport` This helper class provides a utility implementation of the java.beans.beancontext.BeanContext interface.

    Fields in java.beans.beancontext declared as BeanContext
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected BeanContext` | BeanContextChildSupport.`beanContext` The bean context.
    `protected BeanContext` | BeanContextEvent.`propagatedFrom` The `BeanContext` from which this event was propagated

    Methods in java.beans.beancontext that return BeanContext
    Modifier and Type | Method | Description
    --- | --- | ---
    `BeanContext` | BeanContextChildSupport.`getBeanContext()` Gets the nesting `BeanContext` for this `BeanContextChildSupport`.
    `BeanContext` | BeanContextEvent.`getBeanContext()` Gets the `BeanContext` associated with this event.
    `BeanContext` | BeanContextChild.`getBeanContext()` Gets the `BeanContext` associated with this `BeanContextChild`.
    `BeanContext` | BeanContextSupport.`getBeanContextPeer()` Gets the instance of `BeanContext` that this object is providing the implementation for.
    `BeanContext` | BeanContextEvent.`getPropagatedFrom()` Gets the `BeanContext` from which this event was propagated.

    Methods in java.beans.beancontext with parameters of type BeanContext
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | BeanContextChildSupport.`setBeanContext(BeanContext bc)` Sets the `BeanContext` for this `BeanContextChildSupport`.
    `void` | BeanContextChild.`setBeanContext(BeanContext bc)` Objects that implement this interface, shall fire a java.beans.PropertyChangeEvent, with parameters: propertyName "beanContext", oldValue (the previous nesting `BeanContext` instance, or `null`), newValue (the current nesting `BeanContext` instance, or `null`).
    `void` | BeanContextEvent.`setPropagatedFrom(BeanContext bc)` Sets the `BeanContext` from which this event was propagated.
    `boolean` | BeanContextChildSupport.`validatePendingSetBeanContext(BeanContext newValue)` Called from setBeanContext to validate (or otherwise) the pending change in the nesting BeanContext property value.

    Constructors in java.beans.beancontext with parameters of type BeanContext
    Constructor | Description
    --- | ---
    `BeanContextEvent(BeanContext bc)` Contruct a BeanContextEvent
    `BeanContextMembershipEvent(BeanContext bc, Collection changes)` Contruct a BeanContextMembershipEvent
    `BeanContextMembershipEvent(BeanContext bc, Object[] changes)` Contruct a BeanContextMembershipEvent
    `BeanContextSupport(BeanContext peer)` Create an instance using with a default locale
    `BeanContextSupport(BeanContext peer, Locale lcle)` Create an instance using the specified locale
    `BeanContextSupport(BeanContext peer, Locale lcle, boolean dtime)` Create an instance using the specified Locale and design mode.
    `BeanContextSupport(BeanContext peer, Locale lcle, boolean dTime, boolean visible)` Construct a BeanContextSupport instance

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.