public class Server extends Object
| Constructor and Description |
|---|
Server(Class<?>... beans)
Create new server instance.
|
Server(String... beanNames)
Create new server instance.
|
Server(String hostName,
int port,
String rootPath,
Class<?>... beans)
Construct new server.
|
Server(String hostName,
int port,
String rootPath,
Set<Class<?>> beans)
Construct new server.
|
public Server(Class<?>... beans)
beans - to be registered with the serverpublic Server(String... beanNames)
beanNames - beans to be registered with the serverpublic Server(String hostName, int port, String rootPath, Class<?>... beans)
hostName - hostName of the server.port - port of the server.rootPath - root path to the server App.beans - registered application classes.public void start()
public void stop()
public static void main(String[] args)
Copyright © 2012. All Rights Reserved.