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