*/
public class HttpServer implements ApplicationSingletonI
{
+ /**
+ * Returns the singleton instance of this class.
+ *
+ * @return
+ * @throws BindException
+ */
+ public static HttpServer getInstance() throws BindException
+ {
+ synchronized (HttpServer.class)
+ {
+ return (HttpServer) ApplicationSingletonProvider
+ .getInstance(HttpServer.class);
+ }
+ }
/*
* 'context root' - actually just prefixed to the path for each handler for
* now - see registerHandler
*/
private URI contextRoot;
- /**
- * Returns the singleton instance of this class.
- *
- * @return
- * @throws BindException
- */
- public static HttpServer getInstance() throws BindException
- {
- synchronized (HttpServer.class)
- {
- return (HttpServer) ApplicationSingletonProvider.getInstance(HttpServer.class);
- }
- }
/**
* Private constructor to enforce use of singleton; use getInstance().