com.ikokoon.serenity.process
Class Cleaner

java.lang.Object
  extended by com.ikokoon.serenity.process.AProcess
      extended by com.ikokoon.serenity.process.Cleaner
All Implemented Interfaces:
IConstants, IProcess

public class Cleaner
extends AProcess
implements IConstants

During the collection of the data packages are collected along with the data so we have references to the packages. For example if a class relies on 'org.logj4' then this package will be added to the database but is not included in the packages that the user wants. This class will clean the unwanted packages from the database when the processing is finished.

Since:
12.08.09
Version:
01.00
Author:
Michael Couck

Field Summary
 
Fields inherited from class com.ikokoon.serenity.process.AProcess
logger
 
Fields inherited from interface com.ikokoon.serenity.IConstants
CLEAN_CLASSES, COMPLEXITY, COVERAGE, DATABASE_FILE_JPA, DATABASE_FILE_ODB, DATABASE_FILE_RAM, DEPENDENCY, EXCLUDED_PACKAGES_PROPERTY, INCLUDED_ADAPTERS_PROPERTY, INCLUDED_JARS_PROPERTY, INCLUDED_PACKAGES_PROPERTY, JAVA_CLASS_PATH, LOG_4_J_PROPERTIES, PROFILING, SEPARATOR, SERENITY_DIRECTORY, SERENITY_PERSISTENCE_UNIT, SERENITY_SOURCE, SUREFIRE_TEST_CLASS_PATH, WRITE_CLASSES
 
Constructor Summary
Cleaner(IProcess parent, IDataBase dataBase)
          Constructor takes the parent.
 
Method Summary
 void execute()
          This is the method that executes the logic for the process.
 
Methods inherited from class com.ikokoon.serenity.process.AProcess
setChild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cleaner

public Cleaner(IProcess parent,
               IDataBase dataBase)
Constructor takes the parent.

Parameters:
parent - the parent process that will chain this process
Method Detail

execute

public void execute()
This is the method that executes the logic for the process. It will be called by the parent after the parent has executed it's own logic.

Specified by:
execute in interface IProcess
Overrides:
execute in class AProcess
See Also:
AProcess


Copyright © 2010. All Rights Reserved.