org.javasimon.spring
Class SimonConfigurationBean
java.lang.Object
org.javasimon.spring.SimonConfigurationBean
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
- SimonWebConfigurationBean
public class SimonConfigurationBean
- extends Object
- implements org.springframework.beans.factory.InitializingBean
Spring bean that configures Simon manager using ManagerConfiguration facility.
- Author:
- Richard "Virgo" Richter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
simonManager
private Manager simonManager
configurationPath
private String configurationPath
SimonConfigurationBean
public SimonConfigurationBean()
getSimonManager
public Manager getSimonManager()
setSimonManager
public void setSimonManager(Manager simonManager)
setNewManager
public void setNewManager()
- Creates new
SwitchingManager instead of using SimonManager.manager().
setConfiguration
public void setConfiguration(String configurationPath)
throws IOException
- Loads configuration for the manager from the specified resource path.
- Parameters:
configurationPath - resource path to the configuration XML
- Throws:
IOException - thrown if the resource is not found or the configuration XML is not well formed
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
Copyright © 2013. All Rights Reserved.