org.androidpn.server.xmpp
Class XmppServer

java.lang.Object
  extended by org.androidpn.server.xmpp.XmppServer

public class XmppServer
extends java.lang.Object

This class starts the server as a standalone application using Spring configuration.

Author:
Sehwan Noh (devnoh@gmail.com)

Constructor Summary
XmppServer()
          Constructor.
 
Method Summary
 java.lang.Object getBean(java.lang.String beanName)
          Returns a Spring bean that has the given bean name.
static XmppServer getInstance()
          Returns the singleton instance of XmppServer.
 java.lang.String getServerName()
          Returns the server name.
 boolean isShuttingDown()
          Returns true if the server is being shutdown.
 boolean isStandAlone()
          Returns if the server is running in standalone mode.
 void start()
          Starts the server using Spring configuration.
 void stop()
          Stops the server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmppServer

public XmppServer()
Constructor. Creates a server and starts it.

Method Detail

getInstance

public static XmppServer getInstance()
Returns the singleton instance of XmppServer.

Returns:
the server instance.

start

public void start()
Starts the server using Spring configuration.


stop

public void stop()
Stops the server.


getBean

public java.lang.Object getBean(java.lang.String beanName)
Returns a Spring bean that has the given bean name.

Parameters:
beanName -
Returns:
a Srping bean

getServerName

public java.lang.String getServerName()
Returns the server name.

Returns:
the server name

isShuttingDown

public boolean isShuttingDown()
Returns true if the server is being shutdown.

Returns:
true if the server is being down, false otherwise.

isStandAlone

public boolean isStandAlone()
Returns if the server is running in standalone mode.

Returns:
true if the server is running in standalone mode, false otherwise.