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.SyntaxChecker;
23  import org.slf4j.Logger;
24  import org.slf4j.LoggerFactory;
25  
26  
27  /***
28   * An adapter for the SyntaxCheckerRegistry's monitor.
29   *
30   * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
31   * @version $Rev: 280870 $
32   */
33  public class SyntaxCheckerRegistryMonitorAdapter 
34      implements SyntaxCheckerRegistryMonitor
35  {
36      private static final Logger log = LoggerFactory.getLogger( SyntaxCheckerRegistryMonitorAdapter.class );
37  
38      /* (non-Javadoc)
39       * @see org.apache.ldap.server.schema.SyntaxCheckerRegistryMonitor#registered(
40       * org.apache.eve.schema.SyntaxChecker)
41       */
42      public void registered( String oid, SyntaxChecker syntaxChecker )
43      {
44      }
45  
46      
47      /* (non-Javadoc)
48       * @see org.apache.ldap.server.schema.SyntaxCheckerRegistryMonitor#lookedUp(
49       * org.apache.eve.schema.SyntaxChecker)
50       */
51      public void lookedUp( String oid, SyntaxChecker syntaxChecker )
52      {
53      }
54  
55      
56      /* (non-Javadoc)
57       * @see org.apache.ldap.server.schema.SyntaxCheckerRegistryMonitor#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 syntax checker: " + oid, fault );
65          }
66      }
67  
68      
69      /* (non-Javadoc)
70       * @see org.apache.ldap.server.schema.SyntaxCheckerRegistryMonitor#registerFailed(
71       * org.apache.eve.schema.SyntaxChecker, javax.naming.NamingException)
72       */
73      public void registerFailed( String oid, SyntaxChecker syntaxChecker,
74                                  NamingException fault )
75      {
76          if ( fault != null )
77          {
78              log.warn( "Failed to register a syntax checker: " + oid, fault );
79          }
80      }
81  }