Class FacetsImpl

java.lang.Object
io.jmix.flowui.impl.FacetsImpl
All Implemented Interfaces:
Facets, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component("flowui_Facets") public class FacetsImpl extends Object implements Facets, org.springframework.context.ApplicationContextAware
Implementation of the Facets interface responsible for creating and managing UI facets.
  • Field Details

  • Constructor Details

    • FacetsImpl

      public FacetsImpl()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getProvider

      @Deprecated(since="2.8", forRemoval=true) @Nullable public <T extends Facet> FacetProvider<T> getProvider(Class<T> facetClass)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setFacetRegistrations

      @Deprecated(since="2.8", forRemoval=true) @Autowired(required=false) protected void setFacetRegistrations(List<FacetProvider<?>> facetProviders)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • create

      public <T extends Facet> T create(Class<T> facetClass)
      Description copied from interface: Facets
      Create a facet instance by its class.
      Specified by:
      create in interface Facets
      Type Parameters:
      T - type of facet
      Parameters:
      facetClass - facet class
      Returns:
      facet instance
    • register

      public void register(Class<? extends Facet> facetClass, Class<? extends Facet> replacedFacet)
    • getFacetInfo

      protected Optional<FacetsImpl.FacetInfo> getFacetInfo(Class<? extends Facet> facetClass)
    • getFacetToCreate

      protected Class<? extends Facet> getFacetToCreate(FacetsImpl.FacetInfo facetInfo)