Exemplo 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;
 }
Exemplo 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);
 }
Exemplo 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;
 }
Exemplo n.º 4
0
 /** @see java.lang.ClassLoader#getResourceAsStream(java.lang.String) */
 public InputStream getResourceAsStream(String name) {
   log.debug("LogClassLoader", "getResourceAsStream");
   return cl.getResourceAsStream(name);
 }
Exemplo n.º 5
0
 /** @see java.lang.ClassLoader#getResource(java.lang.String) */
 public URL getResource(String name) {
   log.debug("LogClassLoader", "getResource");
   return cl.getResource(name);
 }
Exemplo n.º 6
0
 /** @see java.lang.ClassLoader#getPackages() */
 protected Package[] getPackages() {
   log.debug("LogClassLoader", "getPackages");
   return null;
 }
Exemplo n.º 7
0
 /** @see java.lang.ClassLoader#getPackage(java.lang.String) */
 protected Package getPackage(String name) {
   log.debug("LogClassLoader", "getPackage");
   return null;
 }
Exemplo n.º 8
0
 /** @see java.lang.ClassLoader#findResources(java.lang.String) */
 protected Enumeration findResources(String name) throws IOException {
   log.debug("LogClassLoader", "findResources");
   return null;
 }
Exemplo n.º 9
0
 private static void error(Log log, String doc, Exception e) {
   if (log == null) return;
   log.error("Webcrawler", "invoke " + doc + ":" + e.getMessage());
 }
Exemplo n.º 10
0
 /** @see java.lang.ClassLoader#findLibrary(java.lang.String) */
 protected String findLibrary(String libname) {
   log.debug("LogClassLoader", "findLibrary");
   return null;
 }
Exemplo n.º 11
0
 /** @see java.lang.ClassLoader#findClass(java.lang.String) */
 protected Class findClass(String name) throws ClassNotFoundException {
   log.debug("LogClassLoader", "findClass");
   return null;
 }
Exemplo n.º 12
0
 /** @see java.lang.ClassLoader#clearAssertionStatus() */
 public synchronized void clearAssertionStatus() {
   log.debug("LogClassLoader", "clearAssertion");
   cl.clearAssertionStatus();
 }
Exemplo 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);
 }
Exemplo n.º 14
0
 /** @see java.lang.ClassLoader#setDefaultAssertionStatus(boolean) */
 public synchronized void setDefaultAssertionStatus(boolean enabled) {
   log.debug("LogClassLoader", "setdefaultAssertionStatus");
   cl.setDefaultAssertionStatus(enabled);
 }
Exemplo 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);
 }
Exemplo 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;
 }
Exemplo n.º 17
0
 /** @see java.lang.ClassLoader#findResource(java.lang.String) */
 protected URL findResource(String name) {
   log.debug("LogClassLoader", "findResource");
   return null;
 }
Exemplo n.º 18
0
 private static void info(Log log, String doc) {
   if (log == null) return;
   log.info("Webcrawler", "invoke " + doc);
 }