IM InfoSphere Identity Insight Version 8.0

Entwicklungsschnittstelle für Scoring-Plug-in

Angepasste Scoring-Plug-ins erfordern eine Standardschnittstelle.

Verwenden Sie Basisobjekte, um unabhängig von Bibliotheksversionen und Compileroptionen zu sein. Auf diese Weise können Plug-ins mit mehreren Pipeline-Versionen verwendet werden, ohne dass das Plug-in neu erzeugt werden muss, wenn sich für die Pipeline die Bibliothek, Compilerversionen oder andere Optionen ändern. Sie müssen die folgenden C- oder C++-Schnittstellenprototypen einschließen:

#ifdef _WIN32
#define _DLEXPORT __declspec(dllexport)
#else
#define _DLEXPORT
#endif

extern "C"
{
  _DLEXPORT const int initPlugin(const char *configInfo, 
                                 const uint configSize, 
                                 char *errorStr, 
                                 const uint maxStrSize);
  _DLEXPORT const char *getVersion();
  _DLEXPORT const int score(const char *thresholdStr, 
                            const uint thresholdSize,
                            const char *inboundStr, 
                            const uint inboundSize, 
                            const char *candidateStr, 
                            const uint candidateSize, 
                            char *result, 
                            const uint resultSize);
};


Feedback

Letzte Aktualisierung: 2009