Esempio n. 1
0
 /**
  * @see java.lang.ClassLoader#definePackage(java.lang.String, java.lang.String, java.lang.String,
  *     java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.net.URL)
  */
 protected Package definePackage(
     String name,
     String specTitle,
     String specVersion,
     String specVendor,
     String implTitle,
     String implVersion,
     String implVendor,
     URL sealBase)
     throws IllegalArgumentException {
   log.debug("LogClassLoader", "definePackage");
   return null;
 }
Esempio n. 2
0
 public void log(Gateway gateway, int level, String message) {
   int l = level;
   switch (level) {
     case LOGLEVEL_INFO:
       l = Log.LEVEL_INFO;
       break;
     case LOGLEVEL_DEBUG:
       l = Log.LEVEL_DEBUG;
       break;
     case LOGLEVEL_ERROR:
       l = Log.LEVEL_ERROR;
       break;
     case LOGLEVEL_FATAL:
       l = Log.LEVEL_FATAL;
       break;
     case LOGLEVEL_WARN:
       l = Log.LEVEL_WARN;
       break;
   }
   log.log(l, "Gateway:" + gateway.getId(), message);
 }
Esempio n. 3
0
 /** @see java.lang.ClassLoader#loadClass(java.lang.String, boolean) */
 protected synchronized Class loadClass(String name, boolean resolve)
     throws ClassNotFoundException {
   log.debug("LogClassLoader", "loadClass");
   return null;
 }
Esempio n. 4
0
 /** @see java.lang.ClassLoader#getResourceAsStream(java.lang.String) */
 public InputStream getResourceAsStream(String name) {
   log.debug("LogClassLoader", "getResourceAsStream");
   return cl.getResourceAsStream(name);
 }
Esempio n. 5
0
 /** @see java.lang.ClassLoader#getResource(java.lang.String) */
 public URL getResource(String name) {
   log.debug("LogClassLoader", "getResource");
   return cl.getResource(name);
 }
Esempio n. 6
0
 /** @see java.lang.ClassLoader#getPackages() */
 protected Package[] getPackages() {
   log.debug("LogClassLoader", "getPackages");
   return null;
 }
Esempio n. 7
0
 /** @see java.lang.ClassLoader#getPackage(java.lang.String) */
 protected Package getPackage(String name) {
   log.debug("LogClassLoader", "getPackage");
   return null;
 }
Esempio n. 8
0
 /** @see java.lang.ClassLoader#findResources(java.lang.String) */
 protected Enumeration findResources(String name) throws IOException {
   log.debug("LogClassLoader", "findResources");
   return null;
 }
Esempio n. 9
0
 private static void error(Log log, String doc, Exception e) {
   if (log == null) return;
   log.error("Webcrawler", "invoke " + doc + ":" + e.getMessage());
 }
Esempio n. 10
0
 /** @see java.lang.ClassLoader#findLibrary(java.lang.String) */
 protected String findLibrary(String libname) {
   log.debug("LogClassLoader", "findLibrary");
   return null;
 }
Esempio n. 11
0
 /** @see java.lang.ClassLoader#findClass(java.lang.String) */
 protected Class findClass(String name) throws ClassNotFoundException {
   log.debug("LogClassLoader", "findClass");
   return null;
 }
Esempio n. 12
0
 /** @see java.lang.ClassLoader#clearAssertionStatus() */
 public synchronized void clearAssertionStatus() {
   log.debug("LogClassLoader", "clearAssertion");
   cl.clearAssertionStatus();
 }
Esempio n. 13
0
 /** @see java.lang.ClassLoader#setPackageAssertionStatus(java.lang.String, boolean) */
 public synchronized void setPackageAssertionStatus(String packageName, boolean enabled) {
   log.debug("LogClassLoader", "setPackageAssertionStatus");
   cl.setPackageAssertionStatus(packageName, enabled);
 }
Esempio n. 14
0
 /** @see java.lang.ClassLoader#setDefaultAssertionStatus(boolean) */
 public synchronized void setDefaultAssertionStatus(boolean enabled) {
   log.debug("LogClassLoader", "setdefaultAssertionStatus");
   cl.setDefaultAssertionStatus(enabled);
 }
Esempio n. 15
0
 /** @see java.lang.ClassLoader#setClassAssertionStatus(java.lang.String, boolean) */
 public synchronized void setClassAssertionStatus(String className, boolean enabled) {
   log.debug("LogClassLoader", "setClassAssertionStatus");
   cl.setClassAssertionStatus(className, enabled);
 }
Esempio n. 16
0
 /** @see java.lang.ClassLoader#loadClass(java.lang.String) */
 public Class loadClass(String name) throws ClassNotFoundException {
   Class clazz = cl.loadClass(name);
   log.debug("LogClassLoader", "loadClass(" + name + "):" + clazz);
   return clazz;
 }
Esempio n. 17
0
 /** @see java.lang.ClassLoader#findResource(java.lang.String) */
 protected URL findResource(String name) {
   log.debug("LogClassLoader", "findResource");
   return null;
 }
Esempio n. 18
0
 private static void info(Log log, String doc) {
   if (log == null) return;
   log.info("Webcrawler", "invoke " + doc);
 }