org.javasimon.spring
Class SimonConfigurationBean

java.lang.Object
  extended by 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

Field Summary
private  String configurationPath
           
private  Manager simonManager
           
 
Constructor Summary
SimonConfigurationBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 Manager getSimonManager()
           
 void setConfiguration(String configurationPath)
          Loads configuration for the manager from the specified resource path.
 void setNewManager()
          Creates new SwitchingManager instead of using SimonManager.manager().
 void setSimonManager(Manager simonManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

simonManager

private Manager simonManager

configurationPath

private String configurationPath
Constructor Detail

SimonConfigurationBean

public SimonConfigurationBean()
Method Detail

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 © 2012. All Rights Reserved.