org.cishell.framework
Interface CIShellContext
- All Known Implementing Classes:
- LocalCIShellContext
public interface CIShellContext
The context by which algorithms in the framework can gain access to standard
CIShell services. An instantiated CIShellContext must provide access to at
least the default services (as of the 1.0 specification, the OSGi
LogService
, the OSGi PreferencesService
, the
CIShell defined DataConversionService
, and the CIShell defined
GUIBuilderService
). Other services may be made available through
this class, but anything beyond the standard services is not guaranteed.
- Author:
- Bruce Herr (bh2@bh2.net)
Field Summary |
static String[] |
DEFAULT_SERVICES
Contains an array of the valid strings corresponding to the default services |
Method Summary |
Object |
getService(String service)
Locates and returns a standard service given the service name. |
DEFAULT_SERVICES
static final String[] DEFAULT_SERVICES
- Contains an array of the valid strings corresponding to the default services
getService
Object getService(String service)
- Locates and returns a standard service given the service name. The
service name is generally the full class name of the service interface.
For example,
LogService
's string is
org.osgi.service.log.LogService
.
- Parameters:
service
- A string (usually the associated interface's full
class name) that specifies the service to retrieve
- Returns:
- An instantiated version of the service requested