KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > util > monolog > api > MonologFactoryListener


1 /**
2  * Copyright (C) 2003 France Telecom R&D
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18 package org.objectweb.util.monolog.api;
19
20 /**
21  * Defines a listener of event on a MonologFactory.
22  *
23  * @author M.Idicheffou
24  * @author S.chassande-Barrioz
25  */

26 public interface MonologFactoryListener {
27     
28     /**
29      * It is called when a new handler has been created by the monolog factory
30      * @param handler is the created handler
31      */

32     void handlerCreated (Handler handler);
33     
34     /**
35      * It i called when an handler has been removed by the monolog factory
36      * @param handler is the removed handler
37      */

38     void handlerRemoved (Handler handler);
39     
40     /**
41      * It is called when a new level has been created by the monolog factory
42      * @param level is the created handler
43      */

44     void levelCreated (Level level);
45     
46     /**
47      * It i called when a level has been removed by the monolog factory
48      * @param level is the removed handler
49      */

50     void levelRemoved (Level level);
51 }
52
Popular Tags