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 import java.util.List; 20 21 import javax.naming.NamingException; 22 23 24 /*** 25 * An adapter for an OidRegistryMonitor. 26 * 27 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 28 * @version $Rev: 264732 $ 29 */ 30 public class OidRegistryMonitorAdapter implements OidRegistryMonitor 31 { 32 33 /* (non-Javadoc) 34 * @see org.apache.ldap.server.schema.OidRegistryMonitor#getOidWithOid( 35 * java.lang.String) 36 */ 37 public void getOidWithOid( String oid ) 38 { 39 } 40 41 42 /* (non-Javadoc) 43 * @see org.apache.ldap.server.schema.OidRegistryMonitor#oidResolved( 44 * java.lang.String, java.lang.String) 45 */ 46 public void oidResolved( String name, String oid ) 47 { 48 } 49 50 51 /* (non-Javadoc) 52 * @see org.apache.ldap.server.schema.OidRegistryMonitor#oidResolved( 53 * java.lang.String, java.lang.String, java.lang.String) 54 */ 55 public void oidResolved( String name, String normalized, String oid ) 56 { 57 } 58 59 60 /* (non-Javadoc) 61 * @see org.apache.ldap.server.schema.OidRegistryMonitor#oidResolutionFailed( 62 * java.lang.String, javax.naming.NamingException) 63 */ 64 public void oidResolutionFailed( String name, NamingException fault ) 65 { 66 if ( fault != null ) 67 { 68 fault.printStackTrace(); 69 } 70 } 71 72 73 /* (non-Javadoc) 74 * @see org.apache.ldap.server.schema.OidRegistryMonitor#oidDoesNotExist( 75 * java.lang.String, javax.naming.NamingException) 76 */ 77 public void oidDoesNotExist( String oid, NamingException fault ) 78 { 79 if ( fault != null ) 80 { 81 fault.printStackTrace(); 82 } 83 } 84 85 86 /* (non-Javadoc) 87 * @see org.apache.ldap.server.schema.OidRegistryMonitor#nameResolved( 88 * java.lang.String, java.lang.String) 89 */ 90 public void nameResolved( String oid, String name ) 91 { 92 } 93 94 95 /* (non-Javadoc) 96 * @see org.apache.ldap.server.schema.OidRegistryMonitor#namesResolved( 97 * java.lang.String, java.util.List) 98 */ 99 public void namesResolved( String oid, List names ) 100 { 101 } 102 103 104 /* (non-Javadoc) 105 * @see org.apache.ldap.server.schema.OidRegistryMonitor#registered( 106 * java.lang.String, java.lang.String) 107 */ 108 public void registered( String name, String oid ) 109 { 110 } 111 }