public class SwitchableApplicationContextFactory extends AbstractPropertyBackedBean implements ApplicationContextFactory
ApplicationContextFactory beans that allows dynamic selection of one or
more alternative subsystems via a sourceBeanName property. As with other PropertyBackedBeans,
can be stopped, reconfigured, started and tested.| Modifier and Type | Class and Description |
|---|---|
protected class |
SwitchableApplicationContextFactory.SwitchableState
Represents the state of a
SwitchableApplicationContextFactory. |
AbstractPropertyBackedBean.DefaultResolverDEFAULT_INSTANCE_NAME, lock| Constructor and Description |
|---|
SwitchableApplicationContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected PropertyBackedBeanState |
createInitialState()
Creates the initial state.
|
org.springframework.context.ApplicationContext |
getApplicationContext()
Gets the application context, configured according to the properties of the factory.
|
java.lang.String |
getCurrentSourceBeanName() |
void |
setSourceBeanName(java.lang.String sourceBeanName)
Sets the default bean name of the source
ApplicationContextFactory. |
afterPropertiesSet, applyDefaultOverrides, destroy, destroy, doInit, getCategory, getDescription, getId, getInstancePath, getParent, getProperty, getPropertyDefaults, getPropertyNames, getRegistry, getState, init, isUpdateable, onApplicationEvent, resolveDefault, revert, setApplicationContext, setAutoStart, setBeanName, setCategory, setInstancePath, setProperties, setProperty, setPropertyDefaults, setRegistry, start, start, stop, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getId, isUpdateable, revert, setPropertiesgetProperty, getPropertyNames, setProperty, start, stoppublic void setSourceBeanName(java.lang.String sourceBeanName)
ApplicationContextFactory.sourceBeanName - the bean namepublic java.lang.String getCurrentSourceBeanName()
public org.springframework.context.ApplicationContext getApplicationContext()
ApplicationContextFactorygetApplicationContext in interface ApplicationContextFactoryprotected PropertyBackedBeanState createInitialState() throws java.io.IOException
AbstractPropertyBackedBeancreateInitialState in class AbstractPropertyBackedBeanjava.io.IOException - Signals that an I/O exception has occurred.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.