All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
LArSoftUtils.ServiceManagerInterface Class Reference
Inheritance diagram for LArSoftUtils.ServiceManagerInterface:
LArSoftUtils.ServiceManagerClass LArSoftUtils.ServiceManagerClass LArSoftUtils.ServiceManagerInstance LArSoftUtils.ServiceManagerInstance ICARUSservices.ICARUSserviceManagerClass SBNDservices.SBNDserviceManagerClass ICARUSservices.ICARUSserviceManagerClass SBNDservices.SBNDserviceManagerClass

Public Member Functions

def registry
 
def loaders
 
def loaded
 
def supported
 
def registerLoader
 
def get
 
def __call__
 
def registry
 
def loaders
 
def loaded
 
def supported
 
def registerLoader
 
def get
 
def __call__
 

Detailed Description

The interface of a service manager implementation.

Definition at line 279 of file icarusalg/icarusalg/gallery/helpers/python/LArSoftUtils.py.

Member Function Documentation

def LArSoftUtils.ServiceManagerInterface.__call__ (   self,
  serviceName,
  interfaceClass = None 
)

Definition at line 324 of file icarusalg/icarusalg/gallery/helpers/python/LArSoftUtils.py.

325  def __call__(self, serviceName, interfaceClass = None):
326  return self.get(serviceName, interfaceClass=interfaceClass)
327 
328 
329 # class ServiceManagerInterface
330 
def LArSoftUtils.ServiceManagerInterface.__call__ (   self,
  serviceName,
  interfaceClass = None 
)

Definition at line 324 of file sbndcode/sbndcode/gallery/python/LArSoftUtils.py.

325  def __call__(self, serviceName, interfaceClass = None):
326  return self.get(serviceName, interfaceClass=interfaceClass)
327 
328 
329 # class ServiceManagerInterface
330 
def LArSoftUtils.ServiceManagerInterface.get (   self,
  serviceName,
  interfaceClass = None 
)
Return (and load first when needed) the specified service.

The service can be specified by name or by class.
In the former case, if the service is not already configured, an exception
will be raised.

Definition at line 314 of file sbndcode/sbndcode/gallery/python/LArSoftUtils.py.

315  def get(self, serviceName, interfaceClass = None):
316  """Return (and load first when needed) the specified service.
317 
318  The service can be specified by name or by class.
319  In the former case, if the service is not already configured, an exception
320  will be raised.
321  """
return NotImplementedError
def LArSoftUtils.ServiceManagerInterface.get (   self,
  serviceName,
  interfaceClass = None 
)
Return (and load first when needed) the specified service.

The service can be specified by name or by class.
In the former case, if the service is not already configured, an exception
will be raised.

Definition at line 314 of file icarusalg/icarusalg/gallery/helpers/python/LArSoftUtils.py.

315  def get(self, serviceName, interfaceClass = None):
316  """Return (and load first when needed) the specified service.
317 
318  The service can be specified by name or by class.
319  In the former case, if the service is not already configured, an exception
320  will be raised.
321  """
return NotImplementedError
def LArSoftUtils.ServiceManagerInterface.loaded (   self)
Returns a list names of service already loaded.

Definition at line 293 of file sbndcode/sbndcode/gallery/python/LArSoftUtils.py.

294  def loaded(self):
295  """Returns a list names of service already loaded."""
return self.registry().registeredServiceNames()
def LArSoftUtils.ServiceManagerInterface.loaded (   self)
Returns a list names of service already loaded.

Definition at line 293 of file icarusalg/icarusalg/gallery/helpers/python/LArSoftUtils.py.

294  def loaded(self):
295  """Returns a list names of service already loaded."""
return self.registry().registeredServiceNames()
def LArSoftUtils.ServiceManagerInterface.loaders (   self)
Returns the service registry.

Definition at line 287 of file sbndcode/sbndcode/gallery/python/LArSoftUtils.py.

288  def loaders(self):
289  """Returns the service registry."""
return NotImplementedError
def LArSoftUtils.ServiceManagerInterface.loaders (   self)
Returns the service registry.

Definition at line 287 of file icarusalg/icarusalg/gallery/helpers/python/LArSoftUtils.py.

288  def loaders(self):
289  """Returns the service registry."""
return NotImplementedError
def LArSoftUtils.ServiceManagerInterface.registerLoader (   self,
  serviceKey,
  loader 
)
Registers a service provider loader, that can then be invoked to create
the service.

Definition at line 305 of file icarusalg/icarusalg/gallery/helpers/python/LArSoftUtils.py.

306  def registerLoader(self, serviceKey, loader):
307  """Registers a service provider loader, that can then be invoked to create
308  the service.
309  """
310  self.loaders()[serviceKey] = loader
return self
def LArSoftUtils.ServiceManagerInterface.registerLoader (   self,
  serviceKey,
  loader 
)
Registers a service provider loader, that can then be invoked to create
the service.

Definition at line 305 of file sbndcode/sbndcode/gallery/python/LArSoftUtils.py.

306  def registerLoader(self, serviceKey, loader):
307  """Registers a service provider loader, that can then be invoked to create
308  the service.
309  """
310  self.loaders()[serviceKey] = loader
return self
def LArSoftUtils.ServiceManagerInterface.registry (   self)
Returns the service registry.

Definition at line 282 of file icarusalg/icarusalg/gallery/helpers/python/LArSoftUtils.py.

283  def registry(self):
284  """Returns the service registry."""
return NotImplementedError
def LArSoftUtils.ServiceManagerInterface.registry (   self)
Returns the service registry.

Definition at line 282 of file sbndcode/sbndcode/gallery/python/LArSoftUtils.py.

283  def registry(self):
284  """Returns the service registry."""
return NotImplementedError
def LArSoftUtils.ServiceManagerInterface.supported (   self)
Returns a list names of services known to be supported.

Definition at line 299 of file icarusalg/icarusalg/gallery/helpers/python/LArSoftUtils.py.

300  def supported(self):
301  """Returns a list names of services known to be supported."""
return self.loaders().keys()
def LArSoftUtils.ServiceManagerInterface.supported (   self)
Returns a list names of services known to be supported.

Definition at line 299 of file sbndcode/sbndcode/gallery/python/LArSoftUtils.py.

300  def supported(self):
301  """Returns a list names of services known to be supported."""
return self.loaders().keys()

The documentation for this class was generated from the following files: