Interface AbstractBeanContainer.BeanIdResolver<IDTYPE,​BEANTYPE>

  • Type Parameters:
    IDTYPE -
    BEANTYPE -
    All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    AbstractBeanContainer.PropertyBasedBeanIdResolver
    Enclosing class:
    AbstractBeanContainer<IDTYPE,​BEANTYPE>

    public static interface AbstractBeanContainer.BeanIdResolver<IDTYPE,​BEANTYPE>
    extends Serializable
    Resolver that maps beans to their (item) identifiers, removing the need to explicitly specify item identifiers when there is no need to customize this. Note that beans can also be added with an explicit id even if a resolver has been set.
    Since:
    6.5
    • Method Detail

      • getIdForBean

        IDTYPE getIdForBean​(BEANTYPE bean)
        Return the item identifier for a bean.
        Parameters:
        bean -
        Returns: