Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "IdAS Context Provider Registry"

 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{#eclipseproject:technology.higgins|eclipse_custom_style.css}}
 +
'''Obsolete page''' see [[IdAS Registry]]
 +
 
==Context Provider Registry implementation (straw man for 0.5) ==
 
==Context Provider Registry implementation (straw man for 0.5) ==
 
A Context Provider one or more types of IContextFactory and IContext. It is responsible for registering its IContextFactory classes with the IdASRegistry.  This can be done programmatically (registerContextFactory), but there is also a desire for static configuration. The means of configuration is platform-specific.  The Higgins-provided IdASRegistry is likely to use one or both of the following mechanisms:
 
A Context Provider one or more types of IContextFactory and IContext. It is responsible for registering its IContextFactory classes with the IdASRegistry.  This can be done programmatically (registerContextFactory), but there is also a desire for static configuration. The means of configuration is platform-specific.  The Higgins-provided IdASRegistry is likely to use one or both of the following mechanisms:
Line 12: Line 15:
 
* For Eclipse platforms, use plug-in that extends org.eclipse.higgins.context extension point
 
* For Eclipse platforms, use plug-in that extends org.eclipse.higgins.context extension point
 
** IdASRegistry uses built-in Eclipse plug-in registry to find providers and their IContextFactory classes
 
** IdASRegistry uses built-in Eclipse plug-in registry to find providers and their IContextFactory classes
 +
  
 
==Context Provider Registry implementation (M0.4)==
 
==Context Provider Registry implementation (M0.4)==
Line 18: Line 22:
 
* we use built in Eclipse plugin registry to allow IdAS client to enumerate available plugins
 
* we use built in Eclipse plugin registry to allow IdAS client to enumerate available plugins
 
* we refer to a Context by a context reference that is the concatenation of the context provider plugin's unique extension id (e.g. "org.eclipse.higgins.context.user.context") with the id of a context managed by this provider (e.g. "residents of Raleigh, NC"). A context is identified by using this fully qualified compound identifier.
 
* we refer to a Context by a context reference that is the concatenation of the context provider plugin's unique extension id (e.g. "org.eclipse.higgins.context.user.context") with the id of a context managed by this provider (e.g. "residents of Raleigh, NC"). A context is identified by using this fully qualified compound identifier.
 +
 +
[[Category:Higgins Obsolete Pages]]

Latest revision as of 10:47, 16 December 2008

{{#eclipseproject:technology.higgins|eclipse_custom_style.css}} Obsolete page see IdAS Registry

Context Provider Registry implementation (straw man for 0.5)

A Context Provider one or more types of IContextFactory and IContext. It is responsible for registering its IContextFactory classes with the IdASRegistry. This can be done programmatically (registerContextFactory), but there is also a desire for static configuration. The means of configuration is platform-specific. The Higgins-provided IdASRegistry is likely to use one or both of the following mechanisms:

  • For "raw" Java platforms, use java.security.Provider.
    • ContextProvider extends java.security.Provider.
      • imported through java.security properties file, or via Security.addProvider
      • maps IContextFactory classes to ContextFactory service, using a provider-defined algorithm string
    • ContextFactory is a service (abstract class)
      • algorithm string is defined by provider, used to distinguish ContextFactory services from one another
      • attribute "ProviderName" is required
      • attribute "DataFormats" is required -- lists all underlying data formats supported by factory
  • For Eclipse platforms, use plug-in that extends org.eclipse.higgins.context extension point
    • IdASRegistry uses built-in Eclipse plug-in registry to find providers and their IContextFactory classes


Context Provider Registry implementation (M0.4)

  • Context Provider is code that implements IContextFactory and IContext and is packaged as an Eclipse plug-in that extends org.eclipse.higgins.context extension point
  • Context provider plugins are files installed into a workspace and discovered at runtime by Eclipse plugin registry
  • we use built in Eclipse plugin registry to allow IdAS client to enumerate available plugins
  • we refer to a Context by a context reference that is the concatenation of the context provider plugin's unique extension id (e.g. "org.eclipse.higgins.context.user.context") with the id of a context managed by this provider (e.g. "residents of Raleigh, NC"). A context is identified by using this fully qualified compound identifier.

Back to the top