/** * Copyright (C) 2008-2010, Squale Project - http://www.squale.org * * This file is part of Squale. * * Squale is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or any later version. * * Squale is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Squale. If not, see <http://www.gnu.org/licenses/>. */ //Source file: D:\\cc_views\\squale_v0_0_act\\squale\\src\\squalix\\src\\org\\squale\\squalix\\tools\\mccabe\\McCabePersistor.java package org.squale.squalix.tools.mccabe; import org.squale.jraf.spi.persistence.ISession; import org.squale.squalecommon.enterpriselayer.businessobject.component.AuditBO; import org.squale.squalecommon.enterpriselayer.businessobject.component.ProjectBO; import org.squale.squalix.core.TaskData; /** * Objet charg� de faire persister les composants identifi�s par McCabe ainsi que les r�sultats. */ public class McCabePersistor { /** * Session Persistance */ protected ISession mSession; /** les param�tres temporaires */ protected TaskData mDatas; /** le nom de la tache r�el, pour diff�rencier java et cpp */ protected String mTaskName; /** * Audit durant lequel l'analyse est effectu�e */ protected AuditBO mAudit; /** * Configuration */ protected McCabeConfiguration mConfiguration; /** * Projet sur lequel est r�alis�e l'analyse. */ protected ProjectBO mProject; /** * Constructeur. * @param pSession la session de persistance utilis�e par la t�che. * @param pDatas la liste des param�tres temporaires du projet * @param pTaskName le nom de la tache (pour diff�rencier java et cpp) * @param pAudit audit encadrant l'ex�cution. * @param pConfiguration configuration du framework. */ public McCabePersistor(final ISession pSession, final TaskData pDatas, final String pTaskName, final AuditBO pAudit, final McCabeConfiguration pConfiguration) { mSession = pSession; mDatas = pDatas; mTaskName = pTaskName; mAudit = pAudit; mConfiguration = pConfiguration; mProject = pConfiguration.getProject(); } }