Class ServiceFactory

Description

This core class returns Service Instances.

You should NOT instantiate Services directly, but request them via this class.

ATTENTION: This is a Singleton class! To get an instance you may NOT create one by calling:

  1. $services new ServiceFactory();

Instead you MUST use the static method get() to retrieve the correct initialized instance:

  1. $services ServiceFactory::get()

  • author: Kevin Papst
  • version: $Id: ServiceFactory.php,v 1.2 2006/11/26 22:04:33 kpapst Exp $
  • copyright: Copyright (C) 2002-2006 Kevin Papst
  • license: GNU Public License


			
Method Summary
Methods
get (line 70)

Static getter, to receive an ServiceFactory instance.

  • return: the initialized ServiceFactory instance to be used
getAuthenticator (line 82)

Gets the Authenticator instance to be used.

  • return: the requested Authenticator instance
Authenticator getAuthenticator ()
getPrincipalService (line 90)

Gets the PrincipalService to be used.

  • return: the requested PrincipalService instance
PrincipalService getPrincipalService ()
getService (line 99)

Returns a configured Service.

If the Service could not be found null will be returned.

  • return: the service instance or null
mixed getService ( $name)
  • $name

Documentation generated by phpDocumentor 1.4.0