Interface SimpleBeanStoreImpl.BeanContributor

  • All Known Implementing Classes:
    ActionBuilder, ComponentBuilderData, WindowBuilderData
    Enclosing class:
    SimpleBeanStoreImpl

    public static interface SimpleBeanStoreImpl.BeanContributor

    Definition of an interface for objects that can contribute beans for a SimpleBeanStoreImpl object.

    The methods defined in this interface allow an implementation to deliver plain data objects (in contrast to BeanProvider objects. The implementations of the BeanStore methods delegate to these methods when the bean store is accessed.

    • Method Detail

      • beanNames

        void beanNames​(Set<String> names)
        Obtains the names of the beans available by this contributor. This method is invoked by the providerNames() method.
        Parameters:
        names - a set, in which to store the names of the available beans
      • getBean

        Object getBean​(String name)
        Returns the bean with the given name or null if the name is unknown. When queried for a bean the BeanStore implementation will iterate over all registered contributors and call this method. The first non null value is returned.
        Parameters:
        name - the name of the queried bean
        Returns:
        the bean with this name or null