Package flumotion :: Package common :: Module registry :: Class ComponentRegistry
[show private | hide private]
[frames | no frames]

Class ComponentRegistry

Loggable --+
           |
          ComponentRegistry


Registry, this is normally not instantiated.
Method Summary
  __init__(self)
  addFile(self, filename, string)
  addFromString(self, string)
  addRegistryPath(self, path, prefix, force)
Add a registry path to this registry.
  clean(self)
Clean the cache of components.
  dump(self, fd)
Dump the cache of components to the given opened file descriptor.
  getBundles(self)
RegistryEntryComponent getComponent(self, name)
  getComponents(self)
  getDirectories(self)
  hasComponent(self, name)
  isEmpty(self)
  makeBundlerBasket(self)
  rebuildNeeded(self)
  save(self, force)
  verify(self, force)
Verify if the registry is uptodate and rebuild if it is not.
    Inherited from Loggable
  debug(self, *args)
Log a debug message.
  error(self, *args)
Log an error.
  info(self, *args)
Log an informational message.
  log(self, *args)
Log a log message.
  logFunction(self, message)
Overridable log function.
  logObjectName(self)
Overridable object name function.
  warning(self, *args)
Log a warning.
  warningFailure(self, failure)
Log a warning about a Failure.

Class Variable Summary
str filename = '/dar/build/flumotion-0.1.10/cache/registry/r...
str logCategory: Implementors can provide a category to log their messages under.

Method Details

addRegistryPath(self, path, prefix='flumotion', force=False)

Add a registry path to this registry.

If force is False, the registry path will only be re-scanned if the directory has been modified since the last scan. If force is True, then the registry path will be parsed regardless of the modification time.
Parameters:
path - a full path containing a 'flumotion' directory, which will be scanned for registry files.

clean(self)

Clean the cache of components.

dump(self, fd)

Dump the cache of components to the given opened file descriptor.
Parameters:
fd - open file descriptor to write to
           (type=integer)

getComponent(self, name)

Returns:
RegistryEntryComponent

verify(self, force=False)

Verify if the registry is uptodate and rebuild if it is not.
Parameters:
force - True if the registry needs rebuilding for sure.

Class Variable Details

filename

Type:
str
Value:
'/dar/build/flumotion-0.1.10/cache/registry/registry.xml'              

logCategory

Implementors can provide a category to log their messages under.
Type:
str
Value:
'registry'                                                             

Generated by Epydoc 2.1 on Tue Dec 20 15:33:10 2005 http://epydoc.sf.net