public class SharedStateContributionRegistryImpl extends java.lang.Object implements ISharedStateContributionRegistry
Constructor and Description |
---|
SharedStateContributionRegistryImpl(com.google.inject.Injector injector) |
Modifier and Type | Method and Description |
---|---|
SharedStateContribution |
createContribution(com.google.inject.Module childModule) |
com.google.inject.Injector |
createInjectorWithoutJITBindings(com.google.inject.Module childModule) |
<T> com.google.common.collect.ImmutableList<? extends T> |
getContributedInstances(java.lang.Class<T> type)
Initialize and return all known contributions.
|
com.google.common.collect.ImmutableList<? extends SharedStateContribution> |
getContributions()
Returns all contribution handles.
|
<T> com.google.common.collect.ImmutableList<? extends com.google.inject.Provider<? extends T>> |
getLazyContributedInstances(java.lang.Class<T> type)
Returns providers for all known contribution for the given type.
|
<T> com.google.inject.Provider<? extends T> |
getLazySingleContributedInstance(java.lang.Class<T> type)
Return a provider the single known contribution for the given type.
|
<T> T |
getSingleContributedInstance(java.lang.Class<T> type)
Initialize and return the single known contribution for the given type.
|
protected com.google.inject.Module |
getWrappedModule(com.google.inject.Module childModule) |
@Inject public SharedStateContributionRegistryImpl(com.google.inject.Injector injector)
public com.google.inject.Injector createInjectorWithoutJITBindings(com.google.inject.Module childModule)
public com.google.common.collect.ImmutableList<? extends SharedStateContribution> getContributions()
ISharedStateContributionRegistry
null
but possibly empty.getContributions
in interface ISharedStateContributionRegistry
public <T> com.google.common.collect.ImmutableList<? extends T> getContributedInstances(java.lang.Class<T> type)
ISharedStateContributionRegistry
null
but possibly empty.getContributedInstances
in interface ISharedStateContributionRegistry
public <T> com.google.inject.Provider<? extends T> getLazySingleContributedInstance(java.lang.Class<T> type)
ISharedStateContributionRegistry
IllegalStateException
if
there is no such contribution or more than one contribution for that type.getLazySingleContributedInstance
in interface ISharedStateContributionRegistry
public <T> T getSingleContributedInstance(java.lang.Class<T> type)
ISharedStateContributionRegistry
IllegalStateException
if there is no such contribution or more than one contribution for that type.getSingleContributedInstance
in interface ISharedStateContributionRegistry
public <T> com.google.common.collect.ImmutableList<? extends com.google.inject.Provider<? extends T>> getLazyContributedInstances(java.lang.Class<T> type)
ISharedStateContributionRegistry
null
but
possibly empty.getLazyContributedInstances
in interface ISharedStateContributionRegistry
public SharedStateContribution createContribution(com.google.inject.Module childModule)
protected com.google.inject.Module getWrappedModule(com.google.inject.Module childModule)