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 import org.slf4j.Logger;
24 import org.slf4j.LoggerFactory;
25
26
27 /***
28 * An adapter for a MatchingRuleRegistryMonitor.
29 *
30 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
31 * @version $Rev: 280870 $
32 */
33 public class MatchingRuleRegistryMonitorAdapter
34 implements MatchingRuleRegistryMonitor
35 {
36 private static final Logger log = LoggerFactory.getLogger( MatchingRuleRegistryMonitorAdapter.class );
37
38 /***
39 * @see org.apache.ldap.server.schema.MatchingRuleRegistryMonitor#registered(
40 * org.apache.ldap.common.schema.MatchingRule)
41 */
42 public void registered( MatchingRule rule )
43 {
44 }
45
46
47 /***
48 * @see org.apache.ldap.server.schema.MatchingRuleRegistryMonitor#lookedUp(
49 * org.apache.ldap.common.schema.MatchingRule)
50 */
51 public void lookedUp( MatchingRule rule )
52 {
53 }
54
55
56 /***
57 * @see org.apache.ldap.server.schema.MatchingRuleRegistryMonitor#lookupFailed(
58 * java.lang.String, javax.naming.NamingException)
59 */
60 public void lookupFailed( String oid, NamingException fault )
61 {
62 if ( fault != null )
63 {
64 log.warn( "Failed to look up the matching rule: " + oid, fault );
65 }
66 }
67
68
69 /***
70 * @see org.apache.ldap.server.schema.MatchingRuleRegistryMonitor#registerFailed(
71 * org.apache.ldap.common.schema.MatchingRule, javax.naming.NamingException)
72 */
73 public void registerFailed( MatchingRule rule, NamingException fault )
74 {
75 if ( fault != null )
76 {
77 log.warn( "Failed to register a matching rule: " + rule, fault );
78 }
79 }
80 }