@Singleton public class ConfigurationSourceFactory extends Object
ConfigurationSource
implementations.
If you implement your own ConfigurationSource
, you don't necessarily need
to implement such a factory or even a ConfigurationSourceBuilder
;
the main goal of this class is to allow relatively fluent code to register sources and "hide" their dependencies
(they're injected in this factory).Constructor and Description |
---|
ConfigurationSourceFactory(ResourceOrigin origin,
YamlReader yamlReader,
Map2BeanTransformer map2BeanTransformer,
Node2BeanProcessor node2BeanProcessor,
ModuleRegistry moduleRegistry)
Deprecated.
|
ConfigurationSourceFactory(ResourceOrigin origin,
YamlReader yamlReader,
Map2BeanTransformer map2BeanTransformer,
Node2BeanProcessor node2BeanProcessor,
ModuleRegistry moduleRegistry,
MagnoliaConfigurationProperties magnoliaConfigurationProperties) |
Modifier and Type | Method and Description |
---|---|
ConfigurationSourceBuilder |
code() |
JcrConfigurationSourceBuilder |
jcr() |
YamlConfigurationSourceBuilder |
yaml() |
@Deprecated public ConfigurationSourceFactory(ResourceOrigin origin, YamlReader yamlReader, Map2BeanTransformer map2BeanTransformer, Node2BeanProcessor node2BeanProcessor, ModuleRegistry moduleRegistry)
ConfigurationSourceFactory(ResourceOrigin, YamlReader, Map2BeanTransformer, Node2BeanProcessor, ModuleRegistry, MagnoliaConfigurationProperties)
instead.@Inject public ConfigurationSourceFactory(ResourceOrigin origin, YamlReader yamlReader, Map2BeanTransformer map2BeanTransformer, Node2BeanProcessor node2BeanProcessor, ModuleRegistry moduleRegistry, MagnoliaConfigurationProperties magnoliaConfigurationProperties)
public YamlConfigurationSourceBuilder yaml()
public JcrConfigurationSourceBuilder jcr()
public ConfigurationSourceBuilder code()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.