Class CoreConfiguration

  • All Implemented Interfaces:
    io.micronaut.context.event.ApplicationEventListener<io.micronaut.context.event.ShutdownEvent>, java.util.EventListener

    @Factory
    public class CoreConfiguration
    extends java.lang.Object
    implements io.micronaut.context.event.ApplicationEventListener<io.micronaut.context.event.ShutdownEvent>
    Core beans.
    Since:
    4.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.context.ConfigurableApplicationContext getChildContext()  
      void onApplicationEvent​(io.micronaut.context.event.ShutdownEvent event)  
      void setChildContext​(org.springframework.context.ConfigurableApplicationContext childContext)
      Sets the child Spring context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.micronaut.context.event.ApplicationEventListener

        supports
    • Constructor Detail

      • CoreConfiguration

        public CoreConfiguration​(GrailsApplication grailsApplication)
    • Method Detail

      • setChildContext

        public void setChildContext​(org.springframework.context.ConfigurableApplicationContext childContext)
        Sets the child Spring context.
        Parameters:
        childContext - The child context
      • getChildContext

        public org.springframework.context.ConfigurableApplicationContext getChildContext()
      • onApplicationEvent

        public void onApplicationEvent​(io.micronaut.context.event.ShutdownEvent event)
        Specified by:
        onApplicationEvent in interface io.micronaut.context.event.ApplicationEventListener<io.micronaut.context.event.ShutdownEvent>