package gov.va.med.fw.ui.struts;

import org.apache.struts.util.PropertyMessageResourcesFactory;
import org.apache.struts.util.MessageResources;

/**
 * This is custom property message resource factory.
 *
 * @author Muddaiah Ranga
 * @version 3.0
 */
public class CustomPropertyMessageResourcesFactory extends PropertyMessageResourcesFactory 
{
    /**
	 * An instance of serialVersionUID
	 */
	private static final long serialVersionUID = 3296173693876447347L;

	/**
     * Create and return a newly instansiated <code>MessageResources</code>.
     * This method must be implemented by concrete subclasses.
     *
     * @param config Configuration parameter(s) for the requested bundle
     */
    public MessageResources createResources(String config) 
    {
        return new CustomPropertyMessageResources(this, config, this.returnNull);
    }
}
