Class ChildApplicationContextFactory.ApplicationContextState

    • Constructor Detail

      • ApplicationContextState

        protected ApplicationContextState​(boolean allowInitAccess)
                                   throws IOException
        Instantiates a new application context state.
        Throws:
        IOException - Signals that an I/O exception has occurred.
    • Method Detail

      • destroy

        public void destroy​(boolean permanent)
        Releases any resources held by this state.
        Parameters:
        permanent - is the state being destroyed forever, i.e. should persisted values be removed? On server shutdown, this value would be false, whereas on the removal of a dynamically created instance, this value would be true.
      • getReadOnlyApplicationContext

        public org.springframework.context.ApplicationContext getReadOnlyApplicationContext()
        Gets the application context. Will not start a subsystem.
        Returns:
        the application context or null
      • getApplicationContext

        public org.springframework.context.ApplicationContext getApplicationContext()
        Gets the application context.
        Returns:
        the application context
      • getApplicationContext

        public org.springframework.context.ApplicationContext getApplicationContext​(boolean start)
        Gets the application context.
        Parameters:
        start - indicates whether state should be started
        Returns:
        the application context or null if state was not already started and start == false