KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tutorial > f1 > chapter31 > IndexDiagListener


1 package com.tutorial.f1.chapter31;
2
3 import com.db4o.diagnostic.*;
4
5 public class IndexDiagListener implements DiagnosticListener
6 {
7        public void onDiagnostic(Diagnostic d) {
8            if (d.getClass().equals(LoadedFromClassIndex.class)){
9             System.out.println(d.toString());
10            }
11            /*if (d.getClass().getName().equals("com.db4o.diagnostic.LoadedFromClassIndex")){
12                System.out.println("Class name match "+ d.getClass().getName());
13                System.out.println(d.toString());
14            } else {
15                System.out.println("Class name = "+ d.getClass().getName());
16                
17            }*/

18         }
19 }
20
Popular Tags