com.cafesoft.core.service
Class StandardServiceContext

java.lang.Object
  |
  +--com.cafesoft.core.service.StandardServiceContext
All Implemented Interfaces:
ServiceContext

public class StandardServiceContext
extends Object
implements ServiceContext

Defines the interface that enables Services to log messages and access other Services.

Since:
12/3/01

Field Summary
protected  Logger logger
          The Logger for this ServiceContext.
protected  Properties prop
          Configuration Properties.
protected  ServiceFinder serviceFinder
          The ServiceFinder through which lookups for other Services can be made.
 
Constructor Summary
StandardServiceContext(Properties prop, ServiceFinder serviceFinder, Logger logger)
          Create a new StandardServiceContext.
 
Method Summary
 Logger getLogger()
          Get the Logger for this Context.
 ServiceFinder getServiceFinder()
          Get a ServiceFinder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prop

protected Properties prop
Configuration Properties.


serviceFinder

protected ServiceFinder serviceFinder
The ServiceFinder through which lookups for other Services can be made.


logger

protected Logger logger
The Logger for this ServiceContext.

Constructor Detail

StandardServiceContext

public StandardServiceContext(Properties prop,
                              ServiceFinder serviceFinder,
                              Logger logger)
Create a new StandardServiceContext.

Parameters:
prop - initialization Properties, which may be the same as those provided to the corresponding ServiceConfig
serviceFinder - the ServiceFinder through which other services can be looked up
logger - the Logger for this ServiceContext
Method Detail

getServiceFinder

public ServiceFinder getServiceFinder()
Get a ServiceFinder.

Specified by:
getServiceFinder in interface ServiceContext
Returns:
a ServiceFinder that can be used to lookup other Services

getLogger

public Logger getLogger()
Get the Logger for this Context.

Specified by:
getLogger in interface ServiceContext
Returns:
the Logger object for this Context


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.