org.benow.security.util
Class Service
java.lang.Object
org.benow.java.run.Application
org.benow.security.util.Service
- All Implemented Interfaces:
- java.lang.Runnable
public class Service
- extends org.benow.java.run.Application
A service is an application that is designed to run in the background. By default,
a service may execute any PrivilegedAction, with the action itelf taking no command line
parameters. The service allows for specification of the action class and the user/password
to run the service as (defaults to the anonymous user).
- Author:
- andy
| Fields inherited from class org.benow.java.run.Application |
ctx, exit, log, mainClass, spec |
|
Constructor Summary |
Service()
|
Service(java.lang.String description)
Override this method if you wish to extend the service. |
|
Method Summary |
protected void |
run(org.benow.java.spec.argument.ArgumentContext ctx)
|
protected void |
specifyArguments(org.benow.java.spec.argument.ArgumentSpecification spec)
|
| Methods inherited from class org.benow.java.run.Application |
createSpecification, doMain, getBriefDescription, getUsage, main, run, run, setSpecification, showHelp, start, start |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Service
public Service()
Service
public Service(java.lang.String description)
- Override this method if you wish to extend the service.
- Parameters:
description -
specifyArguments
protected void specifyArguments(org.benow.java.spec.argument.ArgumentSpecification spec)
- Overrides:
specifyArguments in class org.benow.java.run.Application
run
protected void run(org.benow.java.spec.argument.ArgumentContext ctx)
throws java.lang.Throwable
- Specified by:
run in class org.benow.java.run.Application
- Throws:
java.lang.Throwable