com.cafesoft.cams
Interface Context

All Known Implementing Classes:
StandardContext

public interface Context

Context defines the interface to an object that provides configuration parameters and resources to a component deployed within the Cams environment.


Method Summary
 String getHome()
          Returns a String containing the root (home) directory for the associated Component.
 String getInitParameter(String name)
          Returns a String containing the value of the named initialization parameter.
 Iterator getInitParameterNames()
          Returns the names of the Security Domains's initialization parameters as an Iterator of String objects, or an empty Iterator if the Security Domain has no initialization parameters.
 Logger getLogger()
          Get the Logger for this Context.
 ServiceFinder getServiceFinder()
          Get the ServiceFinder applicable to this Context.
 

Method Detail

getHome

public String getHome()
Returns a String containing the root (home) directory for the associated Component.

Returns:
an absolute path to the root (home) directory for the associated component.

getInitParameter

public String getInitParameter(String name)
Returns a String containing the value of the named initialization parameter.

Parameters:
name - a String specifying the name of the initialization parameter.
Returns:
a String containing the value of the initialization parameter or null if the parameter does not exist.

getInitParameterNames

public Iterator getInitParameterNames()
Returns the names of the Security Domains's initialization parameters as an Iterator of String objects, or an empty Iterator if the Security Domain has no initialization parameters.

Returns:
an Iterator of String objects containing the names of the s's initialization parameters

getServiceFinder

public ServiceFinder getServiceFinder()
Get the ServiceFinder applicable to this Context.

Returns:
the ServiceFinder.

getLogger

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

Returns:
the Logger object for this Context.


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