org.eclipse.emf.cdo.spi.server
Class RepositoryConfigurator

java.lang.Object
  extended by org.eclipse.emf.cdo.spi.server.RepositoryConfigurator

public class RepositoryConfigurator
extends Object

Since:
4.0

Constructor Summary
RepositoryConfigurator()
           
RepositoryConfigurator(IManagedContainer container)
           
 
Method Summary
 IRepository[] configure(File configFile)
           
protected  IStore createStore(String repositoryName, Map<String,String> repositoryProperties, Element storeConfig)
           
 IManagedContainer getContainer()
           
protected  Document getDocument(File configFile)
           
protected  EPackage[] getInitialPackages(Element repositoryConfig)
           
static Map<String,String> getProperties(Element element, int levels)
           
protected  IRepository getRepository(Element repositoryConfig)
           
protected  IRepository getRepository(String repositoryType)
           
 Map<String,IRepositoryFactory> getRepositoryFactories()
           
protected  IRepositoryFactory getRepositoryFactory(String type)
           
protected  Element getStoreConfig(Element repositoryConfig)
           
 Map<String,IStoreFactory> getStoreFactories()
           
protected  IStoreFactory getStoreFactory(String type)
           
protected  IUserManager getUserManager(Element userManagerConfig)
           
protected  IUserManager getUserManager(String type, String description)
           
protected  Element getUserManagerConfig(Element repositoryConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryConfigurator

public RepositoryConfigurator()

RepositoryConfigurator

public RepositoryConfigurator(IManagedContainer container)
Method Detail

getContainer

public IManagedContainer getContainer()

getRepositoryFactories

public Map<String,IRepositoryFactory> getRepositoryFactories()

getStoreFactories

public Map<String,IStoreFactory> getStoreFactories()

configure

public IRepository[] configure(File configFile)
                        throws ParserConfigurationException,
                               SAXException,
                               IOException,
                               CoreException
Throws:
ParserConfigurationException
SAXException
IOException
CoreException

getDocument

protected Document getDocument(File configFile)
                        throws ParserConfigurationException,
                               SAXException,
                               IOException
Throws:
ParserConfigurationException
SAXException
IOException

getRepositoryFactory

protected IRepositoryFactory getRepositoryFactory(String type)
                                           throws CoreException
Throws:
CoreException

getRepository

protected IRepository getRepository(Element repositoryConfig)
                             throws CoreException
Throws:
CoreException

getRepository

protected IRepository getRepository(String repositoryType)
                             throws CoreException
Throws:
CoreException

getUserManagerConfig

protected Element getUserManagerConfig(Element repositoryConfig)

getUserManager

protected IUserManager getUserManager(Element userManagerConfig)
                               throws CoreException
Throws:
CoreException

getUserManager

protected IUserManager getUserManager(String type,
                                      String description)
                               throws CoreException
Throws:
CoreException

getInitialPackages

protected EPackage[] getInitialPackages(Element repositoryConfig)

getStoreConfig

protected Element getStoreConfig(Element repositoryConfig)

getStoreFactory

protected IStoreFactory getStoreFactory(String type)
                                 throws CoreException
Throws:
CoreException

createStore

protected IStore createStore(String repositoryName,
                             Map<String,String> repositoryProperties,
                             Element storeConfig)
                      throws CoreException
Throws:
CoreException

getProperties

public static Map<String,String> getProperties(Element element,
                                               int levels)


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.