version 1.1, 2003/08/18 04:25:57
|
version 1.13, 2004/05/18 23:58:41
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2003//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000 - 2003 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L. P., IBM Corp., The Open Group, Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#include "ProviderManager.h" | #include "ProviderManager.h" |
|
#include <Pegasus/Common/FileSystem.h> |
|
#include <Pegasus/Config/ConfigManager.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
{ | { |
} | } |
| |
Message * ProviderManager::processMessage(Message * message) |
String ProviderManager::_resolvePhysicalName(String physicalName) |
{ | { |
// subclasses should implement this method. if not implented, the base |
String temp; |
// classes generates a generic failure. |
String root = "."; |
|
|
return(message); |
|
} |
|
| |
String ProviderManager::findProvider(const String & providerName) |
// fully qualify physical provider name (module), if not already done so. |
{ |
#if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) |
return(_registrar.findProvider(providerName)); |
temp = physicalName + String(".dll"); |
} |
#elif defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
|
temp = String("lib") + physicalName + String(".so"); |
Boolean ProviderManager::insertProvider(const String & providerName) |
#elif defined(PEGASUS_OS_HPUX) |
{ |
# ifdef PEGASUS_PLATFORM_HPUX_PARISC_ACC |
return(_registrar.insertProvider(providerName)); |
temp = String("lib") + physicalName + String(".sl"); |
} |
# else |
|
temp = String("lib") + physicalName + String(".so"); |
Boolean ProviderManager::removeProvider(const String & providerName) |
# endif |
{ |
#elif defined(PEGASUS_OS_OS400) |
return(_registrar.removeProvider(providerName)); |
// do nothing |
} |
#elif defined(PEGASUS_OS_DARWIN) |
|
temp = String("lib") + physicalName + String(".dylib"); |
// temp |
#else |
void ProviderManager::setProviderRegistrationManager(ProviderRegistrationManager * p) |
temp = String("lib") + physicalName + String(".so"); |
{ |
#endif |
_registrar.setProviderRegistrationManager(p); |
|
|
temp = FileSystem::getAbsoluteFileName( |
|
ConfigManager::getHomedPath(ConfigManager::getInstance()->getCurrentValue("providerDir")), temp); |
|
return temp; |
} | } |
| |
ProviderRegistrationManager * ProviderManager::getProviderRegistrationManager(void) |
void ProviderManager::setIndicationCallback( |
|
PEGASUS_INDICATION_CALLBACK indicationCallback) |
{ | { |
return(_registrar.getProviderRegistrationManager()); |
_indicationCallback = indicationCallback; |
} | } |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |