|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.higgins.idas.registry.IdASRegistry
Manages context factories.
http://wiki.eclipse.org/ContextDiscoveryComponents,
http://wiki.eclipse.org/ContextDiscoveryComponents_withoutXRDS| Field Summary | |
|---|---|
static String |
HIGGINS_CONF_NS
|
| Constructor Summary | |
|---|---|
IdASRegistry()
Use getInstance rather than the constructor. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears all currently known context factories and context id configurations. |
void |
configure(Map mapGlobalSettings,
String strComponentName,
Map mapComponentSettings,
org.eclipse.higgins.configuration.api.ISettingDescriptor componentDescriptor,
org.eclipse.higgins.configuration.api.ISettingDescriptor globalDescriptor)
Configure the IdASRegistry using the Configuration API. |
org.eclipse.higgins.idas.api.IContext |
createContext(org.eclipse.higgins.idas.api.IContextId contextId)
Convenience method that creates an IContext based on an IContextId |
org.eclipse.higgins.idas.api.IContext |
createContext(String contextIdStr)
Convenience method that creates an IContext based on a string (which must be a valid context ID) |
void |
discover()
Configure the IdASRegistry using XRDS documents (an IDiscovery object). |
void |
discover(String type)
Configure the IdASRegistry using XRDS documents (an IDiscovery object). |
ClassLoader |
getClassLoader()
|
org.eclipse.higgins.configuration.api.ISettingDescriptor |
getComponentDescriptor()
|
List |
getContextFactories()
Return all registered IContextFactory objects. |
List |
getContextFactories(org.eclipse.higgins.idas.api.IContextId contextId)
Find suitable IContextFactory objects for a ContextId |
List |
getContextFactories(String type)
Find suitable IContextFactory objects for a context type. |
org.eclipse.higgins.idas.api.IContextFactory |
getContextFactory(org.eclipse.higgins.idas.api.IContextId contextId)
Find a suitable IContextFactory for a ContextId |
org.eclipse.higgins.idas.api.IContextFactory |
getContextFactory(String type)
Find a suitable IContextFactory for a context type. |
org.eclipse.higgins.configuration.api.ISettingDescriptor |
getContextFactoryDescriptor(String factoryClassName,
String[] factoryTypes)
Get the descriptor for any type of context factory listed under 'ContextFactoryInstancesList'. |
Map |
getContextIdConfiguration(String contextId)
|
org.eclipse.higgins.configuration.api.ISettingDescriptor |
getContextIdDescriptor(String contextIdName,
String[] types)
Get the setting descriptor for the specified context id. |
IDiscovery |
getDiscovery()
|
static IdASRegistry |
getInstance()
Get the singleton instance. |
org.eclipse.higgins.configuration.api.IConfigurableComponent |
getNewInstance()
|
org.eclipse.higgins.configuration.api.IConfigurableComponent |
getSingletonInstance()
|
void |
registerContextFactory(org.eclipse.higgins.idas.api.IContextFactory factory,
boolean bSave)
Add context factory to the registered map. |
void |
registerContextFactory(String[] types,
String factoryClassName,
org.eclipse.higgins.configuration.api.ISettingDescriptor factoryDescriptor,
boolean bSave)
Add context factory to the registered map. |
void |
registerContextFactory(String type,
String factoryClassName,
org.eclipse.higgins.configuration.api.ISettingDescriptor factoryDescriptor,
boolean bSave)
Add context factory to the registered map. |
void |
registerContextId(String contextId,
Map contextIdConfiguration,
org.eclipse.higgins.configuration.api.ISettingDescriptor contextDescriptor,
boolean bSave)
|
void |
removeContextFactory(org.eclipse.higgins.idas.api.IContextFactory factory)
Remove context factory from the cache. |
void |
removeContextId(String contextId)
|
void |
setClassLoader(ClassLoader classLoader)
|
void |
setDiscovery(IDiscovery discovery)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String HIGGINS_CONF_NS
| Constructor Detail |
public IdASRegistry()
| Method Detail |
public static IdASRegistry getInstance()
public org.eclipse.higgins.configuration.api.IConfigurableComponent getNewInstance()
getNewInstance in interface org.eclipse.higgins.configuration.api.IConfigurableComponentFactorypublic org.eclipse.higgins.configuration.api.IConfigurableComponent getSingletonInstance()
getSingletonInstance in interface org.eclipse.higgins.configuration.api.IConfigurableComponentFactory
public void discover()
throws org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.IdASExceptionhttp://wiki.eclipse.org/ContextDiscoveryComponents
public void discover(String type)
throws org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.IdASExceptionhttp://wiki.eclipse.org/ContextDiscoveryComponents
public void configure(Map mapGlobalSettings,
String strComponentName,
Map mapComponentSettings,
org.eclipse.higgins.configuration.api.ISettingDescriptor componentDescriptor,
org.eclipse.higgins.configuration.api.ISettingDescriptor globalDescriptor)
throws Exception
configure in interface org.eclipse.higgins.configuration.api.IConfigurableComponentExceptionhttp://wiki.eclipse.org/ContextDiscoveryComponents_withoutXRDSpublic org.eclipse.higgins.configuration.api.ISettingDescriptor getComponentDescriptor()
getComponentDescriptor in interface org.eclipse.higgins.configuration.api.IConfigurableComponentpublic Map getContextIdConfiguration(String contextId)
public List getContextFactories()
throws org.eclipse.higgins.idas.api.IdASException
IContextFactory objects
org.eclipse.higgins.idas.api.IdASException
public List getContextFactories(String type)
throws org.eclipse.higgins.idas.api.IdASException
type - The context type to look for
org.eclipse.higgins.idas.api.IdASException
public org.eclipse.higgins.idas.api.IContextFactory getContextFactory(String type)
throws org.eclipse.higgins.idas.api.IdASException
type - The context type to look for
org.eclipse.higgins.idas.api.IdASException
public List getContextFactories(org.eclipse.higgins.idas.api.IContextId contextId)
throws org.eclipse.higgins.idas.api.IdASException
contextId - The IContextId of the context to be instantiated
IContextFactory objects
org.eclipse.higgins.idas.api.IdASException
public org.eclipse.higgins.idas.api.IContextFactory getContextFactory(org.eclipse.higgins.idas.api.IContextId contextId)
throws org.eclipse.higgins.idas.api.IdASException
contextId - The IContextId of the context to be instantiated
IContextFactory objects
org.eclipse.higgins.idas.api.IdASException
public org.eclipse.higgins.idas.api.IContext createContext(org.eclipse.higgins.idas.api.IContextId contextId)
throws org.eclipse.higgins.idas.api.IdASException
contextId - The IContextId for which an IContext needs to be found.
org.eclipse.higgins.idas.api.IdASExceptionhttp://wiki.eclipse.org/ContextId
public org.eclipse.higgins.idas.api.IContext createContext(String contextIdStr)
throws org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.IdASExceptionhttp://wiki.eclipse.org/ContextId
public void registerContextFactory(org.eclipse.higgins.idas.api.IContextFactory factory,
boolean bSave)
throws org.eclipse.higgins.idas.api.IdASException
factory - IContextFactory object to be registeredbSave - If true, the settings are saved in the global map
org.eclipse.higgins.idas.api.IdASException
public org.eclipse.higgins.configuration.api.ISettingDescriptor getContextFactoryDescriptor(String factoryClassName,
String[] factoryTypes)
public org.eclipse.higgins.configuration.api.ISettingDescriptor getContextIdDescriptor(String contextIdName,
String[] types)
throws org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.IdASException
public void registerContextFactory(String[] types,
String factoryClassName,
org.eclipse.higgins.configuration.api.ISettingDescriptor factoryDescriptor,
boolean bSave)
throws org.eclipse.higgins.idas.api.IdASException
types - Types of contexts this factory can createfactoryDescriptor - Setting descriptor for the factory to registerbSave - If true, the settings are saved in the global map
org.eclipse.higgins.idas.api.IdASException
public void registerContextFactory(String type,
String factoryClassName,
org.eclipse.higgins.configuration.api.ISettingDescriptor factoryDescriptor,
boolean bSave)
throws org.eclipse.higgins.idas.api.IdASException
bSave - If true, the settings are saved in the global map
org.eclipse.higgins.idas.api.IdASException
public void removeContextFactory(org.eclipse.higgins.idas.api.IContextFactory factory)
throws org.eclipse.higgins.idas.api.IdASException
factory - IContextFactory object to be removed
org.eclipse.higgins.idas.api.IdASException
public void registerContextId(String contextId,
Map contextIdConfiguration,
org.eclipse.higgins.configuration.api.ISettingDescriptor contextDescriptor,
boolean bSave)
throws Exception
Exceptionpublic void removeContextId(String contextId)
public void clear()
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public IDiscovery getDiscovery()
public void setDiscovery(IDiscovery discovery)
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||