Пример #1
0
 /** Constructor. Set the server name from server instance. */
 protected XmppIoHandler() {
   serverName = XmppServer.getInstance().getServerName();
 }
 /** Constructor. Set the server name from server instance. */
 protected XmppIoHandler() {
   System.out.println("XmppIoHandler");
   serverName = XmppServer.getInstance().getServerName();
 }
Пример #3
0
 /**
  * Obtains the user service.
  *
  * @return the user service
  */
 public static UserService getUserService() {
   return (UserService) XmppServer.getInstance().getBean(USER_SERVICE);
 }
Пример #4
0
 public static NotificationService getNoticationService() {
   return (NotificationService) XmppServer.getInstance().getBean(NOTIFICATION_SERVICE);
 }
Пример #5
0
 /**
  * Generic method to obtain a service object for a given name.
  *
  * @param name the service bean name
  * @return
  */
 public static Object getService(String name) {
   return XmppServer.getInstance().getBean(name);
 }