blob: c4a2a959bed2d1aa404f9368d745d5c57e5910ef [file] [log] [blame]
/*
* Copyright (c) 2012 Eike Stepper (Berlin, Germany) and others.
* 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:
* Eike Stepper - initial API and implementation
* Stefan Winkler - 271444: [DB] Multiple refactorings bug 271444
* Caspar De Groot - maintenance
*/
package org.eclipse.emf.cdo.server.internal.lissome;
import org.eclipse.emf.cdo.server.IStore;
import org.eclipse.emf.cdo.server.IStoreFactory;
import org.eclipse.emf.cdo.spi.server.RepositoryConfigurator;
import org.w3c.dom.Element;
import java.util.Map;
/**
* @author Eike Stepper
*/
public class LissomeStoreFactory implements IStoreFactory
{
public LissomeStoreFactory()
{
}
public String getStoreType()
{
return LissomeStore.TYPE;
}
public IStore createStore(String repositoryName, Map<String, String> repositoryProperties, Element storeConfig)
{
LissomeStore store = new LissomeStore();
Map<String, String> storeProperties = RepositoryConfigurator.getProperties(storeConfig, 1);
store.setProperties(storeProperties);
return store;
}
}