Class DefaultOptionResolver

java.lang.Object
build.codemodel.dependency.injection.DefaultOptionResolver
All Implemented Interfaces:
Resolver<Object>

public class DefaultOptionResolver extends Object implements Resolver<Object>
A Resolver that instantiates Option subclasses via their Default-annotated factory (no-arg constructor, static method, or static field) when no other resolver provides them.

This is the fallback resolver for Option types: if the primary ConfigurationResolver returns empty (because the Configuration bag doesn't contain that option), this resolver creates a default instance using the Default annotation.

Author:
reed.vonredwitz
See Also: