{
DirectoryPurgeConfiguration dirPurge = (DirectoryPurgeConfiguration) purgeConfig;
if ( dirPurge.isDeleteAll() )
{
purgeExecutor = new CleanAllPurgeExecutor( dirPurge.getDirectoryType() );
}
else if ( dirPurge.getDaysOlder() > 0 )
{
purgeExecutor = new DaysOldDirectoryPurgeExecutor( dirPurge.getDaysOlder(), dirPurge.getRetentionCount(),
dirPurge.getDirectoryType() );