KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > db4o > events > EventRegistry


1 /* Copyright (C) 2004 - 2006 db4objects Inc. http://www.db4o.com
2
3 This file is part of the db4o open source object database.
4
5 db4o is free software; you can redistribute it and/or modify it under
6 the terms of version 2 of the GNU General Public License as published
7 by the Free Software Foundation and as clarified by db4objects' GPL
8 interpretation policy, available at
9 http://www.db4o.com/about/company/legalpolicies/gplinterpretation/
10 Alternatively you can write to db4objects, Inc., 1900 S Norfolk Street,
11 Suite 350, San Mateo, CA 94403, USA.
12
13 db4o is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17
18 You should have received a copy of the GNU General Public License along
19 with this program; if not, write to the Free Software Foundation, Inc.,
20 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */

21 package com.db4o.events;
22
23 /**
24  * Provides a way to register event handlers for specific {@link ObjectContainer} events.
25  *
26  * @see EventRegistryFactory
27  */

28 public interface EventRegistry {
29     
30     /**
31      * Receives {@link QueryEventArgs}.
32      *
33      * @sharpen.event QueryEventArgs
34      * @return
35      */

36     public Event4 queryStarted();
37     
38     /**
39      * Receives {@link QueryEventArgs}.
40      *
41      * @sharpen.event QueryEventArgs
42      * @return
43      */

44     public Event4 queryFinished();
45
46     /**
47      * Receives {@link CancellableObjectEventArgs}.
48      *
49      * @sharpen.event CancellableObjectEventArgs
50      * @return
51      */

52     public Event4 creating();
53
54     /**
55      * Receives {@link CancellableObjectEventArgs}.
56      *
57      * @sharpen.event CancellableObjectEventArgs
58      * @return
59      */

60     public Event4 activating();
61     
62     /**
63      * Receives {@link CancellableObjectEventArgs}
64      *
65      * @sharpen.event CancellableObjectEventArgs
66      * @return
67      */

68     public Event4 updating();
69     
70     /**
71      * Receives {@link CancellableObjectEventArgs}
72      *
73      * @sharpen.event CancellableObjectEventArgs
74      * @return
75      */

76     public Event4 deleting();
77     
78     /**
79      * Receives {@link CancellableObjectEventArgs}
80      *
81      * @sharpen.event CancellableObjectEventArgs
82      * @return
83      */

84     public Event4 deactivating();
85
86     /**
87      * Receives {@link ObjectEventArgs}.
88      *
89      * @sharpen.event ObjectEventArgs
90      * @return
91      */

92     public Event4 activated();
93
94     /**
95      * Receives {@link ObjectEventArgs}.
96      *
97      * @sharpen.event ObjectEventArgs
98      * @return
99      */

100     public Event4 created();
101
102     /**
103      * Receives {@link ObjectEventArgs}
104      *
105      * @sharpen.event ObjectEventArgs
106      * @return
107      */

108     public Event4 updated();
109
110     /**
111      * Receives {@link ObjectEventArgs}
112      *
113      * @sharpen.event ObjectEventArgs
114      * @return
115      */

116     public Event4 deleted();
117
118     /**
119      * Receives {@link ObjectEventArgs}
120      *
121      * @sharpen.event ObjectEventArgs
122      * @return
123      */

124     public Event4 deactivated();
125 }
126
Popular Tags