Interface BeanBound

    • Method Detail

      • setBean

        void setBean​(Object bean)
        Sets the bean for the given context.
        Parameters:
        bean - the bean to set
      • isSearchAncestors

        boolean isSearchAncestors()
        Flag to indicate if a bean should be searched for up the component tree. If set true and the current component does not have a bean, then ask the next bean aware ancestor for its bean. If false and the component does not have a bean, then do not search the tree for a bean and return null.

        Setting this to false at the correct bean container level can stop a bean component going up the whole component tree looking for its bean and being given the wrong bean.

        Returns:
        true if search ancestors for a bean, otherwise false to not search