[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - IServiceService.py:1.1.2.1

Jim Fulton jim@zope.com
Sun, 6 Jan 2002 18:38:44 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv8404

Added Files:
      Tag: Zope-3x-branch
	IServiceService.py 
Log Message:
Factored IComponentArchitecture into service interfaces

=== Added File Zope3/lib/python/Zope/ComponentArchitecture/IServiceService.py ===
##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# 
##############################################################################
"""

Revision information: $Id: IServiceService.py,v 1.1.2.1 2002/01/06 23:38:44 jim Exp $
"""

from Interface import Interface

class IServiceService(Interface):

    def defineService(name, interface):
        """Define a new service"""

    def provideService(name, component):
        """provide a service implementation"""

    def getService(object, name):
        """retrieve a service implementation"""