Class ConfigurationResolver
java.lang.Object
build.codemodel.dependency.injection.ConfigurationResolver
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigurationResolverof(build.base.configuration.Configuration configuration) Creates aConfigurationResolver.resolve(Dependency dependency) Attempts to resolve a value for the type specified by theDependency.
-
Method Details
-
resolve
Description copied from interface:ResolverAttempts to resolve a value for the type specified by theDependency.- Specified by:
resolvein interfaceResolver<Object>- Parameters:
dependency- theDependency- Returns:
- the
Optionalvalue if resolvable,Optional.empty()otherwise
-
of
Creates aConfigurationResolver.- Parameters:
configuration- theConfiguration
-