/********************************************************************
 * Copyright © 2006 VHA. All rights reserved
 ********************************************************************/


package gov.va.med.esr.service;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

import gov.va.med.fw.service.AbstractComponent;

/**
 * 
 * TODO - Add content here
 * 
 * Created Jun 7, 2006 9:43:18 PM
 * @author DNS   BOHMEG
 */
public class SystemParametersChangedAdvice extends AbstractComponent implements
		MethodInterceptor {

	/* (non-Javadoc)
	 * @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)
	 */
	public Object invoke(MethodInvocation arg0) throws Throwable {
		Object val = arg0.proceed();
		// notify context
		this.getApplicationContext().publishEvent(new SystemParametersChangedEvent(this));
		return val;
	}

}
