|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jasig.cas.services.support.SpringApplicationContextServiceRegistryReloader
Implementation of the ServiceRegistryReloader that will refresh a Spring context if the underlying file changes.
The algorithm is as follows. Check the last recorded lastModified time against the current lastModified time. If they differ, reload the registry by re-reading the context, deleting all of the current services and replacing them with fresh copies from the file. This class locks on the ServiceRegistry.
ServiceRegistryReloader
Constructor Summary | |
SpringApplicationContextServiceRegistryReloader()
|
Method Summary | |
void |
afterPropertiesSet()
|
void |
reloadServiceRegistry()
Method to call to reload the service registry. |
void |
setFileName(java.lang.String fileName)
Method to set the file name. |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
|
void |
setServiceRegistryManager(ServiceRegistryManager serviceRegistryManager)
Method to set the Service Registry Manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SpringApplicationContextServiceRegistryReloader()
Method Detail |
public void reloadServiceRegistry()
ServiceRegistryReloader
reloadServiceRegistry
in interface ServiceRegistryReloader
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void setFileName(java.lang.String fileName)
fileName
- the File name to set.public void setServiceRegistryManager(ServiceRegistryManager serviceRegistryManager)
serviceRegistryManager
- the serviceRegistryManager to set.public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
resourceLoader
- The resourceLoader to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |