Class FacetsImpl

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

@Component("fowui_Facets") public class FacetsImpl extends Object implements Facets, org.springframework.context.ApplicationContextAware
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • registrations

      protected Map<Class<? extends Facet>,FacetProvider> registrations
  • 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
    • setFacetRegistrations

      @Autowired(required=false) protected void setFacetRegistrations(List<FacetProvider<?>> registrations)
    • 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