Uno/Binary/Component Loader/Spec/Implementation Specific Environments

From Apache OpenOffice Wiki
< Uno‎ | Binary
Revision as of 19:28, 24 March 2010 by B michaelsen (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

author: Kr
version: 160076
state: draft
created: 12/20/2005
type: specification

Binary UNO Loader

Implementation Specific Environments

Feature
The Binary UNO loader supports the specification of an environment per implementation.
Rationale 
The Binary UNO loader currently only supports the specification of exactly one environment per component (shared library). With the introdution of purpose environments, a finer granularity is needed, basically allowing to utilize different purpose environments (e.g. thread safe, thread unsafe) in the same component, but for different implementations.
API
Support for
"component_getImplementationEnvironmentEx"
in components.
Compatibility Issues
While loading a component, the loader checks for the existence of a
"component_getImplementationEnvironmentEx"
function, which is similar to
"component_getImplementationEnvironment"
Parameters for this function are:
  • sal_Char const ** ppEnvTypeName,
  • uno_Environment ** ppEnv,
  • sal_Char const * pImplName,
  • uno_Environment * pTargetEnv
Where the first parameters have the same purpose as in "component_getImplementationEnvironment", while the last two provide the implementation name, respectively the target environment.
Dependencies
None.
Personal tools