-
public interface BeanContextProxy
This interface is implemented by a JavaBean that does not directly have a BeanContext(Child) associated with it (via implementing that interface or a subinterface thereof), but has a public BeanContext(Child) delegated from it. For example, a subclass of java.awt.Container may have a BeanContext associated with it that all Component children of that Container shall be contained within.
An Object may not implement this interface and the BeanContextChild interface (or any subinterfaces thereof) they are mutually exclusive.
Callers of this interface shall examine the return type in order to obtain a particular subinterface of BeanContextChild as follows:
BeanContextChild bcc = o.getBeanContextProxy(); if (bcc instanceof BeanContext) { // ... }
orBeanContextChild bcc = o.getBeanContextProxy(); BeanContext bc = null; try { bc = (BeanContext)bcc; } catch (ClassCastException cce) { // cast failed, bcc is not an instanceof BeanContext }
The return value is a constant for the lifetime of the implementing instance
- Since:
- 1.2
- See Also:
BeanContextChild
,BeanContextChildSupport
-
-
Method Summary
Methods Modifier and Type Method and Description BeanContextChild
getBeanContextProxy()
Gets theBeanContextChild
(or subinterface) associated with this object.
-
-
-
Method Detail
-
getBeanContextProxy
BeanContextChild getBeanContextProxy()
Gets theBeanContextChild
(or subinterface) associated with this object.- Returns:
- the
BeanContextChild
(or subinterface) associated with this object
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-java/beans/beancontext/BeanContextProxy.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.