/*******************************************************************************
 * (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * and Apache License v2.0 which accompany this distribution.
 *
 * The Eclipse Public License is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * The Apache License is available at
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 *******************************************************************************/
package org.eclipse.score.engine.versioning.services;

/**
 * Created with IntelliJ IDEA.
 * User: wahnonm
 * Date: 11/3/13
 * Time: 9:23 AM
 */
//TODO: Add Javadoc Meir
public interface VersionService {

    public static final String MSG_RECOVERY_VERSION_COUNTER_NAME = "MSG_RECOVERY_VERSION";

    public long getCurrentVersion(String counterName);


    public void incrementVersion(String counterName);
}

@@ -756,33 +756,8 @@
  */%0A
-//TODO: Add Javadoc Meir%0A
 publ
@@ -787,16 +787,63 @@
 vice %7B%0A%0A
+    /**%0A     * The recovery key%0A     *%0A     */%0A
     publ
@@ -934,60 +934,378 @@
     
-public long getCurrentVersion(String counterName);%0A%0A
+/**%0A     * Given the counter name (key) returns the current version of it.%0A     * @param counterName : the counter name (key)%0A     * @return current count%0A     */%0A    public long getCurrentVersion(String counterName);%0A%0A    /**%0A     * Increments the conuter relevent to the given counter name by 1.%0A     * @param counterName : the counter name (key) to increment.%0A     */
 %0A   

add javadoc for VersionService