| /******************************************************************************* |
| * Copyright (c) 2008-2011 Chair for Applied Software Engineering, |
| * Technische Universitaet Muenchen. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| ******************************************************************************/ |
| package org.eclipse.emf.emfstore.server; |
| |
| /** |
| * Interface for workspace location providers. Implementing classes provide a location for the workspace - or server |
| * workspace - files to store models and other files. You may subclass {@link DefaultServerWorkspaceLocationProvider} in |
| * order to ease your implementation. By convention, every path should end with an folder seperator char. |
| * |
| * @author koegel |
| * @author wesendon |
| */ |
| public interface LocationProvider { |
| |
| /** |
| * Get the path to the workspace directory, where the model data is stored to. This method is called only once on |
| * workspace startup to retrieve path. If you want to use profilese look at |
| * {@link DefaultServerWorkspaceLocationProvider} and it's subclasses . |
| * |
| * @return a string representing the path |
| */ |
| String getWorkspaceDirectory(); |
| |
| /** |
| * Returns the path to a folder which holds backups of the workspaces. For example this is used to backup a |
| * workspace prior to migration. |
| * |
| * @return a string representing the path |
| */ |
| String getBackupDirectory(); |
| |
| } |