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