info.magnolia.module.cache
Class RegisterWorkspaceForCacheFlushingTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.cache.RegisterWorkspaceForCacheFlushingTask
All Implemented Interfaces:
info.magnolia.module.delta.Task

public class RegisterWorkspaceForCacheFlushingTask
extends info.magnolia.module.delta.AbstractTask
implements info.magnolia.module.delta.Task

Adds repository to the list of repositories observed for cache flushing upon activation. Tasks checks for existence of the repository in the list before adding it so it is safe to execute multiple times.

Author:
had

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
RegisterWorkspaceForCacheFlushingTask(String workspaceName)
           
 
Method Summary
 void execute(info.magnolia.module.InstallContext ctx)
           
 
Methods inherited from class info.magnolia.module.delta.AbstractTask
getDescription, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface info.magnolia.module.delta.Task
getDescription, getName
 

Constructor Detail

RegisterWorkspaceForCacheFlushingTask

public RegisterWorkspaceForCacheFlushingTask(String workspaceName)
Method Detail

execute

public void execute(info.magnolia.module.InstallContext ctx)
             throws info.magnolia.module.delta.TaskExecutionException
Specified by:
execute in interface info.magnolia.module.delta.Task
Throws:
info.magnolia.module.delta.TaskExecutionException


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.