Class SystemPropertyResolver
java.lang.Object
build.codemodel.dependency.injection.SystemPropertyResolver
A
Resolver of values for SystemProperty annotated Injection points,
that uses System.getProperties() to resolve values.- Since:
- Nov-2017
- Author:
- brian.oliver
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic SystemPropertyResolverof(build.codemodel.jdk.JDKCodeModel codeModel) Creates a newSystemPropertyResolverfor the specifiedJDKCodeModel.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 a newSystemPropertyResolverfor the specifiedJDKCodeModel.- Parameters:
codeModel- theJDKCodeModel- Returns:
- a new
SystemPropertyResolver
-