@Singleton public class DefaultResourceOrigins extends Object implements javax.inject.Provider<ResourceOrigin>
@Inject ResourceOrigin
in their code. It creates the default
Magnolia stack of ResourceOrigin
s; users can expect to get a predictable "stack" of origin implementations to load
Resource
s from.Constructor and Description |
---|
DefaultResourceOrigins(info.magnolia.resourceloader.classpath.ClasspathResourceOriginFactory classpathOriginFactory,
info.magnolia.resourceloader.classpath.LegacyClasspathResourceOriginFactory legacyClasspathOriginFactory,
info.magnolia.resourceloader.file.FileSystemResourceOriginFactory fileSystemOriginFactory,
info.magnolia.resourceloader.jcr.JcrResourceOriginFactory jcrOriginFactory,
info.magnolia.resourceloader.layered.LayeredResourceOriginFactory layeredOriginFactory)
See note in
ResourceOriginFactory about why we can't use @Multibinding at the moment. |
@Inject public DefaultResourceOrigins(info.magnolia.resourceloader.classpath.ClasspathResourceOriginFactory classpathOriginFactory, info.magnolia.resourceloader.classpath.LegacyClasspathResourceOriginFactory legacyClasspathOriginFactory, info.magnolia.resourceloader.file.FileSystemResourceOriginFactory fileSystemOriginFactory, info.magnolia.resourceloader.jcr.JcrResourceOriginFactory jcrOriginFactory, info.magnolia.resourceloader.layered.LayeredResourceOriginFactory layeredOriginFactory)
ResourceOriginFactory
about why we can't use @Multibinding at the moment.public ResourceOrigin get()
get
in interface javax.inject.Provider<ResourceOrigin>
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.