org.exoplatform.settings.chromattic
Class SynchronizationTask<V>

java.lang.Object
  extended by org.exoplatform.settings.chromattic.SynchronizationTask<V>

public abstract class SynchronizationTask<V>
extends Object

Created by The eXo Platform SAS Author : thanh_vucong thanh_vucong@exoplatform.com Dec 10, 2012


Constructor Summary
SynchronizationTask()
           
 
Method Summary
protected abstract  V execute(org.exoplatform.commons.chromattic.SessionContext ctx)
          Implementor must provide the task logic here.
 V executeWith(org.exoplatform.commons.chromattic.ChromatticLifeCycle lifeCycle)
          Executes a task within a context from the specified life cycle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizationTask

public SynchronizationTask()
Method Detail

executeWith

public final V executeWith(org.exoplatform.commons.chromattic.ChromatticLifeCycle lifeCycle)
Executes a task within a context from the specified life cycle. If an existing context already exists then this context is used otherwise a context is managed for the duration of the execute(SessionContext) method.

Parameters:
lifeCycle - the life cycle
Returns:
a value

execute

protected abstract V execute(org.exoplatform.commons.chromattic.SessionContext ctx)
Implementor must provide the task logic here.

Parameters:
context - the context
Returns:
a value


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.