|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.schwarzrot.app.support.AbstractService<ServiceConfig> de.schwarzrot.service.sample.SampleService
public class SampleService
is a sample for a service, where the service class and the class providing the main-method is the same.
Constructor Summary | |
---|---|
SampleService()
|
Method Summary | |
---|---|
String |
getApplicationName()
print the application name - may be localized. |
boolean |
isIdle()
will be used by the ServiceLauncher to determine, whether it
should sleep between the calls to Service.run() . |
static void |
main(String[] args)
|
void |
run()
|
void |
setupLate()
second stage of initialization. |
void |
usage()
tell the user about the right usage |
Methods inherited from class de.schwarzrot.app.support.AbstractService |
---|
getAppArgs, getAppInfo, getAppInfo, getApplicationDefaults, getConfig, getLogger, getUserName, isShutdownRequested, setAppArgs, setConfig, setShutdownRequested, setupEarly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleService()
Method Detail |
---|
public String getApplicationName()
MainEntry
SystemDefault.applicationID
getApplicationName
in interface MainEntry<ServiceConfig>
getApplicationName
in class AbstractService<ServiceConfig>
public boolean isIdle()
Service
ServiceLauncher
to determine, whether it
should sleep between the calls to Service.run()
.
public void run()
public void setupLate()
Service
public void usage()
MainEntry
public static void main(String[] args)
|
SRJRCFrames v0.1.296 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |