Package org.eclipse.sisu.inject
Class InjectorBindings
java.lang.Object
org.eclipse.sisu.inject.InjectorBindings
- All Implemented Interfaces:
BindingPublisher
-
Constructor Summary
ConstructorsConstructorDescriptionInjectorBindings(com.google.inject.Injector injector) InjectorBindings(com.google.inject.Injector injector, RankingFunction function) -
Method Summary
Modifier and TypeMethodDescription<T> TAttempts to adapt this publisher to the given type.booleanstatic BindingPublisherfindBindingPublisher(com.google.inject.Injector injector) static RankingFunctionfindRankingFunction(com.google.inject.Injector injector) inthashCode()intEstimates the maximum rank this publisher may assign to aBinding.<T> voidsubscribe(BindingSubscriber<T> subscriber) Subscribes the givenBindingSubscriberto receiveBindings.toString()<T> voidunsubscribe(BindingSubscriber<T> subscriber) Stops the givenBindingSubscriberfrom receivingBindings.
-
Constructor Details
-
InjectorBindings
-
InjectorBindings
@Inject public InjectorBindings(com.google.inject.Injector injector)
-
-
Method Details
-
findBindingPublisher
-
findRankingFunction
-
subscribe
Description copied from interface:BindingPublisherSubscribes the givenBindingSubscriberto receiveBindings.- Specified by:
subscribein interfaceBindingPublisher- Parameters:
subscriber- The subscriber
-
unsubscribe
Description copied from interface:BindingPublisherStops the givenBindingSubscriberfrom receivingBindings.- Specified by:
unsubscribein interfaceBindingPublisher- Parameters:
subscriber- The subscriber
-
maxBindingRank
public int maxBindingRank()Description copied from interface:BindingPublisherEstimates the maximum rank this publisher may assign to aBinding.- Specified by:
maxBindingRankin interfaceBindingPublisher- Returns:
- Maximum binding rank
-
adapt
Description copied from interface:BindingPublisherAttempts to adapt this publisher to the given type.- Specified by:
adaptin interfaceBindingPublisher- Parameters:
type- The target type- Returns:
- Adapted instance;
nullif it couldn't be adapted
-
hashCode
public int hashCode() -
equals
-
toString
-