@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(info.magnolia.resourceloader.ResourceOrigin origin,
YamlReader yamlReader,
Map2BeanTransformer map2BeanTransformer,
info.magnolia.jcr.node2bean.Node2BeanProcessor node2BeanProcessor,
info.magnolia.module.ModuleRegistry moduleRegistry)
Deprecated.
|
ConfigurationSourceFactory(info.magnolia.resourceloader.ResourceOrigin origin,
YamlReader yamlReader,
info.magnolia.map2bean.Map2BeanTransformer map2BeanTransformer,
info.magnolia.jcr.node2bean.Node2BeanProcessor node2BeanProcessor,
info.magnolia.module.ModuleRegistry moduleRegistry,
info.magnolia.init.MagnoliaConfigurationProperties magnoliaConfigurationProperties) |
Modifier and Type | Method and Description |
---|---|
ConfigurationSourceBuilder |
code() |
JcrConfigurationSourceBuilder |
jcr() |
YamlConfigurationSourceBuilder |
yaml() |
@Deprecated public ConfigurationSourceFactory(info.magnolia.resourceloader.ResourceOrigin origin, YamlReader yamlReader, Map2BeanTransformer map2BeanTransformer, info.magnolia.jcr.node2bean.Node2BeanProcessor node2BeanProcessor, info.magnolia.module.ModuleRegistry moduleRegistry)
ConfigurationSourceFactory(ResourceOrigin, YamlReader, Map2BeanTransformer, Node2BeanProcessor, ModuleRegistry, MagnoliaConfigurationProperties)
instead.@Inject public ConfigurationSourceFactory(info.magnolia.resourceloader.ResourceOrigin origin, YamlReader yamlReader, info.magnolia.map2bean.Map2BeanTransformer map2BeanTransformer, info.magnolia.jcr.node2bean.Node2BeanProcessor node2BeanProcessor, info.magnolia.module.ModuleRegistry moduleRegistry, info.magnolia.init.MagnoliaConfigurationProperties magnoliaConfigurationProperties)
public YamlConfigurationSourceBuilder yaml()
public JcrConfigurationSourceBuilder jcr()
public ConfigurationSourceBuilder code()
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.