Class DefaultPageVariationResolverTypeRegistry
- java.lang.Object
-
- de.hybris.platform.cmsfacades.pages.service.impl.DefaultPageVariationResolverTypeRegistry
-
- All Implemented Interfaces:
PageVariationResolverTypeRegistry,org.springframework.beans.factory.InitializingBean
public class DefaultPageVariationResolverTypeRegistry extends java.lang.Object implements PageVariationResolverTypeRegistry, org.springframework.beans.factory.InitializingBean
Default implementation of thePageVariationResolverTypeRegistry. This implementation uses autowire-by-type to inject all beans implementingPageVariationResolverType.
-
-
Constructor Summary
Constructors Constructor Description DefaultPageVariationResolverTypeRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected java.util.Set<PageVariationResolverType>getAllPageVariationResolverTypes()java.util.Optional<PageVariationResolverType>getPageVariationResolverType(java.lang.String typecode)Get a specificPageVariationResolverTypeby type code.java.util.Collection<PageVariationResolverType>getPageVariationResolverTypes()Get all elements in the registry.protected java.util.Map<java.lang.String,PageVariationResolverType>getResolversByType()voidsetAllPageVariationResolverTypes(java.util.Set<PageVariationResolverType> allPageVariationResolverTypes)
-
-
-
Method Detail
-
getPageVariationResolverType
public java.util.Optional<PageVariationResolverType> getPageVariationResolverType(java.lang.String typecode)
Description copied from interface:PageVariationResolverTypeRegistryGet a specificPageVariationResolverTypeby type code.- Specified by:
getPageVariationResolverTypein interfacePageVariationResolverTypeRegistry- Parameters:
typecode- - the model type code of the element to retrieve from the registry- Returns:
- the element matching the page type. If none is found matching the given page type, return the resolver
type for
AbstractPageModel
-
getPageVariationResolverTypes
public java.util.Collection<PageVariationResolverType> getPageVariationResolverTypes()
Description copied from interface:PageVariationResolverTypeRegistryGet all elements in the registry.- Specified by:
getPageVariationResolverTypesin interfacePageVariationResolverTypeRegistry- Returns:
- all items in the registry; never null
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
getAllPageVariationResolverTypes
protected java.util.Set<PageVariationResolverType> getAllPageVariationResolverTypes()
-
setAllPageVariationResolverTypes
public void setAllPageVariationResolverTypes(java.util.Set<PageVariationResolverType> allPageVariationResolverTypes)
-
getResolversByType
protected java.util.Map<java.lang.String,PageVariationResolverType> getResolversByType()
-
-