public final class SharedStateContribution
extends java.lang.Object
child
of the shared master injector. It does not
allow JIT bindings since they would be contributed to the shared master.
The framework uses the following contribution types internally:
ITraceURIConverterContribution
IStorage2UriMapperContribution
IResourceSetInitializer
IEagerContribution
Constructor and Description |
---|
SharedStateContribution() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getContribution(java.lang.Class<T> type)
Returns an instance of the given type if such a contribution is supported.
|
<T> com.google.inject.Provider<? extends T> |
getLazyContribution(java.lang.Class<T> type)
Returns a provider for an instance of the given type if such a contribution is supported.
|
boolean |
isContributionSupported(java.lang.Class<?> type)
Returns
true if a contribution for the given type was registered. |
public boolean isContributionSupported(java.lang.Class<?> type)
true
if a contribution for the given type was registered.public <T> T getContribution(java.lang.Class<T> type) throws com.google.inject.ProvisionException, com.google.inject.ConfigurationException
com.google.inject.ProvisionException
com.google.inject.ConfigurationException
isContributionSupported(Class)
,
Injector.getInstance(Class)
public <T> com.google.inject.Provider<? extends T> getLazyContribution(java.lang.Class<T> type) throws com.google.inject.ConfigurationException
com.google.inject.ConfigurationException
isContributionSupported(Class)
,
Injector.getProvider(Class)