1 18 package org.apache.geronimo.interop.naming; 19 20 public class NameServiceLog { 21 public static NameServiceLog getInstance() { 22 return new NameServiceLog(); 23 } 24 25 public String infoBind(String context, String name, String value) { 26 String msg; 27 msg = "NSL.infoBind: context: " + context + ", name: + " + name + ", value: " + value; 28 return msg; 29 } 30 31 public String warnAmbiguousBinding(String context, String name, String interfaceName) { 32 String msg; 33 msg = "NSL.warnAmbiguousBinding: context: " + context + ", name: + " + name + ", interfaceName: " + interfaceName; 34 return msg; 35 } 36 37 public String warnAmbiguousPattern(String context, String name, String pattern) { 38 String msg; 39 msg = "NSL.warnAmbiguousPattern: context: " + context + ", name: + " + name + ", pattern: " + pattern; 40 return msg; 41 } 42 43 public String warnBindFailed(String context, String name, String value, Exception ex) { 44 String msg; 45 msg = "NSL.warnBindFailed: context: " + context + ", name: + " + name + ", ex: " + ex; 46 return msg; 47 } 48 49 public String warnIllegalBindValue(String context, Class type, String name, String value) { 50 String msg; 51 msg = "NSL.warnBindValue: context: " + context + ", type: + " + type + ", name: " + name + ", value: " + value; 52 return msg; 53 } 54 55 public String warnNameNotFound(String context, Exception notFound) { 56 String msg; 57 msg = "NSL.warnNameNotFound: context: " + context + ", notFound: " + notFound; 58 return msg; 59 } 60 61 public String warnNoComponentsForInterface(String context, String name, String interfaceName) { 62 String msg; 63 msg = "NSL.warnNoComponentForInterface: context: " + context + ", name: + " + name + ", interfaceName: " + interfaceName; 64 return msg; 65 } 66 67 public String warnNoComponentsMatchPattern(String context, String name, String pattern) { 68 String msg; 69 msg = "NSL.warnNoComponentsMatchPattern: context: " + context + ", name: + " + name + ", pattern: " + pattern; 70 return msg; 71 } 72 73 public String warnNoCurrentContext(String exception) { 74 String msg; 75 msg = "NSL.infoNoCurrentContext: exception: " + exception; 76 return msg; 77 } 78 79 public String warnObjectHasNoRemoteInterface(String lookupName, String className) { 80 String msg; 81 msg = "NSL.warnObjectHasNoRemoteInterface: lookupName: " + lookupName + ", className: + " + className; 82 return msg; 83 } 84 } 85 | Popular Tags |