Bean Contexts
All beans exist within a bean context. A bean is instantiated in a bean context where it exists in relation to other beans until it is killed and eaten up by the JVM's garbage collectors. Services can be added to or removed from the bean context while the bean is running. Beans are able to explore their environment (the bean context) looking for available services. After they find them, beans are able to use the services provided by a bean context. The bean context is formalized by a set of bean context interfaces. Four interfaces form the root of the bean context interface hierarchy: the java.util.Collection, java.beans.DesignMode, java.beans.Visibility, and java.beans.beancontext. BeanContextChild interfaces. Tables 8.1 through ...
Get JavaBeans Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.