public class PropertyProviderRegistratorGenerator extends Generator
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_PROVIDER_REGISTRATOR_SUFFIX
The extension for all generated property provider registrator classes.
|
Constructor and Description |
---|
PropertyProviderRegistratorGenerator(Collection<BindingProperty> newBindingProperties,
SortedSet<ConfigurationProperty> configurationProperties)
Constructs a PropertyProviderRegistratorGenerator that is able to generate a property provider
registrator for all of the given a collection of binding properties.
The provided binding properties are expected to all have been created by the current module but the provided configuration properties should be all that have been created by the entire current dependency tree. |
Modifier and Type | Method and Description |
---|---|
String |
generate(TreeLogger logger,
GeneratorContext context,
String moduleName)
Generate a default constructible subclass of the requested type.
|
escape, escapeClassName
public static final String PROPERTY_PROVIDER_REGISTRATOR_SUFFIX
public PropertyProviderRegistratorGenerator(Collection<BindingProperty> newBindingProperties, SortedSet<ConfigurationProperty> configurationProperties)
public String generate(TreeLogger logger, GeneratorContext context, String moduleName) throws UnableToCompleteException
Generator
UnableToCompleteException
if for any reason it cannot provide a substitute classgenerate
in class Generator
null
to cause the requested type itself to be usedUnableToCompleteException
Copyright © 2018. All rights reserved.