org.wsmostudio.repository
Class ExtensionManager
java.lang.Object
org.wsmostudio.repository.ExtensionManager
public class ExtensionManager
- extends java.lang.Object
A manager class responsible for working with all registered extensions of the
Repository extension point (org.wsmostudio.repository.Repository).
The class instanciates and configures the various repository extensions.
- Version:
- $Revision: 855 $ $Date: 2006-07-11 19:06:16 +0300 $
- Author:
- not attributable
|
Method Summary |
static boolean |
allowsMultiInstances(java.lang.String repoType)
|
static java.util.Set<java.lang.String> |
collectExistingRepositoriesTypes()
|
static boolean |
configureRepository(org.wsmo.datastore.WsmoRepository repo,
org.wsmostudio.runtime.extension.Configurator configurer,
boolean forceConfig)
|
static org.wsmo.datastore.WsmoRepository |
createRepository(java.lang.String name,
java.lang.String type)
|
static org.eclipse.core.runtime.IConfigurationElement |
findConfigData(java.lang.String repositoryType)
|
static org.wsmostudio.runtime.extension.Configurator |
getConfiguratorFor(java.lang.String repositoryType)
|
static java.lang.String |
getRepositoryType(org.wsmo.datastore.WsmoRepository repo)
|
static java.lang.String[] |
listConfigTypes()
|
static org.eclipse.swt.graphics.Image |
loadImageForType(java.lang.String repositoryType)
|
static java.util.Map<org.wsmo.datastore.WsmoRepository,org.wsmostudio.runtime.extension.Configurator> |
loadRepositories()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REPOSITIRY_EXT_ID
public static final java.lang.String REPOSITIRY_EXT_ID
- See Also:
- Constant Field Values
REP_CONFIG_ELEMENT
public static final java.lang.String REP_CONFIG_ELEMENT
- See Also:
- Constant Field Values
CONF_ATTR_IMPL_NAME
public static final java.lang.String CONF_ATTR_IMPL_NAME
- See Also:
- Constant Field Values
CONF_ATTR_TYPE_NAME
public static final java.lang.String CONF_ATTR_TYPE_NAME
- See Also:
- Constant Field Values
CONF_ATTR_CONFIGURATOR
public static final java.lang.String CONF_ATTR_CONFIGURATOR
- See Also:
- Constant Field Values
CONF_ATTR_MULTIPLE
public static final java.lang.String CONF_ATTR_MULTIPLE
- See Also:
- Constant Field Values
CONF_ATTR_ICON
public static final java.lang.String CONF_ATTR_ICON
- See Also:
- Constant Field Values
REP_PROP_PREFIX
public static final java.lang.String REP_PROP_PREFIX
- See Also:
- Constant Field Values
ExtensionManager
public ExtensionManager()
loadRepositories
public static java.util.Map<org.wsmo.datastore.WsmoRepository,org.wsmostudio.runtime.extension.Configurator> loadRepositories()
getRepositoryType
public static java.lang.String getRepositoryType(org.wsmo.datastore.WsmoRepository repo)
collectExistingRepositoriesTypes
public static java.util.Set<java.lang.String> collectExistingRepositoriesTypes()
allowsMultiInstances
public static boolean allowsMultiInstances(java.lang.String repoType)
throws java.lang.Exception
- Throws:
java.lang.Exception
findConfigData
public static org.eclipse.core.runtime.IConfigurationElement findConfigData(java.lang.String repositoryType)
createRepository
public static org.wsmo.datastore.WsmoRepository createRepository(java.lang.String name,
java.lang.String type)
throws java.lang.Exception
- Throws:
java.lang.Exception
configureRepository
public static boolean configureRepository(org.wsmo.datastore.WsmoRepository repo,
org.wsmostudio.runtime.extension.Configurator configurer,
boolean forceConfig)
throws java.lang.Exception
- Throws:
java.lang.Exception
loadImageForType
public static org.eclipse.swt.graphics.Image loadImageForType(java.lang.String repositoryType)
getConfiguratorFor
public static org.wsmostudio.runtime.extension.Configurator getConfiguratorFor(java.lang.String repositoryType)
throws java.lang.Exception
- Throws:
java.lang.Exception
listConfigTypes
public static java.lang.String[] listConfigTypes()
Copyright © 2005-2008 Ontotext Lab.. All Rights Reserved.