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 org.apache.ldap.common.schema.NameForm;
21 import org.slf4j.Logger;
22 import org.slf4j.LoggerFactory;
23
24
25 /***
26 * A simple do nothing monitor adapter for NameFormRegistries. Note for
27 * safty exception based callback print the stack tract to stderr.
28 *
29 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
30 * @version $Rev: 280870 $
31 */
32 public class NameFormRegistryMonitorAdapter implements NameFormRegistryMonitor
33 {
34 private static final Logger log = LoggerFactory.getLogger( NameFormRegistryMonitorAdapter.class );
35
36 public void registered( NameForm nameForm )
37 {
38 }
39
40
41 public void lookedUp( NameForm nameForm )
42 {
43 }
44
45
46 public void lookupFailed( String oid, Throwable fault )
47 {
48 if ( fault != null )
49 {
50 log.warn( "Failed to lokk up the name form: " + oid, fault );
51 }
52 }
53
54
55 public void registerFailed( NameForm nameForm, Throwable fault )
56 {
57 if ( fault != null )
58 {
59 log.warn( "Failed to register a name form: " + nameForm, fault );
60 }
61 }
62 }