Statistics
| Revision:

svn-gvsig-desktop / tags / v1_1_Build_1015 / libraries / libGDBMS / src / main / java / com / hardcode / gdbms / engine / internalExceptions / InternalExceptionListenerSupport.java @ 13679

History | View | Annotate | Download (939 Bytes)

1 3199 fjp
package com.hardcode.gdbms.engine.internalExceptions;
2
3
import java.util.ArrayList;
4
import java.util.Iterator;
5
6
7
/**
8
 * DOCUMENT ME!
9
 *
10
 * @author Fernando Gonz?lez Cort?s
11
 */
12
public class InternalExceptionListenerSupport {
13
        private ArrayList listeners = new ArrayList();
14
15
        /**
16
         * DOCUMENT ME!
17
         *
18
         * @param listener DOCUMENT ME!
19
         */
20
        public void addInternalExceptionListener(InternalExceptionListener listener) {
21
                listeners.add(listener);
22
        }
23
24
        /**
25
         * DOCUMENT ME!
26
         *
27
         * @param listener DOCUMENT ME!
28
         */
29
        public void removeInternalExceptionListener(
30
                InternalExceptionListener listener) {
31
                listeners.remove(listener);
32
        }
33
34
        /**
35
         * DOCUMENT ME!
36
         *
37
         * @param arg0 DOCUMENT ME!
38
         */
39
        public void callExceptionRaised(
40
                com.hardcode.gdbms.engine.internalExceptions.InternalExceptionEvent arg0) {
41
                Iterator i = listeners.iterator();
42
43
                while (i.hasNext()) {
44
                        ((InternalExceptionListener) i.next()).exceptionRaised(arg0);
45
                }
46
        }
47
}