org.alfresco.repo.management.subsystems
Class DefaultChildApplicationContextManager.ApplicationContextManagerState

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

protected class DefaultChildApplicationContextManager.ApplicationContextManagerState
extends java.lang.Object
implements PropertyBackedBeanState

The Class ApplicationContextManagerState.


Constructor Summary
protected DefaultChildApplicationContextManager.ApplicationContextManagerState(java.lang.String defaultChain, java.lang.String defaultTypeName)
          Instantiates a new application context manager state.
 
Method Summary
 org.springframework.context.ApplicationContext getApplicationContext(java.lang.String id)
          Gets the application context.
protected  ChildApplicationContextFactory getApplicationContextFactory(java.lang.String id)
          Gets the application context factory.
 java.util.Collection getInstanceIds()
          Gets the instance ids.
 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

DefaultChildApplicationContextManager.ApplicationContextManagerState

protected DefaultChildApplicationContextManager.ApplicationContextManagerState(java.lang.String defaultChain,
                                                                               java.lang.String defaultTypeName)
Instantiates a new application context manager state.

Parameters:
defaultChain - the default chain
defaultTypeName - the default type name
Method Detail

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

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

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

getInstanceIds

public java.util.Collection getInstanceIds()
Gets the instance ids.

Returns:
the instance ids

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext(java.lang.String id)
Gets the application context.

Parameters:
id - the id
Returns:
the application context

getApplicationContextFactory

protected ChildApplicationContextFactory getApplicationContextFactory(java.lang.String id)
Gets the application context factory.

Parameters:
id - the id
Returns:
the application context factory


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