1 11 12 package org.jivesoftware.messenger.container; 13 14 import org.jivesoftware.messenger.XMPPServer; 15 16 22 public class BasicModule implements Module { 23 24 27 private String name; 28 29 34 public BasicModule(String moduleName) { 35 if (moduleName == null) { 36 this.name = "No name assigned"; 37 } 38 else { 39 this.name = moduleName; 40 } 41 } 42 43 48 public String getName() { 49 return name; 50 } 51 52 60 public void initialize(XMPPServer server) { 61 } 62 63 72 public void start() throws IllegalStateException { 73 } 74 75 81 public void stop() { 82 } 83 84 89 public void destroy() { 90 } 91 } | Popular Tags |