View Javadoc

1   /*
2    *   Copyright 2004 The Apache Software Foundation
3    *
4    *   Licensed under the Apache License, Version 2.0 (the "License");
5    *   you may not use this file except in compliance with the License.
6    *   You may obtain a copy of the License at
7    *
8    *       http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *   Unless required by applicable law or agreed to in writing, software
11   *   distributed under the License is distributed on an "AS IS" BASIS,
12   *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *   See the License for the specific language governing permissions and
14   *   limitations under the License.
15   *
16   */
17  package org.apache.ldap.server.schema;
18  
19  
20  import javax.naming.NamingException;
21  
22  import org.apache.ldap.common.schema.Normalizer;
23  import org.slf4j.Logger;
24  import org.slf4j.LoggerFactory;
25  
26  
27  /***
28   * An adapter for the NormalizerRegistry's monitor.
29   *
30   * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
31   * @version $Rev: 280870 $
32   */
33  public class NormalizerRegistryMonitorAdapter 
34      implements NormalizerRegistryMonitor
35  {
36      private static final Logger log = LoggerFactory.getLogger( NormalizerRegistryMonitorAdapter.class );
37  
38      /* (non-Javadoc)
39       * @see org.apache.ldap.server.schema.NormalizerRegistryMonitor#registered(
40       * org.apache.eve.schema.Normalizer)
41       */
42      public void registered( String oid, Normalizer normalizer )
43      {
44      }
45  
46      
47      /* (non-Javadoc)
48       * @see org.apache.ldap.server.schema.NormalizerRegistryMonitor#lookedUp(
49       * org.apache.eve.schema.Normalizer)
50       */
51      public void lookedUp( String oid, Normalizer normalizer )
52      {
53      }
54  
55      
56      /* (non-Javadoc)
57       * @see org.apache.ldap.server.schema.NormalizerRegistryMonitor#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 normalizer: " + oid , fault );
65          }
66      }
67  
68      
69      /* (non-Javadoc)
70       * @see org.apache.ldap.server.schema.NormalizerRegistryMonitor#registerFailed(
71       * org.apache.eve.schema.Normalizer, javax.naming.NamingException)
72       */
73      public void registerFailed( String oid, Normalizer normalizer, NamingException fault )
74      {
75          if ( fault != null )
76          {
77              log.warn( "Failed to register a normalizer: " + oid, fault );
78          }
79      }
80  }