public class ServiceStarter extends Object
ServiceStarter
supports the
following configuration entries, with component
org.apache.river.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. |
Logger
, named
org.apache.river.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 |
Modifier and Type | Method and Description |
---|---|
static void |
main(Configuration config)
The main method for embidding the
ServiceStarter application. |
static void |
main(String[] args)
The main method for the
ServiceStarter application. |
public static void main(String[] args)
ServiceStarter
application.
The args
argument is passed directly to
ConfigurationProvider.getInstance()
in order to
obtain a Configuration
object. This configuration
object is then queried for the
org.apache.river.start.serviceDescriptors
entry, which
is assumed to be a ServiceDescriptor[]
.
The create()
method is then called on each of the array
elements.args
- String[]
passed to
ConfigurationProvider.getInstance()
in order
to obtain a Configuration
object.ServiceDescriptor
,
SharedActivatableServiceDescriptor
,
SharedActivationGroupDescriptor
,
NonActivatableServiceDescriptor
,
Configuration
,
ConfigurationProvider
public static void main(Configuration config)
ServiceStarter
application.
The config
argument is queried for the
org.apache.river.start.serviceDescriptors
entry, which
is assumed to be a ServiceDescriptor[]
.
The create()
method is then called on each of the array
elements.config
- the Configuration
object.ServiceDescriptor
,
SharedActivatableServiceDescriptor
,
SharedActivationGroupDescriptor
,
NonActivatableServiceDescriptor
,
Configuration
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.