|
||||||||||||
| 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)
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()
|
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. |
List |
getContextFactories(String[] types)
Find suitable IContextFactory objects for any of several context types. |
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.idas.api.IContextFactory |
getContextFactory(String[] types)
Find a suitable IContextFactory for any of several context types. |
Map |
getContextIdConfiguration(String contextId)
|
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(String[] types,
org.eclipse.higgins.idas.api.IContextFactory factory)
Add context factory to the registered map. |
void |
registerContextFactory(String[] types,
String factoryClassName)
Add context factory to the registered map. |
void |
registerContextFactory(String type,
org.eclipse.higgins.idas.api.IContextFactory factory)
Add context factory to the registered map. |
void |
registerContextFactory(String type,
String factoryClassName)
Add context factory to the registered map. |
void |
registerContextId(String contextId,
Map contextIdConfiguration)
Add local configuration context ID to the registered map. |
void |
removeContextFactory(org.eclipse.higgins.idas.api.IContextFactory factory)
Remove context factory from the cache. |
void |
removeContextId(String contextId)
Remove local configuration context ID from the registered map. |
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)
throws Exception
configure in interface org.eclipse.higgins.configuration.api.IConfigurableComponentExceptionhttp://wiki.eclipse.org/ContextDiscoveryComponents_withoutXRDSpublic 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(String[] types)
throws org.eclipse.higgins.idas.api.IdASException
types - The context types to look for
org.eclipse.higgins.idas.api.IdASException
public org.eclipse.higgins.idas.api.IContextFactory getContextFactory(String[] types)
throws org.eclipse.higgins.idas.api.IdASException
IContextFactory objects
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
contextIdStr - The context ID for which an IContext needs to be found.
org.eclipse.higgins.idas.api.IdASExceptionhttp://wiki.eclipse.org/ContextId
public void registerContextFactory(String[] types,
org.eclipse.higgins.idas.api.IContextFactory factory)
types - Types of contexts this factory can createfactory - IContextFactory object to be registered
public void registerContextFactory(String type,
org.eclipse.higgins.idas.api.IContextFactory factory)
type - Type of context this factory can createfactory - IContextFactory object to be registered
public void registerContextFactory(String[] types,
String factoryClassName)
throws org.eclipse.higgins.idas.api.IdASException
types - Types of contexts this factory can create
org.eclipse.higgins.idas.api.IdASException
public void registerContextFactory(String type,
String factoryClassName)
throws org.eclipse.higgins.idas.api.IdASException
org.eclipse.higgins.idas.api.IdASExceptionpublic void removeContextFactory(org.eclipse.higgins.idas.api.IContextFactory factory)
factory - IContextFactory object to be removed
public void registerContextId(String contextId,
Map contextIdConfiguration)
throws org.eclipse.higgins.idas.api.IdASException
contextId - The context ID to registercontextIdConfiguration - The configuration map associated with the context ID
org.eclipse.higgins.idas.api.IdASExceptionpublic 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 | |||||||||||