Class DevelopmentComponentRegistry

All Implemented Interfaces:
ComponentRegistry<DefaultComponentRegistry>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class DevelopmentComponentRegistry extends DefaultComponentRegistry implements org.springframework.context.ApplicationContextAware
Component registry that can be used during development. Calling the re-register components method will rebuild metadata. This relies on JDK class hot swapping.

To enable, add the property 'broadleaf.metadata.development-mode=true'

  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
  • Constructor Details

  • Method Details

    • setApplicationContext

      @Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • reRegisterComponents

      public void reRegisterComponents()
      Description copied from interface: ComponentRegistry
      Re-registers all metadata components. Useful during development, as this avoids needing to restart the application.
      Specified by:
      reRegisterComponents in interface ComponentRegistry<DefaultComponentRegistry>