Class DefaultBeanLocator

    • Constructor Detail

      • DefaultBeanLocator

        public DefaultBeanLocator()
    • Method Detail

      • setBeanEntryPredicateSupplier

        public void setBeanEntryPredicateSupplier​(java.util.function.Supplier<java.util.function.Predicate> predicateSupplier)
        Sets the predicate supplier for bean entry filtering, may be null, when no filtering is applied.
      • locate

        public java.lang.Iterable<BeanEntry> locate​(com.google.inject.Key key)
        Description copied from interface: BeanLocator
        Finds bean implementations that match the given qualified binding Key.
        Specified by:
        locate in interface BeanLocator
        Parameters:
        key - The qualified key
        Returns:
        Sequence of bean entries that match the given key
      • watch

        public void watch​(com.google.inject.Key key,
                          Mediator mediator,
                          java.lang.Object watcher)
        Description copied from interface: BeanLocator
        Tracks bean implementations that match the given qualified binding Key.

        Uses the Mediator pattern to send events to an arbitrary watcher object.

        Specified by:
        watch in interface BeanLocator
        Parameters:
        key - The qualified key
        mediator - The event mediator
        watcher - The bean watcher