com.google.inject.spi.ProviderInstanceBinding Java Examples
The following examples show how to use
com.google.inject.spi.ProviderInstanceBinding.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RibbonResourceProvider.java From ribbon with Apache License 2.0 | 5 votes |
/** * This is needed for 'initialize(injector)' below to be called so the provider * can get the injector after it is instantiated. */ @Override public <B, V> V acceptExtensionVisitor( BindingTargetVisitor<B, V> visitor, ProviderInstanceBinding<? extends B> binding) { return visitor.visit(binding); }
Example #2
Source File: BindingTargetTypeResolver.java From ProjectAres with GNU Affero General Public License v3.0 | 4 votes |
@Override public Optional<TypeLiteral<?>> visit(ProviderInstanceBinding<?> binding) { // We don't know what the provider will return return empty(); }
Example #3
Source File: DependencyCollector.java From ProjectAres with GNU Affero General Public License v3.0 | 4 votes |
@Override public Object visit(ProviderInstanceBinding<? extends T> providerInstanceBinding) { processInjectionPoints(providerInstanceBinding.getInjectionPoints()); return super.visit(providerInstanceBinding); }
Example #4
Source File: Scoper.java From ProjectAres with GNU Affero General Public License v3.0 | 4 votes |
@Override public Void visit(ProviderInstanceBinding<? extends T> binding) { scope(binding, rebind(binding).toProvider(binding.getUserSuppliedProvider())); return null; }
Example #5
Source File: EndpointsModuleTest.java From endpoints-java with Apache License 2.0 | 4 votes |
@Override public Void visit(ProviderInstanceBinding<?> providerInstanceBinding) { extractSystemServiceBinding(providerInstanceBinding); return null; }
Example #6
Source File: AdapterInjector.java From gef with Eclipse Public License 2.0 | 4 votes |
@Override public TypeToken<?> visit( ProviderInstanceBinding<? extends Object> binding) { return null; }
Example #7
Source File: AdapterInjector.java From gef with Eclipse Public License 2.0 | 4 votes |
@Override public MapBinderBinding<?> visit( ProviderInstanceBinding<? extends Object> binding) { return null; }