Class ChildApplicationContextFactory.ApplicationContextState

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ApplicationContextState​(boolean allowInitAccess)
      Instantiates a new application context state.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy​(boolean permanent)
      Releases any resources held by this state.
      org.springframework.context.ApplicationContext getApplicationContext()
      Gets the application context.
      org.springframework.context.ApplicationContext getApplicationContext​(boolean start)
      Gets the application context.
      java.lang.String getProperty​(java.lang.String name)
      Gets a property value.
      java.util.Set<java.lang.String> getPropertyNames()
      Gets the names of all properties.
      org.springframework.context.ApplicationContext getReadOnlyApplicationContext()
      Gets the application context.
      void removeProperty​(java.lang.String name)
      Removes a property.
      void setProperty​(java.lang.String name, java.lang.String value)
      Sets the value of a property.
      void start()
      Starts up the component, using its new property values.
      void stop()
      Stops the component, so that its property values can be changed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApplicationContextState

        protected ApplicationContextState​(boolean allowInitAccess)
                                   throws java.io.IOException
        Instantiates a new application context state.
        Throws:
        java.io.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