15 #include "Reflex/PluginService.h"
16 using ROOT::Reflex::PluginService;
41 #if !defined(GAUDI_V22_API)|| defined(G22_NEW_SVCLOCATOR)
45 virtual StatusCode getService(
const Gaudi::Utils::TypeNameString& typeName,
47 const bool createIf =
true);
69 if ( !s_appmgrInstance.
isValid() ) {
73 return s_appmgrInstance.
get();
116 if( !s_svclocInstance.
isValid() ) {
119 s_svclocInstance = iappmgr;
120 if( s_svclocInstance.
isValid() ) {
143 s_svclocInstance = newInstance;
153 s_appmgrInstance = newInstance;
176 ii = PluginService::Create<IInterface*>(factname, (
IInterface*)0);
178 is = PluginService::Create<IService*>(factname, name, (
ISvcLocator*)0);
180 ia = PluginService::Create<IAlgorithm*>(factname, name, (
ISvcLocator*)0);
207 ShadowEntry(
const ShadowEntry& copy) {
208 dllName = copy.dllName;
209 facName = copy.facName;
235 using Gaudi::BootSvcLocator;
237 BootSvcLocator::BootSvcLocator() {
239 BootSvcLocator::~BootSvcLocator() {
242 #if !defined(GAUDI_V22_API) || defined(G22_NEW_SVCLOCATOR)
247 if ( s_appmgrInstance.
isValid() ) {
248 sc = s_svclocInstance->getService(typeName, iid, pinterface );
250 pinterface = s_bootInterface.
get();
256 const bool createIf ) {
258 if ( s_appmgrInstance.
isValid() ) {
259 sc = s_svclocInstance->getService(typeName, svc, createIf );
261 svc = s_bootService.
get();
269 if ( s_appmgrInstance.
isValid() ) {
270 return s_svclocInstance->getServices( );
277 if ( s_appmgrInstance.
isValid() ) {
278 result = s_svclocInstance->existsService(name);
285 if ( s_appmgrInstance.
isValid() ) {
286 return s_svclocInstance->service(typeName, createIf);