1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.ldap.server.schema;
18
19
20 import javax.naming.NamingException;
21
22 import org.apache.ldap.common.schema.MatchingRule;
23
24
25 /***
26 * Monitor interface for a MatchingRuleRegistry.
27 *
28 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
29 * @version $Rev: 264732 $
30 */
31 public interface MatchingRuleRegistryMonitor
32 {
33 /***
34 * Monitors when a MatchingRule is registered successfully.
35 *
36 * @param matchingRule the MatchingRule registered
37 */
38 void registered( MatchingRule matchingRule );
39
40 /***
41 * Monitors when a MatchingRule is successfully looked up.
42 *
43 * @param matchingRule the MatchingRule looked up
44 */
45 void lookedUp( MatchingRule matchingRule );
46
47 /***
48 * Monitors when a lookup attempt fails.
49 *
50 * @param oid the OID for the MatchingRule to lookup
51 * @param fault the exception to be thrown for the fault
52 */
53 void lookupFailed( String oid, NamingException fault );
54
55 /***
56 * Monitors when a registration attempt fails.
57 *
58 * @param matchingRule the MatchingRule which failed registration
59 * @param fault the exception to be thrown for the fault
60 */
61 void registerFailed( MatchingRule matchingRule, NamingException fault );
62 }