Class EntityPostConstructInitializer

java.lang.Object
io.jmix.core.impl.EntityPostConstructInitializer
All Implemented Interfaces:
EntityInitializer

@Component("core_EntityPostConstructInitializer") public class EntityPostConstructInitializer extends Object implements EntityInitializer
  • Field Details

    • applicationContext

      @Autowired protected org.springframework.context.ApplicationContext applicationContext
    • coreProperties

      @Autowired protected CoreProperties coreProperties
    • postConstructMethodsCache

      protected com.google.common.cache.LoadingCache<Class<?>,List<Method>> postConstructMethodsCache
  • Constructor Details

    • EntityPostConstructInitializer

      public EntityPostConstructInitializer()
  • Method Details

    • isApplicableToExistingEntity

      public boolean isApplicableToExistingEntity()
      Description copied from interface: EntityInitializer
      Returns true if this initializer should be invoked when an instance is created for an entity that already exists, for example when the entity is deserialized from JSON.
      Specified by:
      isApplicableToExistingEntity in interface EntityInitializer
    • initEntity

      public void initEntity(Object entity)
      Specified by:
      initEntity in interface EntityInitializer
    • getPostConstructMethodsNotCached

      protected List<Method> getPostConstructMethodsNotCached(Class<?> clazz)