Package com.sun.jini.start
Class ServiceStarter
java.lang.Object
com.sun.jini.start.ServiceStarter
This class provides the main routine for starting shared groups, non-activatable services, and
activatable services.
The following implementation-specific items are discussed below:
Configuring ServiceStarter
This implementation ofServiceStarter supports the following configuration entries,
with component com.sun.jini.start:
| • | loginContext | |
|---|---|---|
|   | Type: | LoginContext
|
|   | Default: | null |
|   | Description: | If not
null, specifies the JAAS login context to use for performing a JAAS login and
supplying the Subject to use when running the service starter. If
null, no JAAS login is performed. |
| • | serviceDescriptors | |
|---|---|---|
|   | Type: | ServiceDescriptor[]
|
|   | Default: no default | |
|   | Description: | Array of service descriptors to start. |
Loggers and Logging Levels
The implementation uses theLogger, named
com.sun.jini.start.service.starter. The following table describes the type of
information logged as well as the levels of information logged.
| Level | Description |
|---|---|
SEVERE | for problems that prevent service creation from proceeding |
WARNING | for problems with service creation that don't prevent further processing |
FINER | for high level service creation operation tracing |
FINEST | for low level service creation operation tracing |
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
-
Method Summary
-
Method Details
-
main
The main method for theServiceStarterapplication. Theargsargument is passed directly toConfigurationProvider.getInstance()in order to obtain aConfigurationobject. This configuration object is then queried for thecom.sun.jini.start.serviceDescriptorsentry, which is assumed to be aServiceDescriptor[]. Thecreate()method is then called on each of the array elements.- Parameters:
args-String[]passed toConfigurationProvider.getInstance()in order to obtain aConfigurationobject.- See Also:
-
ServiceDescriptorSharedActivatableServiceDescriptorSharedActivationGroupDescriptorNonActivatableServiceDescriptorConfigurationConfigurationProvider
-