Class DefaultSnFieldFactory

  • All Implemented Interfaces:
    SnFieldFactory, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

    public class DefaultSnFieldFactory
    extends java.lang.Object
    implements SnFieldFactory, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
    Default implementation of SnFieldFactory.
    • Constructor Detail

      • DefaultSnFieldFactory

        public DefaultSnFieldFactory()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • loadFieldProviders

        protected void loadFieldProviders()
      • getDefaultFields

        public java.util.List<SnField> getDefaultFields​(SnIndexType indexType)
        Description copied from interface: SnFieldFactory
        Returns default fields to be added to an index type.
        Specified by:
        getDefaultFields in interface SnFieldFactory
        Parameters:
        indexType - - the index type
        Returns:
        the default fields
      • getApplicationContext

        protected org.springframework.context.ApplicationContext getApplicationContext()
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware