Class ChildApplicationContextFactory.ApplicationContextState

java.lang.Object
org.alfresco.repo.management.subsystems.ChildApplicationContextFactory.ApplicationContextState
All Implemented Interfaces:
PropertyBackedBeanState
Enclosing class:
ChildApplicationContextFactory

protected class ChildApplicationContextFactory.ApplicationContextState extends Object implements PropertyBackedBeanState
The Class ApplicationContextState.
  • Constructor Details

    • ApplicationContextState

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

    • getPropertyNames

      public Set<String> getPropertyNames()
      Description copied from interface: PropertyBackedBeanState
      Gets the names of all properties.
      Specified by:
      getPropertyNames in interface PropertyBackedBeanState
      Returns:
      the property names
    • getProperty

      public String getProperty(String name)
      Description copied from interface: PropertyBackedBeanState
      Gets a property value.
      Specified by:
      getProperty in interface PropertyBackedBeanState
      Parameters:
      name - the name
      Returns:
      the property value
    • setProperty

      public void setProperty(String name, String value)
      Description copied from interface: PropertyBackedBeanState
      Sets the value of a property. This may only be called after PropertyBackedBeanState.stop().
      Specified by:
      setProperty in interface PropertyBackedBeanState
      Parameters:
      name - the property name
      value - the property value
    • removeProperty

      public void removeProperty(String name)
      Description copied from interface: PropertyBackedBeanState
      Removes a property. This may only be called after PropertyBackedBeanState.stop().
      Specified by:
      removeProperty in interface PropertyBackedBeanState
      Parameters:
      name - the property name
    • start

      public void start()
      Description copied from interface: PropertyBackedBeanState
      Starts up the component, using its new property values.
      Specified by:
      start in interface PropertyBackedBeanState
    • stop

      public void stop()
      Description copied from interface: PropertyBackedBeanState
      Stops the component, so that its property values can be changed.
      Specified by:
      stop in interface PropertyBackedBeanState
    • 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