public interface

BindingPublisher

org.sonatype.guice.bean.locators.spi.BindingPublisher

Class Overview

Publisher of Bindings to interested BindingSubscribers.

Summary

Public Methods
abstract <T> boolean contains(Binding<T> binding)
Determines whether or not the given Binding belongs to this publisher.
abstract <T> void subscribe(TypeLiteral<T> type, BindingSubscriber subscriber)
Subscribes the given BindingSubscriber to receive Bindings of the given type.
abstract <T> void unsubscribe(TypeLiteral<T> type, BindingSubscriber subscriber)
Stops the given BindingSubscriber from receiving Bindings of the given type.

Public Methods

public abstract boolean contains (Binding<T> binding)

Determines whether or not the given Binding belongs to this publisher.

Parameters
binding The binding
Returns
  • true if the binding belongs to this publisher; otherwise false

public abstract void subscribe (TypeLiteral<T> type, BindingSubscriber subscriber)

Subscribes the given BindingSubscriber to receive Bindings of the given type.

Parameters
type The binding type
subscriber The subscriber

public abstract void unsubscribe (TypeLiteral<T> type, BindingSubscriber subscriber)

Stops the given BindingSubscriber from receiving Bindings of the given type.

Parameters
type The binding type
subscriber The subscriber