001    /*
002    @license.text@
003     */
004    package biz.hammurapi.metrics;
005    
006    import java.io.File;
007    
008    import javax.xml.transform.stream.StreamResult;
009    
010    import biz.hammurapi.config.ConfigurationException;
011    import biz.hammurapi.util.ClassTransformerFactory;
012    
013    
014    /**
015     * @author Pavel Vlasov
016     * @revision $Revision$
017     */
018    public class HtmlMeasurementCategoryFactory extends     XmlMeasurementCategoryFactory {
019    
020            /**
021             * @param out
022             */
023            public HtmlMeasurementCategoryFactory(File out) {
024                    super(out);
025            }
026            
027            public void stop() throws ConfigurationException {
028                    try {                   
029                            ClassTransformerFactory ctf=new ClassTransformerFactory(null, true);
030                            ctf.transform(this, "metrics", null, null, null, null, new StreamResult(out));
031                    } catch (Exception e) {
032                            throw new ConfigurationException(e);
033                    }
034            }
035    }