org.alfresco.repo.management.subsystems
Class ChildApplicationContextFactory.ApplicationContextState

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

protected class ChildApplicationContextFactory.ApplicationContextState
extends java.lang.Object
implements PropertyBackedBeanState

The Class ApplicationContextState.


Constructor Summary
protected ChildApplicationContextFactory.ApplicationContextState()
          Instantiates a new application context state.
 
Method Summary
 void destroy(boolean permanent)
          Releases any resources held by this state.
 org.springframework.context.ApplicationContext getApplicationContext()
          Gets the application context.
 java.lang.String getProperty(java.lang.String name)
          Gets a property value.
 java.util.Set getPropertyNames()
          Gets the names of all properties.
 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

ChildApplicationContextFactory.ApplicationContextState

protected ChildApplicationContextFactory.ApplicationContextState()
                                                          throws java.io.IOException
Instantiates a new application context state.

Throws:
java.io.IOException - Signals that an I/O exception has occurred.
Method Detail

getPropertyNames

public java.util.Set getPropertyNames()
Description copied from interface: PropertyBackedBeanState
Gets the names of all properties.

Specified by:
getPropertyNames in interface PropertyBackedBeanState
Returns:
the property names

getProperty

public java.lang.String getProperty(java.lang.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(java.lang.String name,
                        java.lang.String value)
Description copied from interface: PropertyBackedBeanState
Sets the value of a property. This may only be called after PropertyBackedBeanState.stop() and should only be called for property names for which the #isUpdateable(String) method returns true.

Specified by:
setProperty in interface PropertyBackedBeanState
Parameters:
name - the property name
value - the property value

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.

getApplicationContext

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

Returns:
the application context


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.