|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.spectacle.gee.Application
public abstract class Application
Class Application implements a common way of starting and executing an application that uses the onto API. The most important feature offered by this abstract class is Exception handling. Run an onto application from the commandline by extending this class in e.g. MyApplication in package com.mycompany.myproject. MyApplication's main method should read:
public static void main(String[] args) {
Application.main("com.mycompany.myproject.MyApplication", args);
}
MyApplication must support the following constructor:
public MyApplication(String[] args) {
super(args);
...
}
And MyApplication must override the abstract execute() method.
| Field Summary | |
|---|---|
protected String[] |
_args
The command-line arguments provided to this application. |
protected String |
_server
The server this application is communicating with. |
protected String |
_serverPath
The server path this application is communicating with. |
| Constructor Summary | |
|---|---|
Application(String[] args)
Construct the application. |
|
| Method Summary | |
|---|---|
abstract void |
execute()
Execute the application. |
String |
getServer()
|
String |
getServerPath()
|
static void |
main(String applicationClassName,
String[] args)
Run an application from the commandline by extending this class and defining a main method that contains: Application.main("SubclassName", args); |
void |
setServer(String server)
Set the server this application is communicating with. |
static void |
start(String applicationClassName,
Object args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String _serverPath
protected String _server
protected String[] _args
| Constructor Detail |
|---|
public Application(String[] args)
setServer(java.lang.String)| Method Detail |
|---|
public String getServer()
public String getServerPath()
public void setServer(String server)
server - either a server ("myhost") or already a serverPath ("https://www.mysecurehost.com:9898/")
public abstract void execute()
throws ChannelException
ChannelException
public static void start(String applicationClassName,
Object args)
public static void main(String applicationClassName,
String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||